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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends org.pentaho.platform.api.monitoring.IMonitoringEvent>
    void
    post(T event)
    all subscribers of this event type will be triggered
    <T extends org.pentaho.platform.api.monitoring.IMonitoringSubscriber>
    void
    register(T subscriber)
    register a subscriber ( a.k.a.
    <T extends org.pentaho.platform.api.monitoring.IMonitoringSubscriber>
    void
    unregister(T subscriber)
    unregister a subscriber ( a.k.a.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 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