org.jppf.server.nio.classloader
Enum ClassState

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

public enum ClassState
extends Enum<ClassState>

Enumeration of the possible states for a class server channel.

Author:
Laurent Cohen

Enum Constant Summary
DEFINING_TYPE
          State of determining the type of a channel.
IDLE_NODE
          State of doing nothing for a resource provider.
IDLE_PROVIDER
          State of doing nothing for a resource provider.
NODE_WAITING_PROVIDER_RESPONSE
          Waiting for a provider (client) to provide a class or resource definition.
SENDING_INITIAL_NODE_RESPONSE
          State of sending the initial information to a node classloader.
SENDING_INITIAL_PROVIDER_RESPONSE
          State of sending the initial information to a client.
SENDING_NODE_RESPONSE
          State of waiting for a response to a node classloader.
SENDING_PROVIDER_REQUEST
          State of waiting for a response from a resource provider.
WAITING_NODE_REQUEST
          State of waiting for a request from a node classloader.
WAITING_PROVIDER_RESPONSE
          State of waiting for a response form a resource provider.
 
Method Summary
static ClassState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ClassState[] 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

DEFINING_TYPE

public static final ClassState DEFINING_TYPE
State of determining the type of a channel.


SENDING_INITIAL_PROVIDER_RESPONSE

public static final ClassState SENDING_INITIAL_PROVIDER_RESPONSE
State of sending the initial information to a client.


SENDING_INITIAL_NODE_RESPONSE

public static final ClassState SENDING_INITIAL_NODE_RESPONSE
State of sending the initial information to a node classloader.


WAITING_NODE_REQUEST

public static final ClassState WAITING_NODE_REQUEST
State of waiting for a request from a node classloader.


SENDING_NODE_RESPONSE

public static final ClassState SENDING_NODE_RESPONSE
State of waiting for a response to a node classloader.


WAITING_PROVIDER_RESPONSE

public static final ClassState WAITING_PROVIDER_RESPONSE
State of waiting for a response form a resource provider.


SENDING_PROVIDER_REQUEST

public static final ClassState SENDING_PROVIDER_REQUEST
State of waiting for a response from a resource provider.


IDLE_PROVIDER

public static final ClassState IDLE_PROVIDER
State of doing nothing for a resource provider.


IDLE_NODE

public static final ClassState IDLE_NODE
State of doing nothing for a resource provider.


NODE_WAITING_PROVIDER_RESPONSE

public static final ClassState NODE_WAITING_PROVIDER_RESPONSE
Waiting for a provider (client) to provide a class or resource definition.

Method Detail

values

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

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

valueOf

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