Package org.pentaho.platform.monitoring
Class MonitoringService
java.lang.Object
org.pentaho.platform.monitoring.MonitoringService
- All Implemented Interfaces:
org.pentaho.platform.api.monitoring.IMonitoringService
public class MonitoringService
extends Object
implements org.pentaho.platform.api.monitoring.IMonitoringService
Wrapper for the AsyncEventBus class.
The methods of AsyncEventBus use internal synchronization, so this singleton is thread-safe
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends org.pentaho.platform.api.monitoring.IMonitoringEvent>
voidpost
(T event) all subscribers of this event type will be triggered<T extends org.pentaho.platform.api.monitoring.IMonitoringSubscriber>
voidregister
(T subscriber) register a subscriber ( a.k.a.<T extends org.pentaho.platform.api.monitoring.IMonitoringSubscriber>
voidunregister
(T subscriber) unregister a subscriber ( a.k.a.
-
Constructor Details
-
MonitoringService
public MonitoringService()
-
-
Method Details
-
register
public <T extends org.pentaho.platform.api.monitoring.IMonitoringSubscriber> void register(T subscriber) register a subscriber ( a.k.a. event handler ) in event bus- Specified by:
register
in interfaceorg.pentaho.platform.api.monitoring.IMonitoringService
- Parameters:
subscriber
- IMonitoringSubscriber event handler
-
unregister
public <T extends org.pentaho.platform.api.monitoring.IMonitoringSubscriber> void unregister(T subscriber) unregister a subscriber ( a.k.a. event handler ) from event bus- Specified by:
unregister
in interfaceorg.pentaho.platform.api.monitoring.IMonitoringService
- Parameters:
subscriber
- IMonitoringSubscriber event handler
-
post
public <T extends org.pentaho.platform.api.monitoring.IMonitoringEvent> void post(T event) all subscribers of this event type will be triggered- Specified by:
post
in interfaceorg.pentaho.platform.api.monitoring.IMonitoringService
- Parameters:
event
- IMonitoringEvent event object
-