Class DriverInitializer

java.lang.Object
org.jppf.server.DriverInitializer

public class DriverInitializer extends Object
Handles various initializations for the driver.
Author:
Laurent Cohen
  • Field Details

    • VALUE_JPPF_DISCOVERY

      protected static final String VALUE_JPPF_DISCOVERY
      Constant for JPPF automatic connection discovery
      See Also:
  • Constructor Details

    • DriverInitializer

      public DriverInitializer(JPPFDriver driver, org.jppf.utils.TypedProperties config)
      Instantiate this initializer with the specified driver.
      Parameters:
      driver - the driver to initialize.
      config - the driver's configuration.
  • Method Details

    • getConnectionInformation

      public org.jppf.comm.discovery.JPPFConnectionInformation getConnectionInformation()
      Read configuration for the host name and ports used to connect to this driver.
      Returns:
      a DriverConnectionInformation instance.
    • initBroadcaster

      public void initBroadcaster()
      Initialize and start the discovery service.
    • stopBroadcaster

      public void stopBroadcaster()
      Stop the discovery service if it is running.
    • isBroadcasting

      public boolean isBroadcasting()
      Determine whether broadcasting is active.
      Returns:
      true if broadcast is active, false otherwise.
      Since:
      4.2
    • getPeerDiscoveryThread

      public PeerDiscoveryThread getPeerDiscoveryThread()
      Get the thread that performs the peer servers discovery.
      Returns:
      a PeerDiscoveryThread instance.
    • getJmxServer

      public org.jppf.management.JMXServer getJmxServer(boolean ssl)
      Get the jmx server used to manage and monitor this driver.
      Parameters:
      ssl - specifies whether to get the ssl-based connector server.
      Returns:
      a JMXServerImpl instance.
    • getServerDebug

      public ServerDebug getServerDebug()
      Get the object that collects debug information.
      Returns:
      a ServerDebug instance.
    • getNodeConnectionEventHandler

      public NodeConnectionEventHandler getNodeConnectionEventHandler()
      Get the object that handles listeners to node connection events.
      Returns:
      a NodeConnectionEventHandler instance.
    • getClassCache

      public ClassCache getClassCache()
      Get the soft cache of classes downloaded form the clients r from this driver's classpath.
      Returns:
      an instance of ClassCache.
    • getDiscoveredPeers

      public Set<org.jppf.discovery.DriverConnectionInfo> getDiscoveredPeers()
      Get the discovered peers connection information.
      Returns:
      a set of DriverConnectionInfo instances.
    • getPeerConnectionPoolHandler

      public PeerConnectionPoolHandler getPeerConnectionPoolHandler()
      Returns:
      the object that handles the pools of connections to remote peer drivers.