Class 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 Detail

      • MonitoringService

        public MonitoringService()
    • Method Detail

      • 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 interface org.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 interface org.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 interface org.pentaho.platform.api.monitoring.IMonitoringService
        Parameters:
        event - IMonitoringEvent event object