Package org.jppf.node.event
Class NodeLifeCycleListenerAdapter
java.lang.Object
org.jppf.node.event.NodeLifeCycleListenerAdapter
- All Implemented Interfaces:
EventListener,NodeLifeCycleListener
- Direct Known Subclasses:
DelegatingNodeListener,JobClassPathHandler,NodeIntegrationAdapter
Convenience class that can be used when not all methods of
NodeLifeCycleListener need to be implemented.- Author:
- Laurent Cohen
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
NodeLifeCycleListenerAdapter
public NodeLifeCycleListenerAdapter()
-
-
Method Details
-
nodeStarting
Description copied from interface:NodeLifeCycleListenerCalled when the node has finished initializing, and before it starts processing jobs.- Specified by:
nodeStartingin interfaceNodeLifeCycleListener- Parameters:
event- encapsulates information about the node.
-
nodeEnding
Description copied from interface:NodeLifeCycleListenerCalled when the node is terminating.- Specified by:
nodeEndingin interfaceNodeLifeCycleListener- Parameters:
event- encapsulates information about the node.
-
jobHeaderLoaded
Description copied from interface:NodeLifeCycleListenerCalled 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.- Specified by:
jobHeaderLoadedin interfaceNodeLifeCycleListener- Parameters:
event- encapsulates information about the job.
-
jobStarting
Description copied from interface:NodeLifeCycleListenerCalled before the node starts processing a job.- Specified by:
jobStartingin interfaceNodeLifeCycleListener- Parameters:
event- encapsulates information about the job.
-
jobEnding
Description copied from interface:NodeLifeCycleListenerCalled after the node finishes processing a job.- Specified by:
jobEndingin interfaceNodeLifeCycleListener- Parameters:
event- encapsulates information about the job.
-
beforeNextJob
Description copied from interface:NodeLifeCycleListenerCalled 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.- Specified by:
beforeNextJobin interfaceNodeLifeCycleListener- Parameters:
event- encapsulates information about the job.
-