Class NodeLifeCycleListenerAdapter

java.lang.Object
org.jppf.node.event.NodeLifeCycleListenerAdapter
All Implemented Interfaces:
EventListener, NodeLifeCycleListener
Direct Known Subclasses:
DelegatingNodeListener, JobClassPathHandler, NodeIntegrationAdapter

public class NodeLifeCycleListenerAdapter extends Object implements NodeLifeCycleListener
Convenience class that can be used when not all methods of NodeLifeCycleListener need to be implemented.
Author:
Laurent Cohen
  • Constructor Details

    • NodeLifeCycleListenerAdapter

      public NodeLifeCycleListenerAdapter()
  • Method Details

    • nodeStarting

      public void nodeStarting(NodeLifeCycleEvent event)
      Description copied from interface: NodeLifeCycleListener
      Called when the node has finished initializing, and before it starts processing jobs.
      Specified by:
      nodeStarting in interface NodeLifeCycleListener
      Parameters:
      event - encapsulates information about the node.
    • nodeEnding

      public void nodeEnding(NodeLifeCycleEvent event)
      Description copied from interface: NodeLifeCycleListener
      Called when the node is terminating.
      Specified by:
      nodeEnding in interface NodeLifeCycleListener
      Parameters:
      event - encapsulates information about the node.
    • jobHeaderLoaded

      public void jobHeaderLoaded(NodeLifeCycleEvent event)
      Description copied from interface: NodeLifeCycleListener
      Called when the node has loaded a job header and before the DataProvider or any of the tasks have been loaded.

      Note that event.getTasks() and event.getDataProvider() will return null at this point.

      Specified by:
      jobHeaderLoaded in interface NodeLifeCycleListener
      Parameters:
      event - encapsulates information about the job.
    • jobStarting

      public void jobStarting(NodeLifeCycleEvent event)
      Description copied from interface: NodeLifeCycleListener
      Called before the node starts processing a job.
      Specified by:
      jobStarting in interface NodeLifeCycleListener
      Parameters:
      event - encapsulates information about the job.
    • jobEnding

      public void jobEnding(NodeLifeCycleEvent event)
      Description copied from interface: NodeLifeCycleListener
      Called after the node finishes processing a job.
      Specified by:
      jobEnding in interface NodeLifeCycleListener
      Parameters:
      event - encapsulates information about the job.
    • beforeNextJob

      public void beforeNextJob(NodeLifeCycleEvent event)
      Description copied from interface: NodeLifeCycleListener
      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() and event.getDataProvider() will return null at this point.

      Specified by:
      beforeNextJob in interface NodeLifeCycleListener
      Parameters:
      event - encapsulates information about the job.