Package org.jppf.client
Enum Class JPPFClientConnectionStatus
- All Implemented Interfaces:
Serializable,Comparable<JPPFClientConnectionStatus>,Constable
Status of the connection between a client and a driver.
- Author:
- Laurent Cohen
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe connection is successfully connected to the driver.The connection was closed by the application.The connection is currently attempting to connect to the driver.The connection was disconnected from the driver.The connection is currently executing a job.The connection failed to (re)connect to the driver and no further attempt will be made.The connection was just created. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisOneOf(List<JPPFClientConnectionStatus> statuses) Determine whether this status is one of those specified as input.booleanbooleanstatic JPPFClientConnectionStatus[]Get the statuses indicating that a connection is in a terminated state.static JPPFClientConnectionStatusReturns the enum constant of this class with the specified name.static JPPFClientConnectionStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.static JPPFClientConnectionStatus[]Get the statuses indicating that a connection is in a working state.
-
Enum Constant Details
-
NEW
The connection was just created. -
DISCONNECTED
The connection was disconnected from the driver. -
CONNECTING
The connection is currently attempting to connect to the driver. -
ACTIVE
The connection is successfully connected to the driver. -
EXECUTING
The connection is currently executing a job. -
FAILED
The connection failed to (re)connect to the driver and no further attempt will be made. -
CLOSED
The connection was closed by the application.
-
-
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
-
isOneOf
Determine whether this status is one of those specified as input.- Parameters:
statuses- the statuses to check against.- Returns:
trueif this status is one of those specified as input,falseotherwise.
-
isWorkingStatus
public boolean isWorkingStatus()- Returns:
trueif this status is a working status,falseotherwise.
-
isTerminatedStatus
public boolean isTerminatedStatus()- Returns:
trueif this status is a working status,falseotherwise.
-
workingStatuses
Get the statuses indicating that a connection is in a working state.- Returns:
- an array of
JPPFClientConnectionStatusenum values.
-
terminatedStatuses
Get the statuses indicating that a connection is in a terminated state.- Returns:
- an array of
JPPFClientConnectionStatusenum values.
-