org.jppf.client
Enum JPPFClientConnectionStatus

java.lang.Object
  extended by java.lang.Enum<JPPFClientConnectionStatus>
      extended by org.jppf.client.JPPFClientConnectionStatus
All Implemented Interfaces:
Serializable, Comparable<JPPFClientConnectionStatus>

public enum JPPFClientConnectionStatus
extends Enum<JPPFClientConnectionStatus>

Connection status of a JPPFClientConnection instance.

Author:
Laurent Cohen

Enum Constant Summary
ACTIVE
          Indicates that the connection instance has successfully connected to the driver.
CONNECTING
          Indicates that the connection instance is currently attempting to connect to the driver.
DISCONNECTED
          Indicates that the connection instance is disconnected from the driver.
EXECUTING
          Indicates that the connection instance has is currently executing tasks.
FAILED
          Indicates that the connection instance has failed to connect to the driver.
NEW
          Indicates a new connection.
 
Method Summary
static JPPFClientConnectionStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JPPFClientConnectionStatus[] 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

NEW

public static final JPPFClientConnectionStatus NEW
Indicates a new connection.


DISCONNECTED

public static final JPPFClientConnectionStatus DISCONNECTED
Indicates that the connection instance is disconnected from the driver.


CONNECTING

public static final JPPFClientConnectionStatus CONNECTING
Indicates that the connection instance is currently attempting to connect to the driver.


ACTIVE

public static final JPPFClientConnectionStatus ACTIVE
Indicates that the connection instance has successfully connected to the driver.


EXECUTING

public static final JPPFClientConnectionStatus EXECUTING
Indicates that the connection instance has is currently executing tasks.


FAILED

public static final JPPFClientConnectionStatus FAILED
Indicates that the connection instance has failed to connect to the driver.

Method Detail

values

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

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

valueOf

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