org.jppf.node.event
Class NodeEvent
java.lang.Object
java.util.EventObject
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
|
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. |
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.
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.