public enum JPPFClientConnectionStatus extends Enum<JPPFClientConnectionStatus>
| Enum Constant and Description |
|---|
ACTIVE
The connection is successfully connected to the driver.
|
CLOSED
The connection was closed by the application.
|
CONNECTING
The connection is currently attempting to connect to the driver.
|
DISCONNECTED
The connection was disconnected from 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.
|
NEW
The connection was just created.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isOneOf(List<JPPFClientConnectionStatus> statuses)
Determine whether this status is one of those specified as input.
|
boolean |
isTerminatedStatus()
Determine whether this status a working status, that is if it is either
JPPFClientConnectionStatus.FAILED or JPPFClientConnectionStatus.CLOSED. |
boolean |
isWorkingStatus()
Determine whether this status a working status, that is if it is either
JPPFClientConnectionStatus.ACTIVE or JPPFClientConnectionStatus.EXECUTING. |
static JPPFClientConnectionStatus[] |
terminatedStatuses()
Get the statuses indicating that a connection is in a terminated state.
|
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.
|
static JPPFClientConnectionStatus[] |
workingStatuses()
Get the statuses indicating that a connection is in a working state.
|
public static final JPPFClientConnectionStatus NEW
public static final JPPFClientConnectionStatus DISCONNECTED
public static final JPPFClientConnectionStatus CONNECTING
public static final JPPFClientConnectionStatus ACTIVE
public static final JPPFClientConnectionStatus EXECUTING
public static final JPPFClientConnectionStatus FAILED
public static final JPPFClientConnectionStatus CLOSED
public static JPPFClientConnectionStatus[] values()
for (JPPFClientConnectionStatus c : JPPFClientConnectionStatus.values()) System.out.println(c);
public static JPPFClientConnectionStatus valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isOneOf(List<JPPFClientConnectionStatus> statuses)
statuses - the statuses to check against.true if this status is one of those specified as input, false otherwise.public boolean isWorkingStatus()
JPPFClientConnectionStatus.ACTIVE or JPPFClientConnectionStatus.EXECUTING.true if this status is a working status, false otherwise.public boolean isTerminatedStatus()
JPPFClientConnectionStatus.FAILED or JPPFClientConnectionStatus.CLOSED.true if this status is a working status, false otherwise.public static JPPFClientConnectionStatus[] workingStatuses()
JPPFClientConnectionStatus enum values.public static JPPFClientConnectionStatus[] terminatedStatuses()
JPPFClientConnectionStatus enum values.Copyright © 2005-2019 JPPF Team.