Interface NodeLifeCycleListener

All Superinterfaces:
EventListener
All Known Subinterfaces:
NodeIntegration<C>, NodeIntegration
All Known Implementing Classes:
DelegatingNodeListener, JobClassPathHandler, NodeIntegrationAdapter, NodeIntegrationAdapter, NodeLifeCycleListenerAdapter, NodeState

public interface NodeLifeCycleListener extends EventListener
Interface for all listeners to the node's life cycle events.
Author:
Laurent Cohen
  • Method Details

    • nodeStarting

      void nodeStarting(NodeLifeCycleEvent event)
      Called when the node has finished initializing, and before it starts processing jobs.
      Parameters:
      event - encapsulates information about the node.
    • nodeEnding

      void nodeEnding(NodeLifeCycleEvent event)
      Called when the node is terminating.
      Parameters:
      event - encapsulates information about the node.
    • jobHeaderLoaded

      void jobHeaderLoaded(NodeLifeCycleEvent event)
      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.

      Parameters:
      event - encapsulates information about the job.
    • jobStarting

      void jobStarting(NodeLifeCycleEvent event)
      Called before the node starts processing a job.
      Parameters:
      event - encapsulates information about the job.
    • jobEnding

      void jobEnding(NodeLifeCycleEvent event)
      Called after the node finishes processing a job.
      Parameters:
      event - encapsulates information about the job.
    • beforeNextJob

      void beforeNextJob(NodeLifeCycleEvent event)
      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.

      Parameters:
      event - encapsulates information about the job.