Enum OperationStatus
- All Implemented Interfaces:
Serializable,Comparable<OperationStatus>
Status to describe the
Operation.-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOperation has been cancelled.Operation has been closed and all related resources are collected.Some error happens.All the work is finished and ready for the client to fetch the results.The operation is newly created.Prepare the resources for the operation.The operation is running.The execution of the operation timeout. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic booleanisValidStatusTransition(OperationStatus fromStatus, OperationStatus toStatus) static OperationStatusReturns the enum constant of this type with the specified name.static OperationStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INITIALIZED
The operation is newly created. -
PENDING
Prepare the resources for the operation. -
RUNNING
The operation is running. -
FINISHED
All the work is finished and ready for the client to fetch the results. -
CANCELED
Operation has been cancelled. -
CLOSED
Operation has been closed and all related resources are collected. -
ERROR
Some error happens. -
TIMEOUT
The execution of the operation timeout.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isValidStatusTransition
-
isTerminalStatus
public boolean isTerminalStatus()
-