org.jppf.server.nio.nodeserver
Enum NodeState

java.lang.Object
  extended by java.lang.Enum<NodeState>
      extended by org.jppf.server.nio.nodeserver.NodeState
All Implemented Interfaces:
Serializable, Comparable<NodeState>

public enum NodeState
extends Enum<NodeState>

Enumeration of the possible states for a class server channel.

Author:
Laurent Cohen

Enum Constant Summary
IDLE
          Idle state for a node channel.
SEND_INITIAL_BUNDLE
          State of sending the initial bundle to the node.
SENDING_BUNDLE
          State of waiting for something to do / sending a task bundle to the node.
WAIT_INITIAL_BUNDLE
          State of waiting for the initial bundle from the node.
WAITING_RESULTS
          State of waiting for the execution result of a task bundle.
 
Method Summary
static NodeState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NodeState[] 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
 

Enum Constant Detail

SEND_INITIAL_BUNDLE

public static final NodeState SEND_INITIAL_BUNDLE
State of sending the initial bundle to the node.


WAIT_INITIAL_BUNDLE

public static final NodeState WAIT_INITIAL_BUNDLE
State of waiting for the initial bundle from the node.


SENDING_BUNDLE

public static final NodeState SENDING_BUNDLE
State of waiting for something to do / sending a task bundle to the node.


WAITING_RESULTS

public static final NodeState WAITING_RESULTS
State of waiting for the execution result of a task bundle.


IDLE

public static final NodeState IDLE
Idle state for a node channel.

Method Detail

values

public static NodeState[] 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 c : NodeState.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 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


Copyright © 2005-2010 JPPF Team.