|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.core.event.EventManager
public class EventManager
This class manages all event related stuff. it is the place to register event brokers, and it will propagate all events. The class is set up as a singleton. When the manager is instantiated, event brokers are added for Event, NodeEvent and RelationEvent
| Field Summary | |
|---|---|
static String |
DTD_EVENTMANAGER
|
static String |
PUBLIC_ID_EVENTMANAGER
|
protected ResourceWatcher |
watcher
|
| Method Summary | |
|---|---|
void |
addEventBroker(EventBroker broker)
add an event broker for a specific type of event |
void |
addEventListener(EventListener listener)
|
protected void |
configure(String resource)
|
Collection<EventBroker> |
getBrokers()
|
static EventManager |
getInstance()
use this metod to get an instance of the event manager |
static String |
getMachineName()
|
long |
getNumberOfPropagatedEvents()
|
long |
getPropagationCost()
|
long |
getPropagationCostNs()
|
static UUID |
getUUID()
|
void |
notify(SystemEvent se)
|
void |
propagateEvent(Event event)
This method will propagate the given event to all the aproprate listeners. |
void |
propagateEvent(Event event,
boolean asynchronous)
Like propagateEvent(org.mmbase.core.event.Event) but with an extra argument 'asynchronous'. |
void |
removeEventBroker(EventBroker broker)
remove a broker for a specific type of event |
void |
removeEventListener(EventListener listener)
|
void |
shutdown()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PUBLIC_ID_EVENTMANAGER
public static final String DTD_EVENTMANAGER
protected ResourceWatcher watcher
| Method Detail |
|---|
public static EventManager getInstance()
public static UUID getUUID()
public static String getMachineName()
public void notify(SystemEvent se)
notify in interface SystemEventListenerprotected void configure(String resource)
public Collection<EventBroker> getBrokers()
public void addEventBroker(EventBroker broker)
broker - public void removeEventBroker(EventBroker broker)
broker - public void addEventListener(EventListener listener)
listener - public void removeEventListener(EventListener listener)
listener - public void propagateEvent(Event event)
event - AbstractEventBroker
public void propagateEvent(Event event,
boolean asynchronous)
propagateEvent(org.mmbase.core.event.Event) but with an extra argument 'asynchronous'.
asynchronous - If true, execute the propagation in a different thread, and don't let this thread wait for the result.public long getNumberOfPropagatedEvents()
public long getPropagationCost()
public long getPropagationCostNs()
public void shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||