org.ow2.jasmine.monitoring.eos.common
Class JasmineEventManager

java.lang.Object
  extended by org.ow2.jasmine.monitoring.eos.common.JasmineEventManager
All Implemented Interfaces:
Serializable, EventManager<JasmineMessageEvent>

public class JasmineEventManager
extends Object
implements EventManager<JasmineMessageEvent>

Events Manager. This class manages all the events from the JMS queue. Only one instance of the manager must exist.

Author:
Guillaume Renault
See Also:
Serialized Form

Constructor Summary
JasmineEventManager()
          Constructor of the manager.
 
Method Summary
 void add(JasmineMessageEvent event)
          Add an event in the list.
 List<JasmineMessageEvent> getAll()
          Get the entire queue of waiting events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JasmineEventManager

public JasmineEventManager()
Constructor of the manager. Initialize the list.

Method Detail

add

public void add(JasmineMessageEvent event)
Add an event in the list.

Specified by:
add in interface EventManager<JasmineMessageEvent>
Parameters:
event - the event to add.

getAll

public List<JasmineMessageEvent> getAll()
Get the entire queue of waiting events.

Specified by:
getAll in interface EventManager<JasmineMessageEvent>
Returns:
the queue of events.


Copyright © 2012 OW2 Consortium. All Rights Reserved.