public abstract class AbstractClientConnectionPool extends AbstractConnectionPool<JPPFClientConnection> implements Comparable<AbstractClientConnectionPool>
This connection pool also holds a pool of JMX connections to the same remote driver
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
compareTo(AbstractClientConnectionPool other)
Compares this connection pool with another, based on their respective priorities.
|
int |
connectionCount(JPPFClientConnectionStatus... statuses)
Get the number of connections in this pool that have one of the psecified statuses.
|
boolean |
equals(Object obj) |
JPPFClient |
getClient()
Get the JPPF client which holds this pool.
|
JPPFClientConnection |
getConnection()
Get the next connection that is connected and available.
|
List<JPPFClientConnection> |
getConnections(JPPFClientConnectionStatus... statuses)
Get a list of connections held by this pool whose status is one of the specified statuses.
|
String |
getDriverHost()
Get the host name of the remote driver.
|
String |
getDriverIPAddress()
Get the ip address of the remote driver.
|
int |
getDriverPort()
Get the port to use on the remote driver.
|
String |
getDriverUuid()
Get the uuid of the driver to which connections in this pool are connected.
|
int |
getId()
Get the id of this pool.
|
org.jppf.management.JMXDriverConnectionWrapper |
getJmxConnection()
Get a connected JMX connection among those in the JMX pool.
|
org.jppf.management.JMXDriverConnectionWrapper |
getJmxConnection(boolean connectedOnly)
Get a JMX connection among those in the JMX pool.
|
List<org.jppf.management.JMXDriverConnectionWrapper> |
getJMXConnections()
Get the list of connections currently in the JMX pool.
|
int |
getJMXPoolMaxSize()
Deprecated.
use
AbstractClientConnectionPool.getJMXPoolSize() instead. |
int |
getJMXPoolSize()
Get the current maximum size of the associated JMX connection pool.
|
int |
getJmxPort()
Get the jmx port to use on the remote driver.
|
int |
getMaxJobs()
Get the maximum number of jobs that can be processed concurrently by each connection.
|
String |
getName()
Get the name of this pool.
|
int |
getPriority()
Get the priority associated with this pool.
|
org.jppf.management.JPPFSystemInformation |
getSystemInfo()
Get the driver's system information.
|
int |
hashCode() |
boolean |
isSslEnabled()
Check whether this pool is for SSL connections.
|
int |
setJMXPoolMaxSize(int maxSize)
Deprecated.
use
AbstractClientConnectionPool.setJMXPoolSize(int) instead. |
int |
setJMXPoolSize(int maxSize)
Set a new maximum size for the associated pool of JMX connections, adding new or closing existing connections as needed.
|
int |
setMaxJobs(int maxJobs)
Set the maximum number of jobs that can be processed concurrently by each connection.
|
connectionCount, getConnections, getSize, isEmpty, iterator, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitsetSizeforEach, spliteratorpublic JPPFClientConnection getConnection()
ConnectionPoolgetConnection in interface ConnectionPool<JPPFClientConnection>null otherwise.public int connectionCount(JPPFClientConnectionStatus... statuses)
Warning: the execution time for this method is in O(n).
statuses - the set of connection statuses to look for.public int getId()
public int getPriority()
public boolean isSslEnabled()
true if SSL is enabled, false otherwise.public String getName()
public String getDriverUuid()
public int compareTo(AbstractClientConnectionPool other)
This comparison defines an ordering of connection pools by their descending priority.
compareTo in interface Comparable<AbstractClientConnectionPool>other - the other connection pool to compare with.public List<JPPFClientConnection> getConnections(JPPFClientConnectionStatus... statuses)
statuses - an array of JPPFClientConnectionStatus values to check against.JPPFClientConnection instances, possibly empty but never null.public String getDriverHost()
public String getDriverIPAddress()
public int getDriverPort()
public JPPFClient getClient()
JPPFClient instance.public org.jppf.management.JPPFSystemInformation getSystemInfo()
JPPFSystemInformation.public int getJmxPort()
public org.jppf.management.JMXDriverConnectionWrapper getJmxConnection()
JMXDriverConnectionWrapper instance, or null if the JMX pool has no connected connection.public org.jppf.management.JMXDriverConnectionWrapper getJmxConnection(boolean connectedOnly)
connectedOnly - specifies whether to get a connection in connected state only or in any state.JMXDriverConnectionWrapper instance, or null if the JMX pool has no connection in the specified state.public int getJMXPoolMaxSize()
AbstractClientConnectionPool.getJMXPoolSize() instead.public int setJMXPoolMaxSize(int maxSize)
AbstractClientConnectionPool.setJMXPoolSize(int) instead.maxSize - the new maxsize to set.public int getJMXPoolSize()
public int setJMXPoolSize(int maxSize)
maxSize - the new maxsize to set.public int getMaxJobs()
int value.public int setMaxJobs(int maxJobs)
maxJobs is less than 1, this method has no effect.maxJobs - the maximum number of jobs to set.public List<org.jppf.management.JMXDriverConnectionWrapper> getJMXConnections()
JMXDriverConnectionWrapper instances.public void close()
close in interface AutoCloseableclose in class AbstractConnectionPool<JPPFClientConnection>Copyright © 2005-2019 JPPF Team.