org.jppf.comm.recovery
Class ClientConnection

java.lang.Object
  extended by org.jppf.utils.ThreadSynchronization
      extended by org.jppf.comm.recovery.AbstractRecoveryConnection
          extended by org.jppf.comm.recovery.ClientConnection
All Implemented Interfaces:
Runnable

public class ClientConnection
extends AbstractRecoveryConnection

Client-side connection for the recovery mechanism.

Author:
Laurent Cohen

Field Summary
 
Fields inherited from class org.jppf.comm.recovery.AbstractRecoveryConnection
initialized, maxRetries, ok, socketReadTimeout, socketWrapper, uuid
 
Fields inherited from class org.jppf.utils.ThreadSynchronization
stopped
 
Constructor Summary
ClientConnection(String uuid)
          Initialize this cliet connection with the specified uuid.
 
Method Summary
 void addClientConnectionListener(ClientConnectionListener listener)
          Add a listener to the list of listeners.
 void close()
          Close this client and release any resources it is using.
 void removeClientConnectionListener(ClientConnectionListener listener)
          Remove a listener from the list of listeners.
 void run()
          
 
Methods inherited from class org.jppf.comm.recovery.AbstractRecoveryConnection
getUuid, isInitialized, isOk, receiveMessage, receiveMessage, sendMessage, setInitialized, setOk
 
Methods inherited from class org.jppf.utils.ThreadSynchronization
goToSleep, goToSleep, goToSleep, isStopped, setStopped, wakeUp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientConnection

public ClientConnection(String uuid)
Initialize this cliet connection with the specified uuid.

Parameters:
uuid - the JPPF node or client uuid.
Method Detail

run

public void run()


close

public void close()
Close this client and release any resources it is using.

Specified by:
close in class AbstractRecoveryConnection

addClientConnectionListener

public void addClientConnectionListener(ClientConnectionListener listener)
Add a listener to the list of listeners.

Parameters:
listener - the listener to add.

removeClientConnectionListener

public void removeClientConnectionListener(ClientConnectionListener listener)
Remove a listener from the list of listeners.

Parameters:
listener - the listener to remove.


Copyright © 2005-2010 JPPF Team.