org.jppf.client.event
Interface ClientConnectionStatusHandler

All Known Subinterfaces:
ClassServerDelegate, ClientConnectionHandler, JPPFClientConnection
All Known Implementing Classes:
AbstractClassServerDelegate, AbstractClientConnectionHandler, AbstractJPPFClientConnection, ClassServerDelegateImpl, JcaClassServerDelegate, JPPFClientConnectionImpl, JPPFJcaClientConnection, TaskServerConnectionHandler

public interface ClientConnectionStatusHandler

Interface implemented by all classes that desire to handle a connection status and notify others about status changes.

Author:
Laurent Cohen

Method Summary
 void addClientConnectionStatusListener(ClientConnectionStatusListener listener)
          Add a connection status listener to this connection's list of listeners.
 JPPFClientConnectionStatus getStatus()
          Get the status of this connection.
 void removeClientConnectionStatusListener(ClientConnectionStatusListener listener)
          Remove a connection status listener from this connection's list of listeners.
 void setStatus(JPPFClientConnectionStatus status)
          Set the status of this connection.
 

Method Detail

getStatus

JPPFClientConnectionStatus getStatus()
Get the status of this connection.

Returns:
a JPPFClientConnectionStatus enumerated value.

setStatus

void setStatus(JPPFClientConnectionStatus status)
Set the status of this connection.

Parameters:
status - a JPPFClientConnectionStatus enumerated value.

addClientConnectionStatusListener

void addClientConnectionStatusListener(ClientConnectionStatusListener listener)
Add a connection status listener to this connection's list of listeners.

Parameters:
listener - the listener to add to the list.

removeClientConnectionStatusListener

void removeClientConnectionStatusListener(ClientConnectionStatusListener listener)
Remove a connection status listener from this connection's list of listeners.

Parameters:
listener - the listener to remove from the list.


Copyright © 2005-2010 JPPF Team.