Class HeartbeatConnection

All Implemented Interfaces:
Runnable

public class HeartbeatConnection extends AbstractHeartbeatConnection
Client-side connection for the recovery mechanism.
Author:
Laurent Cohen
  • Constructor Details

    • HeartbeatConnection

      public HeartbeatConnection(int channelIdentifier, String uuid, String host, int port, boolean sslEnabled, TypedProperties config)
      Initialize this client connection with the specified uuid.
      Parameters:
      uuid - the JPPF node or client uuid.
      host - the host ot which to connect.
      port - the port number to connect to on the host.
      sslEnabled - whether secure connectivity is enabled.
      channelIdentifier - identifies this channel with the server.
      config - contains the location or source of the SSL configuration.
  • Method Details

    • run

      public void run()
    • close

      public void close()
      Description copied from class: AbstractHeartbeatConnection
      Close this client and release any resources it is using.
      Specified by:
      close in class AbstractHeartbeatConnection
    • addClientConnectionListener

      public void addClientConnectionListener(HeartbeatConnectionListener listener)
      Add a listener to the list of listeners.
      Parameters:
      listener - the listener to add.
    • removeClientConnectionListener

      public void removeClientConnectionListener(HeartbeatConnectionListener listener)
      Remove a listener from the list of listeners.
      Parameters:
      listener - the listener to remove.