Class CommitQueueResult
Maapi.applyTransParams(int, boolean, CommitParams)
method.
The purpose of this class is to represent the result of a transaction where the configuration change for the participating devices has been placed in the commit queue.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Deprecated.static final int
Deprecated.UseCommitQueueResult.Status.DELETED
instead.static final int
Deprecated.UseCommitQueueResult.Status.FAILED
instead.static final int
Deprecated.UseCommitQueueResult.Status.NONE
instead.static final int
Deprecated.UseCommitQueueResult.Status.COMPLETED
instead.static final int
Deprecated.UseCommitQueueResult.Status.TIMEOUT
instead.final long
Deprecated.UsegetId()
instead.final long
Deprecated.UsegetStatus()
instead. -
Constructor Summary
ConstructorDescriptionCommitQueueResult
(long queue_id, long status) Deprecated.UseCommitQueueResult(ConfResponse)
instead.CommitQueueResult
(ConfResponse result) -
Method Summary
Modifier and TypeMethodDescriptionReturn the error reason for each failed device.long
getId()
Return the commit queue id.Return the status of the commit queue item.Return the status as a string.
-
Field Details
-
queue_id
Deprecated.UsegetId()
instead. -
status
Deprecated.UsegetStatus()
instead. -
NCS_COMMIT_QUEUE_NONE
Deprecated.UseCommitQueueResult.Status.NONE
instead.- See Also:
-
NCS_COMMIT_QUEUE_ASYNC
Deprecated.UseCommitQueueResult.Status.ASYNC
instead.- See Also:
-
NCS_COMMIT_QUEUE_SYNC
Deprecated.UseCommitQueueResult.Status.COMPLETED
instead.- See Also:
-
NCS_COMMIT_QUEUE_TIMEOUT
Deprecated.UseCommitQueueResult.Status.TIMEOUT
instead.- See Also:
-
NCS_COMMIT_QUEUE_DELETED
Deprecated.UseCommitQueueResult.Status.DELETED
instead.- See Also:
-
NCS_COMMIT_QUEUE_FAILED
Deprecated.UseCommitQueueResult.Status.FAILED
instead.- See Also:
-
-
Constructor Details
-
CommitQueueResult
@Deprecated public CommitQueueResult(long queue_id, long status) throws MaapiException, ConfException Deprecated.UseCommitQueueResult(ConfResponse)
instead.- Throws:
MaapiException
ConfException
-
CommitQueueResult
- Throws:
MaapiException
ConfException
-
-
Method Details
-
getId
public long getId()Return the commit queue id. If the status isCommitQueueResult.Status.NONE
this method will return 0. -
getStatus
Return the status of the commit queue item.The status could be any of the following:
CommitQueueResult.Status.NONE
means that no device was involved in the transaction.CommitQueueResult.Status.ASYNC
means that the transaction has successfully placed the configuration change for the participating devices in the commit queue.CommitQueueResult.Status.COMPLETED
means that the queue item was successfully completed.CommitQueueResult.Status.TIMEOUT
means that the timer expired before the queue item was completed.CommitQueueResult.Status.DELETED
means that queue item was deleted from the queue.CommitQueueResult.Status.FAILED
means that the queue item failed. ThegetFailedDevices()
method will provide the error reason for each failed device. -
getStatusAsString
Return the status as a string. -
getFailedDevices
Return the error reason for each failed device.
-
CommitQueueResult.Status.ASYNC
instead.