Version: ${maven.project.version}

org.soaplab.services.events
Class EventManager

java.lang.Object
  extended by org.soaplab.services.events.EventManager
All Implemented Interfaces:
EventListener

public class EventManager
extends java.lang.Object
implements EventListener

An inter-mediator between individual jobs and all event listeners. There is usually just one instance of this class for a particular service - and it is shared by all service's jobs.

When created, it first finds all available event listeners (using the SPI mechanism). Then, it passes all events received from service invocations ("jobs") to all of them.

Version:
$Id: EventManager.java,v 1.2 2006/11/19 02:14:30 marsenger Exp $
Author:
Martin Senger

Constructor Summary
EventManager()
           
 
Method Summary
 void handleAnalysisEvent(AnalysisEvent event)
          This method is called when a general event is sent, or its subclass that is not explicitly known to this interface.
 void handleEvent(AnalysisEvent event)
          Broadcast an event to all event listeners.
 void handleHeartbeatProgressEvent(HeartbeatProgressEvent event)
          This method is called when a "heart-beat" event is sent.
 void handlePercentProgressEvent(PercentProgressEvent event)
          This method is called when a "percent progress" event is sent.
 void handleStateChangeEvent(StateChangeEvent event)
          This method is called when a "state-changed" event is sent.
 void handleStepProgressEvent(StepProgressEvent event)
          This method is called when a "step progress" event is sent.
 void handleTimeProgressEvent(TimeProgressEvent event)
          This method is called when a "time progress" event is sent.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventManager

public EventManager()
Method Detail

handleEvent

public void handleEvent(AnalysisEvent event)
Broadcast an event to all event listeners.


handleAnalysisEvent

public void handleAnalysisEvent(AnalysisEvent event)
Description copied from interface: EventListener
This method is called when a general event is sent, or its subclass that is not explicitly known to this interface.

Specified by:
handleAnalysisEvent in interface EventListener
Parameters:
event - that was sent

handleStateChangeEvent

public void handleStateChangeEvent(StateChangeEvent event)
Description copied from interface: EventListener
This method is called when a "state-changed" event is sent.

Specified by:
handleStateChangeEvent in interface EventListener
Parameters:
event - that was sent

handleHeartbeatProgressEvent

public void handleHeartbeatProgressEvent(HeartbeatProgressEvent event)
Description copied from interface: EventListener
This method is called when a "heart-beat" event is sent.

Specified by:
handleHeartbeatProgressEvent in interface EventListener
Parameters:
event - that was sent

handlePercentProgressEvent

public void handlePercentProgressEvent(PercentProgressEvent event)
Description copied from interface: EventListener
This method is called when a "percent progress" event is sent.

Specified by:
handlePercentProgressEvent in interface EventListener
Parameters:
event - that was sent

handleStepProgressEvent

public void handleStepProgressEvent(StepProgressEvent event)
Description copied from interface: EventListener
This method is called when a "step progress" event is sent.

Specified by:
handleStepProgressEvent in interface EventListener
Parameters:
event - that was sent

handleTimeProgressEvent

public void handleTimeProgressEvent(TimeProgressEvent event)
Description copied from interface: EventListener
This method is called when a "time progress" event is sent.

Specified by:
handleTimeProgressEvent in interface EventListener
Parameters:
event - that was sent

Version: ${maven.project.version}

Submit a bug or feature
Generated: Tue Jun 14 15:18:14 AST 2011