org.jppf.node.event
Class NodeLifeCycleEvent

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

public class NodeLifeCycleEvent
extends EventObject

Instances of this class represent node life cycle events

Author:
Laurent Cohen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
NodeLifeCycleEvent(NodeExecutionManager executionManager)
          Initialize this event with the specified execution manager.
 
Method Summary
 JPPFDistributedJob getJob()
          Get the job currently being executed.
 List<JPPFTask> getTasks()
          Get the tasks currently being executed.
 
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

NodeLifeCycleEvent

public NodeLifeCycleEvent(NodeExecutionManager executionManager)
Initialize this event with the specified execution manager.

Parameters:
executionManager - the execution that handles the execution of tasks by a node.
Method Detail

getJob

public JPPFDistributedJob getJob()
Get the job currently being executed.

Returns:
a JPPFDistributedJob instance, or null if no job is being executed.

getTasks

public List<JPPFTask> getTasks()
Get the tasks currently being executed.

Returns:
a list of JPPFTask instances, or null if the node is idle.


Copyright © 2005-2010 JPPF Team.