Package org.osgi.service.monitor
Interface MonitorListener
-
public interface MonitorListener
TheMonitorListener
is used byMonitorable
services to send notifications when aStatusVariable
value is changed. TheMonitorListener
should register itself as a service at the OSGi Service Registry. This interface must (only) be implemented by the Monitor Admin component.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
updated(java.lang.String monitorableId, StatusVariable statusVariable)
Callback for notification of aStatusVariable
change.
-
-
-
Method Detail
-
updated
void updated(java.lang.String monitorableId, StatusVariable statusVariable) throws java.lang.IllegalArgumentException
Callback for notification of aStatusVariable
change.- Parameters:
monitorableId
- the identifier of theMonitorable
instance reporting the changestatusVariable
- theStatusVariable
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-existingMonitorable
, or ifstatusVariable
isnull
-
-