public class NodeLifeCycleEvent extends EventObject
source| Constructor and Description |
|---|
NodeLifeCycleEvent(Node node,
NodeLifeCycleEventType type)
Initialize this event with the specified execution manager.
|
NodeLifeCycleEvent(Node node,
NodeLifeCycleEventType type,
JPPFDistributedJob job,
AbstractJPPFClassLoader cl)
Initialize this event with the specified job, task class loader and tasks.
|
NodeLifeCycleEvent(Node node,
NodeLifeCycleEventType type,
JPPFDistributedJob job,
AbstractJPPFClassLoader cl,
List<Task> tasks,
DataProvider dataProvider)
Initialize this event with the specified job, task class loader and tasks.
|
| Modifier and Type | Method and Description |
|---|---|
DataProvider |
getDataProvider()
Get the data provider for the current job, if any.
|
JPPFDistributedJob |
getJob()
Get the job currently being executed.
|
Node |
getNode()
Get the object representing the current JPPF node.
|
AbstractJPPFClassLoader |
getTaskClassLoader()
Get the class loader used to load the tasks and the classes they need from the client.
|
List<Task> |
getTasks()
Get the tasks currently being executed.
|
NodeLifeCycleEventType |
getType()
Get the type of this event.
|
String |
toString() |
getSourcepublic NodeLifeCycleEvent(Node node, NodeLifeCycleEventType type)
nodeStarting() and nodeEnding() notifications only.node - an object representing the JPPF node. If the NodeLifeCycleListener was deployed in the server's classpath,
then it can be safely cast to a org.jppf.server.node.JPPFNode instance.type - the type of this event.public NodeLifeCycleEvent(Node node, NodeLifeCycleEventType type, JPPFDistributedJob job, AbstractJPPFClassLoader cl)
jobHeaderLoaded() notifications only.node - an object representing the JPPF node.type - the type of this event.job - the job that is about to be or has been executed.cl - the class loader used to load the tasks and the classes they need from the client.public NodeLifeCycleEvent(Node node, NodeLifeCycleEventType type, JPPFDistributedJob job, AbstractJPPFClassLoader cl, List<Task> tasks, DataProvider dataProvider)
jobStarting() and jobEnding() notifications only.node - an object representing the JPPF node.type - the type of this event.job - the job that is about to be or has been executed.cl - the class loader used to load the tasks and the classes they need from the client.tasks - the tasks about to be or which have been executed.dataProvider - the data provider for the current job, if any.public Node getNode()
Node instance, or null if this event isn't part of a nodeStarting() or nodeEnding() notification.
If the NodeLifeCycleListener was deployed in the server's classpath,
then this return value can be safely cast to a org.jppf.server.node.JPPFNode instance.public JPPFDistributedJob getJob()
jobHeaderLoaded(), jobStarting() and jobEnding() notifications only.
It will be null in all other cases.JPPFDistributedJob instance, or null if no job is being executed.public List<Task> getTasks()
jobStarting() and jobEnding() notifications only.
This method will return null in all other cases.Task instances, or null if the node is idle.public AbstractJPPFClassLoader getTaskClassLoader()
jobHeaderLoaded(), jobStarting() and jobEnding() notifications only.
It will be null in all other cases.AbstractJPPFClassLoader.public DataProvider getDataProvider()
jobStarting() and jobEnding() notifications only.
It will be null in all other cases.DataProvider instance.public String toString()
toString in class EventObjectpublic NodeLifeCycleEventType getType()
NodeLifeCycleEventType.Copyright © 2005-2012 JPPF Team.