Package org.jppf.client.event
Class ClientConnectionStatusEvent
java.lang.Object
java.util.EventObject
org.jppf.client.event.ClientConnectionStatusEvent
- All Implemented Interfaces:
Serializable
Event sent to notify of a status change for a client connection.
- Author:
- Laurent Cohen
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionClientConnectionStatusEvent(JPPFClientConnection source, JPPFClientConnectionStatus oldStatus) Initialize this event with a client connection as source. -
Method Summary
Modifier and TypeMethodDescriptionGet the source of this event.Deprecated.Get the connection status before the change.Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
ClientConnectionStatusEvent
public ClientConnectionStatusEvent(JPPFClientConnection 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 Details
-
getClientConnectionStatusHandler
Deprecated.usegetClientConnection()instead.Get the source of this event.- Returns:
- the event source as a
ClientConnectionStatusHandlerinstance.
-
getClientConnection
Get the source of this event.- Returns:
- the event source as a
ClientConnectionStatusHandlerinstance.
-
getOldStatus
Get the connection status before the change.- Returns:
- a
JPPFClientConnectionStatusenum value.
-
getClientConnection()instead.