public class CommitParams extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CommitParams.CommitQueueErrorOption |
static class |
CommitParams.DryRunOutformat |
Constructor and Description |
---|
CommitParams() |
CommitParams(ConfResponse result) |
Modifier and Type | Method and Description |
---|---|
CommitParams.CommitQueueErrorOption |
getCommitQueueErrorOption()
Get commit queue error option.
|
Long |
getCommitQueueSyncTimeout()
Get commit queue synchronous mode of operation custom timeout.
|
String |
getCommitQueueTag()
Get commit-queue tag.
|
List<ConfXMLParam> |
getConfXMLParam() |
CommitParams.DryRunOutformat |
getDryRunOutformat()
Get the outformat to produce when committing with dry-run.
|
String |
getTraceId()
Get the the trace id for the transaction.
|
String[] |
getWaitDevice()
Get the devices that we need to wait for a device lock for before
entering transaction critical section.
|
boolean |
isCommitQueueAsync()
Get commit queue asynchronous mode of operation.
|
boolean |
isCommitQueueAtomic()
Check if the commit queue item is atomic.
|
boolean |
isCommitQueueBlockOthers()
Check if the the commit queue item block other commit queue items
for these devices.
|
boolean |
isCommitQueueBypass()
Check if the commit should bypass the commit queue, i.e.
|
boolean |
isCommitQueueLock()
Check if the commit queue item is locked.
|
boolean |
isCommitQueueNonAtomic()
Check if the commit queue item is non-atomic.
|
boolean |
isCommitQueueSync()
Get commit queue synchronous mode of operation.
|
boolean |
isDryRun()
Check if dry-run is enabled.
|
boolean |
isDryRunReverse()
Check if the dry-run should produce a reverse diff.
|
boolean |
isNoDeploy()
Check if service's create method should be invoked or not.
|
boolean |
isNoLsa()
Get no-lsa commit parameter.
|
boolean |
isNoNetworking()
Check if the configuration should only be written to CDB, not
actually pushed to the device.
|
boolean |
isNoOutOfSyncCheck() |
boolean |
isNoOverwrite() |
boolean |
isNoRevisionDrop()
Check if no-revision-drop commit parameter is set.
|
boolean |
isReconcileDiscardNonServiceConfig()
Get reconcile commit parameter with discard-non-service-config option.
|
boolean |
isReconcileKeepNonServiceConfig()
Get reconcile commit parameter with keep-non-service-config option.
|
boolean |
isUseLsa()
Get use-lsa commit parameter.
|
void |
setCommitQueueAsync()
Set commit queue asynchronous mode of operation.
|
void |
setCommitQueueAtomic()
Make the commit queue item atomic.
|
void |
setCommitQueueBlockOthers()
Make the commit queue item block other commit queue items
for these devices.
|
void |
setCommitQueueBypass()
Make the commit transactional even if commit queue is default.
|
void |
setCommitQueueErrorOption(CommitParams.CommitQueueErrorOption errorOption)
Set commit queue error option.
|
void |
setCommitQueueLock()
Make the commit queue item locked.
|
void |
setCommitQueueNonAtomic()
Make the commit queue item non-atomic.
|
void |
setCommitQueueSync()
Set commit queue synchronous mode of operation.
|
void |
setCommitQueueSync(int timeout)
Set commit queue synchronous mode of operation with custom timeout.
|
void |
setCommitQueueTag(String tag)
Set commit-queue tag.
|
void |
setDryRunCli()
Commit with dry-run outformat CLI.
|
void |
setDryRunNative()
Commit with dry-run outformat native.
|
void |
setDryRunNativeReverse()
Commit with dry-run outformat native reverse.
|
void |
setDryRunOutformat(CommitParams.DryRunOutformat outformat)
Set the outformat to produce when committing with dry-run.
|
void |
setDryRunReverse()
Make dry-run produce a reverse diff.
|
void |
setDryRunXml()
Commit with dry-run outformat XML.
|
void |
setNoDeploy()
Do not invoke service's create method.
|
void |
setNoLsa()
Set no-lsa commit parameter.
|
void |
setNoNetworking()
Only write the configuration to CDB, do not actually push it to the
device.
|
void |
setNoOutOfSyncCheck()
Do not check device sync state before pushing the configuration change.
|
void |
setNoOverwrite()
Check that the parts of the device configuration to be modified are
are up-to-date in CDB before pushing the configuration change to the
device.
|
void |
setNoRevisionDrop()
Set no-revision-drop commit parameter.
|
void |
setReconcileDiscardNonServiceConfig()
Set reconcile commit parameter with discard-non-service-config option.
|
void |
setReconcileKeepNonServiceConfig()
Set reconcile commit parameter with keep-non-service-config option.
|
void |
setTraceId(String traceId)
Set the trace id for the transaction.
|
void |
setUseLsa()
Set use-lsa commit parameter.
|
void |
setWaitDevice(String[] devices)
Wait for device lock before entering transaction critical section.
|
String |
toString() |
public CommitParams()
public CommitParams(ConfResponse result)
public void setCommitQueueAsync()
public boolean isCommitQueueAsync()
public void setCommitQueueSync()
public boolean isCommitQueueSync()
public void setCommitQueueSync(int timeout)
timeout
- Timeout in seconds. -1 means infinity.public Long getCommitQueueSyncTimeout()
public void setCommitQueueBypass()
public boolean isCommitQueueBypass()
public void setCommitQueueTag(String tag)
tag
- User defined opaque tag attached to the resulting queue item
if using the Maapi.COMMIT_NCS_COMMIT_QUEUE_ASYNC
or
Maapi.COMMIT_NCS_COMMIT_QUEUE_SYNC
flag. The tag is
present in all notifications and events sent referencing the
queue item.public String getCommitQueueTag()
public void setCommitQueueLock()
public boolean isCommitQueueLock()
public void setCommitQueueBlockOthers()
public boolean isCommitQueueBlockOthers()
public void setCommitQueueAtomic()
public boolean isCommitQueueAtomic()
public void setCommitQueueNonAtomic()
public boolean isCommitQueueNonAtomic()
public void setCommitQueueErrorOption(CommitParams.CommitQueueErrorOption errorOption)
errorOption
- public CommitParams.CommitQueueErrorOption getCommitQueueErrorOption()
public void setNoRevisionDrop()
public boolean isNoRevisionDrop()
public void setNoNetworking()
public boolean isNoNetworking()
public void setNoOverwrite()
public boolean isNoOverwrite()
public void setNoOutOfSyncCheck()
public boolean isNoOutOfSyncCheck()
public void setNoLsa()
public boolean isNoLsa()
public void setUseLsa()
public boolean isUseLsa()
public void setNoDeploy()
public boolean isNoDeploy()
public void setReconcileKeepNonServiceConfig()
public boolean isReconcileKeepNonServiceConfig()
public void setReconcileDiscardNonServiceConfig()
public boolean isReconcileDiscardNonServiceConfig()
public boolean isDryRun()
public void setDryRunOutformat(CommitParams.DryRunOutformat outformat)
outformat
- The outformat to produce.public CommitParams.DryRunOutformat getDryRunOutformat()
public void setDryRunReverse()
public boolean isDryRunReverse()
public void setDryRunXml()
public void setDryRunCli()
public void setDryRunNative()
public void setDryRunNativeReverse()
public void setWaitDevice(String[] devices)
public String[] getWaitDevice()
public String getTraceId()
public void setTraceId(String traceId)
traceId
- The trace id to use for the transaction.public List<ConfXMLParam> getConfXMLParam()