Package org.jppf.execute
Class ExecutorChannelStatusEvent
java.lang.Object
java.util.EventObject
org.jppf.execute.ExecutorChannelStatusEvent
- All Implemented Interfaces:
Serializable
Event sent to notify of a status change for a client connection.
- Author:
- Martin JANDA
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionExecutorChannelStatusEvent(Object source, ExecutorStatus oldValue, ExecutorStatus newValue) Initialize this event with a channel as source. -
Method Summary
Modifier and TypeMethodDescriptionGet the channel status after the change.Get the channel status before the change.toString()Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
ExecutorChannelStatusEvent
Initialize this event with a channel as source.- Parameters:
source- the event source.oldValue- the channel status before the change.newValue- the channel status after the change.
-
-
Method Details
-
getOldValue
Get the channel status before the change.- Returns:
- a
ExecutorStatusenum value.
-
getNewValue
Get the channel status after the change.- Returns:
- a
ExecutorStatusenum value.
-
toString
- Overrides:
toStringin classEventObject
-