Package 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
Modifier and TypeMethodDescriptionvoidupdated(String monitorableId, StatusVariable statusVariable) Callback for notification of aStatusVariablechange.
-
Method Details
-
updated
Callback for notification of aStatusVariablechange.- Parameters:
monitorableId- the identifier of theMonitorableinstance reporting the changestatusVariable- theStatusVariablethat has changed- Throws:
IllegalArgumentException- if the specified monitorable ID is invalid (null, empty, or contains illegal characters) or points to a non-existingMonitorable, or ifstatusVariableisnull
-