OSGi™ Service Platform
Compendium Specification

Release 4 Version 4.3

org.osgi.service.monitor
Interface MonitorListener


public interface MonitorListener

The MonitorListener is used by Monitorable services to send notifications when a StatusVariable value is changed. The MonitorListener should register itself as a service at the OSGi Service Registry. This interface must (only) be implemented by the Monitor Admin component.


Method Summary
 void updated(java.lang.String monitorableId, StatusVariable statusVariable)
          Callback for notification of a StatusVariable change.
 

Method Detail

updated

void updated(java.lang.String monitorableId,
             StatusVariable statusVariable)
             throws java.lang.IllegalArgumentException
Callback for notification of a StatusVariable change.

Parameters:
monitorableId - the identifier of the Monitorable instance reporting the change
statusVariable - the StatusVariable that has changed
Throws:
java.lang.IllegalArgumentException - if the specified monitorable ID is invalid (null, empty, or contains illegal characters) or points to a non-existing Monitorable, or if statusVariable is null

OSGi™ Service Platform
Compendium Specification

Release 4 Version 4.3

Copyright © OSGi Alliance (2000, 2012). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0