V
- the type of the operation's result@Experimental public class ClusterManagementOperationResult<A extends ClusterManagementOperation<V>,V extends OperationResult> extends ClusterManagementResult
ClusterManagementService.start(ClusterManagementOperation)
to convey status of
launching the async operation,
and by ClusterManagementService.get(ClusterManagementOperation, String)
to
describe the status of
a started async operation.ClusterManagementResult.StatusCode
Constructor and Description |
---|
ClusterManagementOperationResult()
for internal use only
|
ClusterManagementOperationResult(ClusterManagementResult.StatusCode statusCode,
String message,
Date operationStart,
Date operationEnd,
A operation,
String operationId,
V operationResult,
Throwable throwable)
normally called by
ClusterManagementService.start(ClusterManagementOperation) |
Modifier and Type | Method and Description |
---|---|
A |
getOperation()
Returns the async operation.
|
Date |
getOperationEnd()
Returns the time the operation was completed.
|
String |
getOperationId()
returns the operation id started by this operation.
|
V |
getOperationResult()
Returns the operation result as an extension of
OperationResult |
Date |
getOperationStart()
Returns the time the operation was started
|
Throwable |
getThrowable()
Returns any exceptions that might be returned as a result of the operation.
|
equals, getStatusCode, getStatusMessage, hashCode, isSuccessful, setLinks, setStatus, toString
public ClusterManagementOperationResult()
public ClusterManagementOperationResult(ClusterManagementResult.StatusCode statusCode, String message, Date operationStart, Date operationEnd, A operation, String operationId, V operationResult, Throwable throwable)
ClusterManagementService.start(ClusterManagementOperation)
statusCode
- the StatusCode
of the resultmessage
- the status message to setoperationStart
- a Date
representing the time the operation startedoperationEnd
- a Date
representing the time the operation endedoperation
- the operationoperationId
- the ID of the operationoperationResult
- the operation's resultthrowable
- an exception that occurred as a result of the operation, if anypublic A getOperation()
ClusterManagementOperationResult
describespublic String getOperationId()
ClusterManagementOperationResult
describespublic Date getOperationStart()
public Date getOperationEnd()
public V getOperationResult()
OperationResult
public Throwable getThrowable()