@PublicEvolving public enum OperationStatus extends Enum<OperationStatus>
Operation
.Enum Constant and Description |
---|
CANCELED
Operation has been cancelled.
|
CLOSED
Operation has been closed and all related resources are collected.
|
ERROR
Some error happens.
|
FINISHED
All the work is finished and ready for the client to fetch the results.
|
INITIALIZED
The operation is newly created.
|
PENDING
Prepare the resources for the operation.
|
RUNNING
The operation is running.
|
TIMEOUT
The execution of the operation timeout.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isTerminalStatus() |
static boolean |
isValidStatusTransition(OperationStatus fromStatus,
OperationStatus toStatus) |
static OperationStatus |
valueOf(String name)
Returns 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.
|
public static final OperationStatus INITIALIZED
public static final OperationStatus PENDING
public static final OperationStatus RUNNING
public static final OperationStatus FINISHED
public static final OperationStatus CANCELED
public static final OperationStatus CLOSED
public static final OperationStatus ERROR
public static final OperationStatus TIMEOUT
public static OperationStatus[] values()
for (OperationStatus c : OperationStatus.values()) System.out.println(c);
public static OperationStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static boolean isValidStatusTransition(OperationStatus fromStatus, OperationStatus toStatus)
public boolean isTerminalStatus()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.