Package com.levigo.jadice.server.core
Enum ProcessingState
- java.lang.Object
-
- java.lang.Enum<ProcessingState>
-
- com.levigo.jadice.server.core.ProcessingState
-
- All Implemented Interfaces:
Serializable
,Comparable<ProcessingState>
public enum ProcessingState extends Enum<ProcessingState>
The state of a resource that gets processed, i.e. aServerJob
or aNodeWorker
.- Since:
- jadice server 5.5.0.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABORTING
The associated resource has failed, but some shutdown actions are in progress.FINISHED
The associated resource has finished (successfully oder faulty).NEW
The associated resource is initialized but has not been started yet.RUNNING
The associated resource is currently executed by jadice server.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProcessingState
valueOf(String name)
Returns the enum constant of this type with the specified name.static ProcessingState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEW
public static final ProcessingState NEW
The associated resource is initialized but has not been started yet.
-
RUNNING
public static final ProcessingState RUNNING
The associated resource is currently executed by jadice server.
-
ABORTING
public static final ProcessingState ABORTING
The associated resource has failed, but some shutdown actions are in progress.
-
FINISHED
public static final ProcessingState FINISHED
The associated resource has finished (successfully oder faulty).
-
-
Method Detail
-
values
public static ProcessingState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ProcessingState c : ProcessingState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProcessingState valueOf(String name)
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
-
-