Class JPPFPeerInitializer

java.lang.Object
org.jppf.server.peer.JPPFPeerInitializer
All Implemented Interfaces:
Runnable

public class JPPFPeerInitializer extends Object implements Runnable
Instances of this class are used to initialize the connections to a peer driver in a separate thread.
Author:
Laurent Cohen, Martin JANDA
  • Constructor Summary

    Constructors
    Constructor
    Description
    JPPFPeerInitializer(JPPFDriver driver, String peerName, org.jppf.comm.discovery.JPPFConnectionInformation connectionInfo, boolean secure)
    Initialize this peer initializer from a specified peerName.
    JPPFPeerInitializer(JPPFDriver driver, String peerName, org.jppf.comm.discovery.JPPFConnectionInformation connectionInfo, boolean secure, boolean fromDiscovery)
    Initialize this peer initializer from a specified peerName.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    run()
     
    void
    Start a thread running this initializer.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JPPFPeerInitializer

      public JPPFPeerInitializer(JPPFDriver driver, String peerName, org.jppf.comm.discovery.JPPFConnectionInformation connectionInfo, boolean secure)
      Initialize this peer initializer from a specified peerName.
      Parameters:
      driver - reference to the JPPF driver.
      peerName - the name of the peer in the configuration file.
      connectionInfo - peer connection information.
      secure - specifies whether the connection should be established over SSL/TLS.
    • JPPFPeerInitializer

      public JPPFPeerInitializer(JPPFDriver driver, String peerName, org.jppf.comm.discovery.JPPFConnectionInformation connectionInfo, boolean secure, boolean fromDiscovery)
      Initialize this peer initializer from a specified peerName.
      Parameters:
      driver - reference to the JPPF driver.
      peerName - the name of the peer in the configuration file.
      connectionInfo - peer connection information.
      secure - specifies whether the connection should be established over SSL/TLS.
      fromDiscovery - determines whether the connection info was obtained from the auto-discovery mechanism.
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • start

      public void start()
      Start a thread running this initializer.
    • close

      public void close()