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 -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.static final intDeprecated.UseCommitQueueResult.Status.DELETEDinstead.static final intDeprecated.UseCommitQueueResult.Status.FAILEDinstead.static final intDeprecated.UseCommitQueueResult.Status.NONEinstead.static final intDeprecated.UseCommitQueueResult.Status.COMPLETEDinstead.static final intDeprecated.UseCommitQueueResult.Status.TIMEOUTinstead.final longDeprecated.UsegetId()instead.final longDeprecated.UsegetStatus()instead. -
Constructor Summary
ConstructorsConstructorDescriptionCommitQueueResult(long queue_id, long status) Deprecated.UseCommitQueueResult(ConfResponse)instead.CommitQueueResult(ConfResponse result) -
Method Summary
Modifier and TypeMethodDescriptionReturn the error reason for each failed device.longgetId()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.NONEinstead.- See Also:
-
NCS_COMMIT_QUEUE_ASYNC
Deprecated.UseCommitQueueResult.Status.ASYNCinstead.- See Also:
-
NCS_COMMIT_QUEUE_SYNC
Deprecated.UseCommitQueueResult.Status.COMPLETEDinstead.- See Also:
-
NCS_COMMIT_QUEUE_TIMEOUT
Deprecated.UseCommitQueueResult.Status.TIMEOUTinstead.- See Also:
-
NCS_COMMIT_QUEUE_DELETED
Deprecated.UseCommitQueueResult.Status.DELETEDinstead.- See Also:
-
NCS_COMMIT_QUEUE_FAILED
Deprecated.UseCommitQueueResult.Status.FAILEDinstead.- See Also:
-
-
Constructor Details
-
CommitQueueResult
@Deprecated public CommitQueueResult(long queue_id, long status) throws MaapiException, ConfException Deprecated.UseCommitQueueResult(ConfResponse)instead.- Throws:
MaapiExceptionConfException
-
CommitQueueResult
- Throws:
MaapiExceptionConfException
-
-
Method Details
-
getId
public long getId()Return the commit queue id. If the status isCommitQueueResult.Status.NONEthis method will return 0. -
getStatus
Return the status of the commit queue item.The status could be any of the following:
CommitQueueResult.Status.NONEmeans that no device was involved in the transaction.CommitQueueResult.Status.ASYNCmeans that the transaction has successfully placed the configuration change for the participating devices in the commit queue.CommitQueueResult.Status.COMPLETEDmeans that the queue item was successfully completed.CommitQueueResult.Status.TIMEOUTmeans that the timer expired before the queue item was completed.CommitQueueResult.Status.DELETEDmeans that queue item was deleted from the queue.CommitQueueResult.Status.FAILEDmeans 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.ASYNCinstead.