Package org.jppf.comm.recovery
Class HeartbeatConnection
java.lang.Object
org.jppf.utils.concurrent.ThreadSynchronization
org.jppf.comm.recovery.AbstractHeartbeatConnection
org.jppf.comm.recovery.HeartbeatConnection
- All Implemented Interfaces:
Runnable
Client-side connection for the recovery mechanism.
- Author:
- Laurent Cohen
-
Field Summary
Fields inherited from class org.jppf.comm.recovery.AbstractHeartbeatConnection
initialized, maxRetries, ok, runThread, socketReadTimeout, socketWrapper, uuidFields inherited from class org.jppf.utils.concurrent.ThreadSynchronization
stopped -
Constructor Summary
ConstructorsConstructorDescriptionHeartbeatConnection(int channelIdentifier, String uuid, String host, int port, boolean sslEnabled, TypedProperties config) Initialize this client connection with the specified uuid. -
Method Summary
Methods inherited from class org.jppf.comm.recovery.AbstractHeartbeatConnection
getSocketWrapper, getUuid, isInitialized, isOk, receiveMessage, receiveMessage, sendMessage, setInitialized, setOk, toStringMethods inherited from class org.jppf.utils.concurrent.ThreadSynchronization
goToSleep, goToSleep, goToSleep, isStopped, setStopped, wakeUp
-
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:AbstractHeartbeatConnectionClose this client and release any resources it is using.- Specified by:
closein classAbstractHeartbeatConnection
-
addClientConnectionListener
Add a listener to the list of listeners.- Parameters:
listener- the listener to add.
-
removeClientConnectionListener
Remove a listener from the list of listeners.- Parameters:
listener- the listener to remove.
-