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
ConstructorDescriptionMonitoringEventDistributor
(StateStore state, AutoScan scanner, TopologyInfo topoInfo, CompMonitor mon, AutoHandlerConfig config) -
Method Summary
Modifier and TypeMethodDescriptionvoid
acceptEvent
(Event event) protected List<EventHandler<Event>>
getHandlersForEvent
(Event event) void
registerHandler
(EventHandler<Event> handler) Register event handler that will accept all event classes.void
reloadIfNeeded
(Event event) protected void
Methods inherited from class gg.xp.reevent.events.BasicEventDistributor
getStateStore, getTimeStats, isProfilingEnabled, setProfilingEnabled, setQueue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:EventDistributor
Register event handler that will accept all event classes.- Specified by:
registerHandler
in interfaceEventDistributor
- Overrides:
registerHandler
in classBasicEventDistributor
- Parameters:
handler
- The handler
-
reloadIfNeeded
-
sortHandlers
protected void sortHandlers()- Overrides:
sortHandlers
in classBasicEventDistributor
-
getHandlersForEvent
- Overrides:
getHandlersForEvent
in classBasicEventDistributor
-
getTopology
- Specified by:
getTopology
in interfaceTopologyProvider
-
acceptEvent
- Specified by:
acceptEvent
in interfaceEventDistributor
- Overrides:
acceptEvent
in classBasicEventDistributor
-