| Package | Description |
|---|---|
| org.jppf.client | |
| org.jppf.client.event |
Support for connection pool events,
connection status notifications,
job lifecycle events
and job queue events in the JPPF client.
|
| Modifier and Type | Method and Description |
|---|---|
static JPPFClientConnectionStatus[] |
JPPFClientConnectionStatus.terminatedStatuses()
Get the statuses indicating that a connection is in a terminated state.
|
static JPPFClientConnectionStatus |
JPPFClientConnectionStatus.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JPPFClientConnectionStatus[] |
JPPFClientConnectionStatus.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static JPPFClientConnectionStatus[] |
JPPFClientConnectionStatus.workingStatuses()
Get the statuses indicating that a connection is in a working state.
|
| Modifier and Type | Method and Description |
|---|---|
JPPFClientConnection |
JPPFConnectionPool.awaitConnection(JPPFClientConnectionStatus... statuses)
Wait for a connection to be in one of the specified states.
|
JPPFConnectionPool |
JPPFClient.awaitConnectionPool(JPPFClientConnectionStatus... statuses)
Wait until there is at least one connection pool with at least one connection in one of the specified statuses.
|
JPPFConnectionPool |
JPPFClient.awaitConnectionPool(long timeout,
JPPFClientConnectionStatus... statuses)
Wait until at least one connection pool with at least one connection in one of the specified statuses,
or until the specified timeout to expire, whichever happens first.
|
List<JPPFConnectionPool> |
JPPFClient.awaitConnectionPools(org.jppf.utils.ComparisonOperator poolOperator,
int expectedPools,
org.jppf.utils.ComparisonOperator connectionOperator,
int expectedConnections,
long timeout,
JPPFClientConnectionStatus... statuses)
Wait until at least the specified expected connection pools satisfy the condition where the number of connections with the specified statuses
satisfy the specified connection operator, or until the specified timeout expires, whichever happens first.
|
List<JPPFConnectionPool> |
JPPFClient.awaitConnectionPools(org.jppf.utils.ComparisonOperator operator,
int expectedConnections,
long timeout,
JPPFClientConnectionStatus... statuses)
Wait until there is at least one connection pool where the number of connections with the specified statuses
satisfy the specified condition, or until the specified timeout expires, whichever happens first.
|
List<JPPFConnectionPool> |
JPPFClient.awaitConnectionPools(long timeout,
JPPFClientConnectionStatus... statuses)
Wait until at least one connection pool with at least one connection in one of the specified statuses,
or until the specified timeout to expire, whichever happens first.
|
List<JPPFClientConnection> |
JPPFConnectionPool.awaitConnections(org.jppf.utils.ComparisonOperator operator,
int nbConnections,
JPPFClientConnectionStatus... statuses)
Wait for the specified number of connections to be in one of the specified states.
|
List<JPPFClientConnection> |
JPPFConnectionPool.awaitConnections(org.jppf.utils.ComparisonOperator operator,
int nbConnections,
long timeout,
JPPFClientConnectionStatus... statuses)
Wait for the specified number of connections to be in one of the specified states, or the specified timeout to expire, whichever happens first.
|
int |
AbstractClientConnectionPool.connectionCount(JPPFClientConnectionStatus... statuses)
Get the number of connections in this pool that have one of the psecified statuses.
|
List<JPPFConnectionPool> |
AbstractJPPFClient.findConnectionPools(JPPFClientConnectionStatus... statuses)
Find the connection pools that have a least one connection matching one of the specified statuses.
|
JPPFClientConnection |
AbstractJPPFClient.getClientConnection(int priority,
JPPFClientConnectionStatus... statuses)
Get a connection with the specified priority that matches one of the specified statuses.
|
List<JPPFClientConnection> |
AbstractClientConnectionPool.getConnections(JPPFClientConnectionStatus... statuses)
Get a list of connections held by this pool whose status is one of the specified statuses.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
JPPFClientConnectionStatus.isOneOf(List<JPPFClientConnectionStatus> statuses)
Determine whether this status is one of those specified as input.
|
| Modifier and Type | Method and Description |
|---|---|
JPPFClientConnectionStatus |
ClientConnectionStatusEvent.getOldStatus()
Get the connection status before the change.
|
JPPFClientConnectionStatus |
ClientConnectionStatusHandler.getStatus()
Get the status of this connection.
|
| Constructor and Description |
|---|
ClientConnectionStatusEvent(JPPFClientConnection source,
JPPFClientConnectionStatus oldStatus)
Initialize this event with a client connection as source.
|
Copyright © 2005-2019 JPPF Team.