org.jppf.classloader
Enum JPPFResourceWrapper.State

java.lang.Object
  extended by java.lang.Enum<JPPFResourceWrapper.State>
      extended by org.jppf.classloader.JPPFResourceWrapper.State
All Implemented Interfaces:
Serializable, Comparable<JPPFResourceWrapper.State>
Enclosing class:
JPPFResourceWrapper

public static enum JPPFResourceWrapper.State
extends Enum<JPPFResourceWrapper.State>

Enumeration of the possible states for this resource wrapper.


Enum Constant Summary
NODE_INITIATION
          State for a node first contacting the class server.
NODE_REQUEST
          State for a node requesting a resource from the class server.
NODE_RESPONSE
          State for a node receiving a resource from the class server.
PROVIDER_INITIATION
          State for a resource provider first contacting the class server.
PROVIDER_REQUEST
          State for the class server requesting a resource from a resource provider.
PROVIDER_RESPONSE
          State for the class server receiving a resource from a resource provider.
 
Method Summary
static JPPFResourceWrapper.State valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JPPFResourceWrapper.State[] 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

NODE_INITIATION

public static final JPPFResourceWrapper.State NODE_INITIATION
State for a node first contacting the class server.


NODE_REQUEST

public static final JPPFResourceWrapper.State NODE_REQUEST
State for a node requesting a resource from the class server.


NODE_RESPONSE

public static final JPPFResourceWrapper.State NODE_RESPONSE
State for a node receiving a resource from the class server.


PROVIDER_INITIATION

public static final JPPFResourceWrapper.State PROVIDER_INITIATION
State for a resource provider first contacting the class server.


PROVIDER_REQUEST

public static final JPPFResourceWrapper.State PROVIDER_REQUEST
State for the class server requesting a resource from a resource provider.


PROVIDER_RESPONSE

public static final JPPFResourceWrapper.State PROVIDER_RESPONSE
State for the class server receiving a resource from a resource provider.

Method Detail

values

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

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

valueOf

public static JPPFResourceWrapper.State 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.