p2pMapReduce.nodeModule.nodeFsm
Enum NodeState.StateName
java.lang.Object
java.lang.Enum<NodeState.StateName>
p2pMapReduce.nodeModule.nodeFsm.NodeState.StateName
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<NodeState.StateName>
- Enclosing class:
- NodeState
public static enum NodeState.StateName
- extends java.lang.Enum<NodeState.StateName>
Method Summary |
static NodeState.StateName |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static NodeState.StateName[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
IDLE
public static final NodeState.StateName IDLE
CHECK_MASTER
public static final NodeState.StateName CHECK_MASTER
ACTIVE
public static final NodeState.StateName ACTIVE
MASTER
public static final NodeState.StateName MASTER
values
public static NodeState.StateName[] 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 (NodeState.StateName c : NodeState.StateName.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static NodeState.StateName valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null