Class ClientConnectionPoolInfo

java.lang.Object
org.jppf.discovery.DriverConnectionInfo
org.jppf.discovery.ClientConnectionPoolInfo

public class ClientConnectionPoolInfo extends DriverConnectionInfo
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 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

      public ClientConnectionPoolInfo(String name, String host, int port)
      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

      public ClientConnectionPoolInfo(String name, boolean secure, String host, int port)
      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 int value.
    • 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 an int value.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class DriverConnectionInfo
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class DriverConnectionInfo
    • toString

      public String toString()
      Overrides:
      toString in class DriverConnectionInfo