Package org.jppf.node.idle
Class IdleStateEvent
java.lang.Object
java.util.EventObject
org.jppf.node.idle.IdleStateEvent
- All Implemented Interfaces:
Serializable
Event emitted when the idle state of an
IdleDetectionTask changes.- Author:
- Laurent Cohen
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionIdleStateEvent(org.jppf.node.idle.IdleDetectionTask task) Initialize this event with the task as source. -
Method Summary
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
IdleStateEvent
public IdleStateEvent(org.jppf.node.idle.IdleDetectionTask task) Initialize this event with the task as source.- Parameters:
task- anIdleDetectionTaskinstance.
-
-
Method Details
-
getTask
public org.jppf.node.idle.IdleDetectionTask getTask()Get the task source of this event.- Returns:
- an
IdleDetectionTaskinstance.
-
getState
Get the idle state when this event was emitted.- Returns:
- an
IdleStateenum value.
-