org.jppf.node.idle
Class IdleStateEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.jppf.node.idle.IdleStateEvent
All Implemented Interfaces:
Serializable

public class IdleStateEvent
extends EventObject

Event emitted when the idle state of an IdleDetectionTask changes.

Author:
Laurent Cohen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
IdleStateEvent(IdleDetectionTask task)
          Initialize this event with the task as source.
 
Method Summary
 IdleState getState()
          Get the idle state when this event was emitted.
 IdleDetectionTask getTask()
          Get the task source of this event.
 
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

IdleStateEvent

public IdleStateEvent(IdleDetectionTask task)
Initialize this event with the task as source.

Parameters:
task - an IdleDetectionTask instance.
Method Detail

getTask

public IdleDetectionTask getTask()
Get the task source of this event.

Returns:
an IdleDetectionTask instance.

getState

public IdleState getState()
Get the idle state when this event was emitted.

Returns:
an IdleState enum value.


Copyright © 2005-2010 JPPF Team.