Package org.jppf.discovery
Class ClientConnectionPoolInfo
java.lang.Object
org.jppf.discovery.DriverConnectionInfo
org.jppf.discovery.ClientConnectionPoolInfo
Instances of this class represent the connection information and configuration of a JPPF connection pool on the client side.
- Since:
- 5.2.1
- Author:
- Laurent Cohen
-
Constructor Summary
ConstructorsConstructorDescriptionInitialize a pool of plain connections with default name("driver"), host ("localhost"), port (11111), priority (0) and pool size (1).ClientConnectionPoolInfo(String name, boolean secure, String host, int port) Initialize a pool of connections with default priority (0) and pool size (1).ClientConnectionPoolInfo(String name, boolean secure, String host, int port, int priority, int poolSize, int jmxPoolSize) Initialize a pool of connections with the specified parameters.ClientConnectionPoolInfo(String name, boolean secure, String host, int port, int priority, int poolSize, int jmxPoolSize, boolean heartbeatEnabled) Initialize a pool of connections with the specified parameters.ClientConnectionPoolInfo(String name, boolean secure, String host, int port, int priority, int poolSize, int jmxPoolSize, boolean heartbeatEnabled, int maxJobs) Initialize a pool of connections with the specified parameters.ClientConnectionPoolInfo(String name, String host, int port) Initialize a pool of plain connections with default priority (0) and pool size (1). -
Method Summary
Modifier and TypeMethodDescriptionbooleanintGet the associated JMX connection pool size.intGet the maximum number of jobs that can be processed concurrently by each connection.intGet the connection priority.inthashCode()voidsetJmxPoolSize(int jmxPoolSize) Set the associated JMX connection pool size.voidsetMaxJobs(int maxJobs) Set the maximum number of jobs that can be processed concurrently by each connection.voidsetPriority(int priority) Set the connection priority.toString()Methods inherited from class org.jppf.discovery.DriverConnectionInfo
getHost, getName, getPoolSize, getPort, isHeartbeatEnabled, isSecure, setHeartbeatEnabled, setHost, setName, setPoolSize, setPort, setSecure
-
Constructor Details
-
ClientConnectionPoolInfo
public ClientConnectionPoolInfo()Initialize a pool of plain connections with default name("driver"), host ("localhost"), port (11111), priority (0) and pool size (1). -
ClientConnectionPoolInfo
Initialize a pool of plain connections with default priority (0) and pool size (1).- Parameters:
name- the name given to this connection pool, used as numbered prefix for individual connection names.host- the driver host name or IP address.port- the driver port to connect to.
-
ClientConnectionPoolInfo
Initialize a pool of connections with default priority (0) and pool size (1).- Parameters:
name- the name given to this connection pool, used as numbered prefix for individual connection names.secure- whether SSL/TLS should be used.host- the driver host name or IP address.port- the driver port to connect to.
-
ClientConnectionPoolInfo
public ClientConnectionPoolInfo(String name, boolean secure, String host, int port, int priority, int poolSize, int jmxPoolSize) Initialize a pool of connections with the specified parameters.- Parameters:
name- the name given to this connection pool, used as numbered prefix for individual connection names.secure- whether SSL/TLS should be used.host- the driver host name or IP address.port- the driver port to connect to.priority- the connection priority.poolSize- the connection pool size.jmxPoolSize- the associated JMX connection pool size.
-
ClientConnectionPoolInfo
public ClientConnectionPoolInfo(String name, boolean secure, String host, int port, int priority, int poolSize, int jmxPoolSize, boolean heartbeatEnabled) Initialize a pool of connections with the specified parameters.- Parameters:
name- the name given to this connection pool, used as numbered prefix for individual connection names.secure- whether SSL/TLS should be used.host- the driver host name or IP address.port- the driver port to connect to.priority- the connection priority.poolSize- the connection pool size.heartbeatEnabled- wether the heartbeat mechanism is enabled for the connection pool.jmxPoolSize- the associated JMX connection pool size.
-
ClientConnectionPoolInfo
public ClientConnectionPoolInfo(String name, boolean secure, String host, int port, int priority, int poolSize, int jmxPoolSize, boolean heartbeatEnabled, int maxJobs) Initialize a pool of connections with the specified parameters.- Parameters:
name- the name given to this connection pool, used as numbered prefix for individual connection names.secure- whether SSL/TLS should be used.host- the driver host name or IP address.port- the driver port to connect to.priority- the connection priority.poolSize- the connection pool size.heartbeatEnabled- wether the heartbeat mechanism is enabled for the connection pool.jmxPoolSize- the associated JMX connection pool size.maxJobs- the maximum number of jobs that can be processed concurrently by each connection.
-
-
Method Details
-
getPriority
public int getPriority()Get the connection priority.- Returns:
- the connection priority as an int value.
-
setPriority
public void setPriority(int priority) Set the connection priority.- Parameters:
priority- the connection priority as an int value.
-
getJmxPoolSize
public int getJmxPoolSize()Get the associated JMX connection pool size.- Returns:
- the JMX pool size as an int value.
-
setJmxPoolSize
public void setJmxPoolSize(int jmxPoolSize) Set the associated JMX connection pool size.- Parameters:
jmxPoolSize- the JMX pool size as an int value.
-
getMaxJobs
public int getMaxJobs()Get the maximum number of jobs that can be processed concurrently by each connection.- Returns:
- the maximum number of jobs as an
intvalue.
-
setMaxJobs
public void setMaxJobs(int maxJobs) Set the maximum number of jobs that can be processed concurrently by each connection.- Parameters:
maxJobs- the maximum number of jobs as anintvalue.
-
hashCode
public int hashCode()- Overrides:
hashCodein classDriverConnectionInfo
-
equals
- Overrides:
equalsin classDriverConnectionInfo
-
toString
- Overrides:
toStringin classDriverConnectionInfo
-