public class CommitQueueResult extends ApplyResult
Maapi#applyTransWithResult(int,boolean,int,String,int) 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.| Modifier and Type | Class and Description |
|---|---|
static class |
CommitQueueResult.Status |
| Modifier and Type | Field and Description |
|---|---|
static int |
NCS_COMMIT_QUEUE_ASYNC
Deprecated.
Use
CommitQueueResult.Status.ASYNC instead. |
static int |
NCS_COMMIT_QUEUE_DELETED
Deprecated.
Use
CommitQueueResult.Status.DELETED instead. |
static int |
NCS_COMMIT_QUEUE_FAILED
Deprecated.
Use
CommitQueueResult.Status.FAILED instead. |
static int |
NCS_COMMIT_QUEUE_NONE
Deprecated.
Use
CommitQueueResult.Status.NONE instead. |
static int |
NCS_COMMIT_QUEUE_SYNC
Deprecated.
Use
CommitQueueResult.Status.COMPLETED instead. |
static int |
NCS_COMMIT_QUEUE_TIMEOUT
Deprecated.
Use
CommitQueueResult.Status.TIMEOUT instead. |
long |
queue_id
Deprecated.
Use
CommitQueueResult.getId() instead. |
long |
status
Deprecated.
Use
CommitQueueResult.getStatus() instead. |
| Constructor and Description |
|---|
CommitQueueResult(ConfResponse result) |
CommitQueueResult(long queue_id,
long status)
Deprecated.
Use
CommitQueueResult(ConfResponse) instead. |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getFailedDevices()
Return the error reason for each failed device.
|
long |
getId()
Return the commit queue id.
|
CommitQueueResult.Status |
getStatus()
Return the status of the commit queue item.
|
String |
getStatusAsString()
Return the status as a string.
|
public final long queue_id
CommitQueueResult.getId() instead.public final long status
CommitQueueResult.getStatus() instead.public static final int NCS_COMMIT_QUEUE_NONE
CommitQueueResult.Status.NONE instead.public static final int NCS_COMMIT_QUEUE_ASYNC
CommitQueueResult.Status.ASYNC instead.public static final int NCS_COMMIT_QUEUE_SYNC
CommitQueueResult.Status.COMPLETED instead.public static final int NCS_COMMIT_QUEUE_TIMEOUT
CommitQueueResult.Status.TIMEOUT instead.public static final int NCS_COMMIT_QUEUE_DELETED
CommitQueueResult.Status.DELETED instead.public static final int NCS_COMMIT_QUEUE_FAILED
CommitQueueResult.Status.FAILED instead.public CommitQueueResult(long queue_id,
long status)
throws MaapiException,
ConfException
CommitQueueResult(ConfResponse) instead.MaapiExceptionConfExceptionpublic CommitQueueResult(ConfResponse result) throws MaapiException, ConfException
MaapiExceptionConfExceptionpublic long getId()
CommitQueueResult.Status.NONE this method will return 0.public CommitQueueResult.Status getStatus()
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.
The CommitQueueResult.getFailedDevices() method will provide
the error reason for each failed device.
public String getStatusAsString()