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
statusCode
Constructor and Description |
---|
ClusterManagementOperationResult()
for internal use only
|
ClusterManagementOperationResult(ClusterManagementResult result,
CompletableFuture<V> operationResult,
Date operationStart,
CompletableFuture<Date> futureOperationEnded,
String operator)
normally called by
ClusterManagementService.start(ClusterManagementOperation) |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Date> |
getFutureOperationEnded()
Returns the future time the async operation completed.
|
CompletableFuture<V> |
getFutureResult()
Returns the future result of the async operation
|
Date |
getOperationEnded()
Returns the actual time the async operation completed, or null if not yet completed
|
Date |
getOperationStart()
Returns the time at which the async operation was requested
|
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)
|
getStatusCode, getStatusMessage, getUri, isSuccessful, setStatus, setUri, toString
public ClusterManagementOperationResult()
public ClusterManagementOperationResult(ClusterManagementResult result, CompletableFuture<V> operationResult, Date operationStart, CompletableFuture<Date> futureOperationEnded, String operator)
ClusterManagementService.start(ClusterManagementOperation)
public CompletableFuture<V> getFutureResult()
public V getResult() throws ExecutionException, InterruptedException
public Date getOperationStart()
public CompletableFuture<Date> getFutureOperationEnded()
getFutureResult()
. Note: subsequent stages must be chained to
getFutureResult()
, not here.public Date getOperationEnded()
public String getOperator()