org.jppf.client.event
Class ClientConnectionStatusEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.jppf.client.event.ClientConnectionStatusEvent
All Implemented Interfaces:
Serializable

public class ClientConnectionStatusEvent
extends EventObject

Event sent to notify of a status change for a client connection.

Author:
Laurent Cohen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ClientConnectionStatusEvent(ClientConnectionStatusHandler source, JPPFClientConnectionStatus oldStatus)
          Initialize this event with a client connection as source.
 
Method Summary
 ClientConnectionStatusHandler getClientConnectionStatusHandler()
          Get the source of this event.
 JPPFClientConnectionStatus getOldStatus()
          Get the connection status before the change.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClientConnectionStatusEvent

public ClientConnectionStatusEvent(ClientConnectionStatusHandler source,
                                   JPPFClientConnectionStatus oldStatus)
Initialize this event with a client connection as source.

Parameters:
source - the event source.
oldStatus - the connection status before the change.
Method Detail

getClientConnectionStatusHandler

public ClientConnectionStatusHandler getClientConnectionStatusHandler()
Get the source of this event.

Returns:
the event as a JPPFClientConnection instance.

getOldStatus

public JPPFClientConnectionStatus getOldStatus()
Get the connection status before the change.

Returns:
a JPPFClientConnectionStatus enum value.


Copyright © 2005-2010 JPPF Team.