org.jppf.node.event
Class NodeEvent

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

public class NodeEvent
extends EventObject

Intances of this class describe events that occur within a nodes life cycle.

Author:
Laurent Cohen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
NodeEvent(int nbTasks)
          Create an event for the execution of a specified number of tasks.
NodeEvent(NodeEventType source)
          Initialize this event with a specified event source.
 
Method Summary
 int getNbTasks()
          Get the number of executed tasks.
 NodeEventType getType()
          Get the type 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

NodeEvent

public NodeEvent(NodeEventType source)
Initialize this event with a specified event source.

Parameters:
source - the source of the event.

NodeEvent

public NodeEvent(int nbTasks)
Create an event for the execution of a specified number of tasks.

Parameters:
nbTasks - the number of tasks as an int.
Method Detail

getType

public NodeEventType getType()
Get the type of this event.

Returns:
the type of event as an enumerated value.

getNbTasks

public int getNbTasks()
Get the number of executed tasks.

Returns:
the number of tasks as an int.


Copyright © 2005-2010 JPPF Team.