org.jppf.server.nio.nodeserver
Enum NodeTransition

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

public enum NodeTransition
extends Enum<NodeTransition>

Enumeration of the possible state transitions for a Node server channel.

Author:
Laurent Cohen

Enum Constant Summary
TO_IDLE
          Transition from a state to IDLE.
TO_SEND_INITIAL
          Transition from a state to SEND_INITIAL_BUNDLE.
TO_SENDING
          Transition from a state to SENDING_BUNDLE.
TO_WAIT_INITIAL
          Transition from a state to WAIT_INITIAL_BUNDLE.
TO_WAITING
          Transition from a state to WAITING_RESULTS.
 
Method Summary
static NodeTransition valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NodeTransition[] 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

TO_SENDING

public static final NodeTransition TO_SENDING
Transition from a state to SENDING_BUNDLE.


TO_WAITING

public static final NodeTransition TO_WAITING
Transition from a state to WAITING_RESULTS.


TO_SEND_INITIAL

public static final NodeTransition TO_SEND_INITIAL
Transition from a state to SEND_INITIAL_BUNDLE.


TO_WAIT_INITIAL

public static final NodeTransition TO_WAIT_INITIAL
Transition from a state to WAIT_INITIAL_BUNDLE.


TO_IDLE

public static final NodeTransition TO_IDLE
Transition from a state to IDLE.

Method Detail

values

public static NodeTransition[] 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 (NodeTransition c : NodeTransition.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NodeTransition 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.