Package gg.xp.reevent.events
Class MonitoringEventDistributor
java.lang.Object
gg.xp.reevent.events.BasicEventDistributor
gg.xp.reevent.events.MonitoringEventDistributor
- All Implemented Interfaces:
EventDistributor,TopologyProvider
Event distributor that uses a component monitor to add handlers as they are loaded in.
-
Field Summary
Fields inherited from class gg.xp.reevent.events.BasicEventDistributor
handlers -
Constructor Summary
ConstructorsConstructorDescriptionMonitoringEventDistributor(StateStore state, AutoScan scanner, TopologyInfo topoInfo, CompMonitor mon, AutoHandlerConfig config) -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptEvent(Event event) protected List<EventHandler<Event>>getHandlersForEvent(Event event) voidregisterHandler(EventHandler<Event> handler) Register event handler that will accept all event classes.voidreloadIfNeeded(Event event) protected voidMethods inherited from class gg.xp.reevent.events.BasicEventDistributor
getStateStore, getTimeStats, isProfilingEnabled, setProfilingEnabled, setQueueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gg.xp.reevent.events.EventDistributor
registerHandler
-
Constructor Details
-
MonitoringEventDistributor
public MonitoringEventDistributor(StateStore state, AutoScan scanner, TopologyInfo topoInfo, CompMonitor mon, AutoHandlerConfig config)
-
-
Method Details
-
registerHandler
Description copied from interface:EventDistributorRegister event handler that will accept all event classes.- Specified by:
registerHandlerin interfaceEventDistributor- Overrides:
registerHandlerin classBasicEventDistributor- Parameters:
handler- The handler
-
reloadIfNeeded
-
sortHandlers
protected void sortHandlers()- Overrides:
sortHandlersin classBasicEventDistributor
-
getHandlersForEvent
- Overrides:
getHandlersForEventin classBasicEventDistributor
-
getTopology
- Specified by:
getTopologyin interfaceTopologyProvider
-
acceptEvent
- Specified by:
acceptEventin interfaceEventDistributor- Overrides:
acceptEventin classBasicEventDistributor
-