Package org.jppf.classloader
Enum Class JPPFResourceWrapper.State
- All Implemented Interfaces:
Serializable,Comparable<JPPFResourceWrapper.State>,Constable
- Enclosing class:
- JPPFResourceWrapper
Enumeration of the possible states for this resource wrapper.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUsed for sending a close channel command to the serverState for a node first contacting the class server.State for a node requesting a resource from the class server.State for a node receiving a resource from the class server.State for a node receiving a resource from the class server, when the resonse could not be obtained from the client.State for a resource provider first contacting the class server.State for the class server requesting a resource from a resource provider.State for the class server receiving a resource from a resource provider. -
Method Summary
Modifier and TypeMethodDescriptionstatic JPPFResourceWrapper.StateReturns the enum constant of this class with the specified name.static JPPFResourceWrapper.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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. -
NODE_RESPONSE_ERROR
State for a node receiving a resource from the class server, when the resonse could not be obtained from the client. -
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. -
CLOSE_CHANNEL
Used for sending a close channel command to the server
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-