org.jppf.server.node
Class LifeCycleEventHandler

java.lang.Object
  extended by org.jppf.server.node.LifeCycleEventHandler

public class LifeCycleEventHandler
extends Object

This class handles the firing of node life cycle events and the listeners that subscribe to these events.

Author:
Laurent Cohen

Constructor Summary
LifeCycleEventHandler(NodeExecutionManager executionManager)
          Initialize this event handler witht he specified execution manager.
 
Method Summary
 void addNodeLifeCycleListener(NodeLifeCycleListener listener)
          Add a listener to the list of listeners.
 void loadListeners()
          Load all listener instances found in the class path via a service definition.
 void removeNodeLifeCycleListener(NodeLifeCycleListener listener)
          Remove a listener from the list of listeners.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LifeCycleEventHandler

public LifeCycleEventHandler(NodeExecutionManager executionManager)
Initialize this event handler witht he specified execution manager.

Parameters:
executionManager - the object that manages the job executions for the node.
Method Detail

addNodeLifeCycleListener

public void addNodeLifeCycleListener(NodeLifeCycleListener listener)
Add a listener to the list of listeners.

Parameters:
listener - the listener to add.

removeNodeLifeCycleListener

public void removeNodeLifeCycleListener(NodeLifeCycleListener listener)
Remove a listener from the list of listeners.

Parameters:
listener - the listener to remove.

loadListeners

public void loadListeners()
Load all listener instances found in the class path via a service definition.



Copyright © 2005-2010 JPPF Team.