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
Nested Classes -
Constructor Summary
Constructors -
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.
-
Constructor Details
-
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.
-