Package org.jppf.node.event
Interface NodeLifeCycleListener
- All Superinterfaces:
EventListener
- All Known Subinterfaces:
NodeIntegration<C>,NodeIntegration
- All Known Implementing Classes:
DelegatingNodeListener,JobClassPathHandler,NodeIntegrationAdapter,NodeIntegrationAdapter,NodeLifeCycleListenerAdapter,NodeState
Interface for all listeners to the node's life cycle events.
- Author:
- Laurent Cohen
-
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeNextJob(NodeLifeCycleEvent event) Called after the node has sent the results of a job to the server, and before it receives the next job.voidjobEnding(NodeLifeCycleEvent event) Called after the node finishes processing a job.voidCalled when the node has loaded a job header and before theDataProvideror any of the tasks have been loaded.voidjobStarting(NodeLifeCycleEvent event) Called before the node starts processing a job.voidnodeEnding(NodeLifeCycleEvent event) Called when the node is terminating.voidnodeStarting(NodeLifeCycleEvent event) Called when the node has finished initializing, and before it starts processing jobs.
-
Method Details
-
nodeStarting
Called when the node has finished initializing, and before it starts processing jobs.- Parameters:
event- encapsulates information about the node.
-
nodeEnding
Called when the node is terminating.- Parameters:
event- encapsulates information about the node.
-
jobHeaderLoaded
Called when the node has loaded a job header and before theDataProvideror any of the tasks have been loaded.Note that
event.getTasks()andevent.getDataProvider()will returnnullat this point.- Parameters:
event- encapsulates information about the job.
-
jobStarting
Called before the node starts processing a job.- Parameters:
event- encapsulates information about the job.
-
jobEnding
Called after the node finishes processing a job.- Parameters:
event- encapsulates information about the job.
-
beforeNextJob
Called after the node has sent the results of a job to the server, and before it receives the next job. It is guranteed that the node is idle when this method is called.Note that
event.getJob(),event.getTasks(),event.getTaskClassLoader()andevent.getDataProvider()will returnnullat this point.- Parameters:
event- encapsulates information about the job.
-