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 TypeMethodDescriptionvoid
updated
(String monitorableId, StatusVariable statusVariable) Callback for notification of aStatusVariable
change.
-
Method Details
-
updated
Callback for notification of aStatusVariable
change.- Parameters:
monitorableId
- the identifier of theMonitorable
instance reporting the changestatusVariable
- theStatusVariable
that has changed- Throws:
IllegalArgumentException
- if the specified monitorable ID is invalid (null
, empty, or contains illegal characters) or points to a non-existingMonitorable
, or ifstatusVariable
isnull
-