public enum WorkerStatus extends java.lang.Enum<WorkerStatus>
IDLE
and switch to RUNNING
once it has started. A worker
with the status FINISHED
is no longer active.Modifier and Type | Method and Description |
---|---|
static WorkerStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WorkerStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WorkerStatus IDLE
public static final WorkerStatus RUNNING
public static final WorkerStatus FINISHED
public static WorkerStatus[] values()
for (WorkerStatus c : WorkerStatus.values()) System.out.println(c);
public static WorkerStatus valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null