org.jppf.node.event
Enum NodeEventType

java.lang.Object
  extended by java.lang.Enum<NodeEventType>
      extended by org.jppf.node.event.NodeEventType
All Implemented Interfaces:
Serializable, Comparable<NodeEventType>

public enum NodeEventType
extends Enum<NodeEventType>

Enumeration of all possible event types.


Enum Constant Summary
DISCONNECTED
          Event type to specify a node is disconnected from the server.
END_CONNECT
          Event type to specify a node has successfully connected to the server.
END_EXEC
          Event type to specify a node finished executing one or more tasks, and is switching from executing to idle state.
START_CONNECT
          Event type to specify a node is about to attempt connecting to the server.
START_EXEC
          Event type to specify a node is starting to execute one or more tasks, and is switching from idle to executing state.
TASK_EXECUTED
          Event type to specify a task was executed.
UNKNOWN
          Event type to specify the state of the node is not known.
 
Method Summary
static NodeEventType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NodeEventType[] 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

START_CONNECT

public static final NodeEventType START_CONNECT
Event type to specify a node is about to attempt connecting to the server.


END_CONNECT

public static final NodeEventType END_CONNECT
Event type to specify a node has successfully connected to the server.


DISCONNECTED

public static final NodeEventType DISCONNECTED
Event type to specify a node is disconnected from the server.


START_EXEC

public static final NodeEventType START_EXEC
Event type to specify a node is starting to execute one or more tasks, and is switching from idle to executing state.


END_EXEC

public static final NodeEventType END_EXEC
Event type to specify a node finished executing one or more tasks, and is switching from executing to idle state.


TASK_EXECUTED

public static final NodeEventType TASK_EXECUTED
Event type to specify a task was executed.


UNKNOWN

public static final NodeEventType UNKNOWN
Event type to specify the state of the node is not known.

Method Detail

values

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

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

valueOf

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