V - the type of the operation's result@Experimental public class ClusterManagementOperationResult<V extends OperationResult> extends ClusterManagementResult
ClusterManagementService.start(ClusterManagementOperation) to convey status of
launching the async operation, and if successful, the CompletableFuture to access the
status, result, and start/end times of the async operation.ClusterManagementResult.StatusCode| Constructor and Description |
|---|
ClusterManagementOperationResult()
for internal use only
|
ClusterManagementOperationResult(ClusterManagementResult result,
java.util.concurrent.CompletableFuture<V> operationResult,
java.util.Date operationStart,
java.util.concurrent.CompletableFuture<java.util.Date> futureOperationEnded,
java.lang.String operator,
java.lang.String operationId)
normally called by
ClusterManagementService.start(ClusterManagementOperation) |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletableFuture<java.util.Date> |
getFutureOperationEnded()
Returns the future time the async operation completed.
|
java.util.concurrent.CompletableFuture<V> |
getFutureResult()
Returns the future result of the async operation
|
java.util.Date |
getOperationEnded()
Returns the actual time the async operation completed, or null if not yet completed
|
java.lang.String |
getOperationId()
returns the operation id started by this operation.
|
java.util.Date |
getOperationStart()
Returns the time at which the async operation was requested
|
java.lang.String |
getOperator()
Returns the user who initiated the async operation, if initiated externally and security is
enabled
|
V |
getResult()
Returns the completed result of the async operation (blocks until complete, if necessary)
|
equals, getStatusCode, getStatusMessage, hashCode, isSuccessful, setLinks, setStatus, toStringpublic ClusterManagementOperationResult()
public ClusterManagementOperationResult(ClusterManagementResult result, java.util.concurrent.CompletableFuture<V> operationResult, java.util.Date operationStart, java.util.concurrent.CompletableFuture<java.util.Date> futureOperationEnded, java.lang.String operator, java.lang.String operationId)
ClusterManagementService.start(ClusterManagementOperation)public java.util.concurrent.CompletableFuture<V> getFutureResult()
public V getResult() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
java.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionpublic java.util.Date getOperationStart()
public java.util.concurrent.CompletableFuture<java.util.Date> getFutureOperationEnded()
getFutureResult(). Note: subsequent stages must be chained to
getFutureResult(), not here.public java.util.Date getOperationEnded()
public java.lang.String getOperator()
public java.lang.String getOperationId()