Class PeerConnectionPoolHandler

java.lang.Object
org.jppf.server.peer.PeerConnectionPoolHandler

public class PeerConnectionPoolHandler extends Object
Author:
Laurent Cohen
  • Constructor Details

    • PeerConnectionPoolHandler

      public PeerConnectionPoolHandler(JPPFDriver driver, org.jppf.utils.TypedProperties config)
      Initialize this connection pool handler.
      Parameters:
      driver - reference to the JPPF driver.
      config - the driver configuration properties.
  • Method Details

    • newPool

      public PeerConnectionPool newPool(String peerName, int size, org.jppf.comm.discovery.JPPFConnectionInformation connectionInfo, boolean secure, boolean fromDiscovery)
      Create a new peer connection pool.
      Parameters:
      size - the size of this pool.
      peerName - name of the peer in the configuration file.
      connectionInfo - the peer connection information.
      secure - determines whether communication with remote peer servers should be secure.
      fromDiscovery - whether this connection and its pool were created by the discovery mechanism.
      Returns:
      the newly created pool.
    • getLoadBalanceThreshold

      public int getLoadBalanceThreshold()
      Returns:
      the number of connected nodes below which the driver load-balances to other peer drivers.