|
Version: ${maven.project.version} | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.soaplab.services.events.EventManager
public class EventManager
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.
| 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 |
|---|
public EventManager()
| Method Detail |
|---|
public void handleEvent(AnalysisEvent event)
public void handleAnalysisEvent(AnalysisEvent event)
EventListener
handleAnalysisEvent in interface EventListenerevent - that was sentpublic void handleStateChangeEvent(StateChangeEvent event)
EventListener
handleStateChangeEvent in interface EventListenerevent - that was sentpublic void handleHeartbeatProgressEvent(HeartbeatProgressEvent event)
EventListener
handleHeartbeatProgressEvent in interface EventListenerevent - that was sentpublic void handlePercentProgressEvent(PercentProgressEvent event)
EventListener
handlePercentProgressEvent in interface EventListenerevent - that was sentpublic void handleStepProgressEvent(StepProgressEvent event)
EventListener
handleStepProgressEvent in interface EventListenerevent - that was sentpublic void handleTimeProgressEvent(TimeProgressEvent event)
EventListener
handleTimeProgressEvent in interface EventListenerevent - that was sent
|
Version: ${maven.project.version} | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||