public class SensorStatusMonitoringServiceImpl extends RifidiAppService<SensorStatusSubscriber> implements SensorStatusMonitoringService
readZones
LAZY_START
Constructor and Description |
---|
SensorStatusMonitoringServiceImpl(java.lang.String group,
java.lang.String name)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
subscribe(SensorStatusSubscriber subscriber,
java.util.Set<java.lang.String> sensorsToMonitor)
Subscribe to sensor status events.
|
unsubscribe
compareTo, equals, getGroup, getName, getState, hashCode, initialize, lazyStart, setAppProperties, setBundleContext, setEsperService, start, stop, toString
unsubscribe
public SensorStatusMonitoringServiceImpl(java.lang.String group, java.lang.String name)
group
- the group this application is a part ofname
- The name of the applicationpublic void subscribe(SensorStatusSubscriber subscriber, java.util.Set<java.lang.String> sensorsToMonitor)
SensorStatusMonitoringService
subscribe
in interface SensorStatusMonitoringService
subscriber
- The subscriber to notifysensorsToMonitor
- A list of Sensor IDs to monitor. If empty, monitor all
sensors.