edu.rice.cs.util.newjvm
Enum AbstractMasterJVM.State
java.lang.Object
java.lang.Enum<AbstractMasterJVM.State>
edu.rice.cs.util.newjvm.AbstractMasterJVM.State
- All Implemented Interfaces:
- Serializable, Comparable<AbstractMasterJVM.State>
- Enclosing class:
- AbstractMasterJVM
private static enum AbstractMasterJVM.State
- extends Enum<AbstractMasterJVM.State>
Synchronization strategy: compare-and-swap guarantees that only one thread enters a STARTING, or
QUITTING, or DISPOSED state. After that, the only state transitions out of STARTING/QUITTING occur
in the same thread (or a single designated worker thread); all other threads must wait until the
transition to FRESH or RUNNING.
FRESH
public static final AbstractMasterJVM.State FRESH
STARTING
public static final AbstractMasterJVM.State STARTING
RUNNING
public static final AbstractMasterJVM.State RUNNING
QUITTING
public static final AbstractMasterJVM.State QUITTING
DISPOSED
public static final AbstractMasterJVM.State DISPOSED
values
public static AbstractMasterJVM.State[] 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 (AbstractMasterJVM.State c : AbstractMasterJVM.State.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static AbstractMasterJVM.State 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 name
NullPointerException - if the argument is null