Class ClusterManagementOperationResult<A extends ClusterManagementOperation<V>,​V extends OperationResult>

    • Constructor Detail

      • ClusterManagementOperationResult

        public ClusterManagementOperationResult()
        for internal use only
      • ClusterManagementOperationResult

        public ClusterManagementOperationResult​(ClusterManagementResult.StatusCode statusCode,
                                                java.lang.String message,
                                                java.util.Date operationStart,
                                                java.util.Date operationEnd,
                                                A operation,
                                                java.lang.String operationId,
                                                V operationResult,
                                                java.lang.Throwable throwable)
        Parameters:
        statusCode - the StatusCode of the result
        message - the status message to set
        operationStart - a Date representing the time the operation started
        operationEnd - a Date representing the time the operation ended
        operation - the operation
        operationId - the ID of the operation
        operationResult - the operation's result
        throwable - an exception that occurred as a result of the operation, if any
    • Method Detail

      • getOperationId

        public java.lang.String getOperationId()
        returns the operation id started by this operation.
        Returns:
        the operation ID of the operation that this ClusterManagementOperationResult describes
      • getOperationStart

        public java.util.Date getOperationStart()
        Returns the time the operation was started
        Returns:
        the time the operation was started
      • getOperationEnd

        public java.util.Date getOperationEnd()
        Returns the time the operation was completed. This value is null while the operation is in process.
        Returns:
        the time at which the operation completed, or null if the operation has not completed
      • getOperationResult

        public V getOperationResult()
        Returns the operation result as an extension of OperationResult
        Returns:
        the result of the operation
      • getThrowable

        public java.lang.Throwable getThrowable()
        Returns any exceptions that might be returned as a result of the operation. Null in case no exceptions occurred.
        Returns:
        any exceptions that might be returned as a result of the operation