public interface SensorManagementService
Modifier and Type | Method and Description |
---|---|
void |
addChild(java.lang.String sensorName,
java.lang.String childName)
Add a new child to a sensor.
|
void |
addChildren(java.lang.String sensorName,
java.util.Collection<java.lang.String> childNames)
Add several sensors as children to the sensor.
|
void |
createSensor(java.lang.String sensorName)
Create a new sensor.
|
void |
createSensor(java.lang.String sensorName,
java.util.Collection<java.lang.String> childSensors)
Create a new sensor that is already hooked up to other sensors.
|
void |
destroySensor(java.lang.String sensorName)
Destroy a sensor.
|
SensorDTO |
getDTO(java.lang.String sensorName)
Get a serializable representation of the given sensor.
|
java.util.Set<java.lang.String> |
getSensors()
Get the names of all registered sensors.
|
void |
publishToEsper(java.lang.String sensorName)
Publish all reads from a sensor to esper.
|
void |
removeChild(java.lang.String sensorName,
java.lang.String childName)
Remove one child from a sensor.
|
void |
removeChildren(java.lang.String sensorName,
java.util.Collection<java.lang.String> childrenNames)
Remove a number of childrens from a sensor.
|
void |
renameSensor(java.lang.String oldName,
java.lang.String newName)
Change the name of a sensor.
|
void |
setChildren(java.lang.String sensorName,
java.util.Collection<java.lang.String> childNames)
Set the sensor's child sensors.
|
Sensor |
subscribe(java.lang.Object subscriber,
java.lang.String sensorName)
Subscribe an object to a sensor.
|
void |
unpublishFromEsper(java.lang.String sensorName)
Dont publish the reads from a given sensor.
|
void |
unsubscribe(java.lang.Object subscriber,
java.lang.String sensorName)
Unsubscribe an object from a sensor.
|
void createSensor(java.lang.String sensorName) throws DuplicateSensorNameException
sensorName
- DuplicateSensorNameException
void destroySensor(java.lang.String sensorName) throws NoSuchSensorException, ImmutableException, InUseException
sensorName
- NoSuchSensorException
ImmutableException
InUseException
void createSensor(java.lang.String sensorName, java.util.Collection<java.lang.String> childSensors) throws DuplicateSensorNameException, NoSuchSensorException
sensorName
- childSensors
- DuplicateSensorNameException
NoSuchSensorException
void renameSensor(java.lang.String oldName, java.lang.String newName) throws NoSuchSensorException, ImmutableException, InUseException
oldName
- newName
- NoSuchSensorException
ImmutableException
InUseException
void addChild(java.lang.String sensorName, java.lang.String childName) throws ImmutableException, InUseException, NoSuchSensorException
sensorName
- childName
- ImmutableException
InUseException
NoSuchSensorException
void addChildren(java.lang.String sensorName, java.util.Collection<java.lang.String> childNames) throws ImmutableException, InUseException, NoSuchSensorException
sensorName
- childNames
- ImmutableException
InUseException
NoSuchSensorException
void setChildren(java.lang.String sensorName, java.util.Collection<java.lang.String> childNames) throws ImmutableException, InUseException, NoSuchSensorException
sensorName
- childNames
- ImmutableException
InUseException
NoSuchSensorException
void removeChild(java.lang.String sensorName, java.lang.String childName) throws ImmutableException, InUseException, NoSuchSensorException
sensorName
- childName
- ImmutableException
InUseException
NoSuchSensorException
void removeChildren(java.lang.String sensorName, java.util.Collection<java.lang.String> childrenNames) throws ImmutableException, InUseException, NoSuchSensorException
sensorName
- childrenNames
- ImmutableException
InUseException
NoSuchSensorException
Sensor subscribe(java.lang.Object subscriber, java.lang.String sensorName) throws NoSuchSensorException, DuplicateSubscriptionException
subscriber
- sensorName
- NoSuchSensorException
DuplicateSubscriptionException
void unsubscribe(java.lang.Object subscriber, java.lang.String sensorName) throws NoSuchSensorException, NotSubscribedException
subscriber
- sensorName
- NoSuchSensorException
NotSubscribedException
void publishToEsper(java.lang.String sensorName) throws NoSuchSensorException
sensorName
- NoSuchSensorException
void unpublishFromEsper(java.lang.String sensorName) throws NoSuchSensorException
sensorName
- NoSuchSensorException
SensorDTO getDTO(java.lang.String sensorName) throws NoSuchSensorException
sensorName
- NoSuchSensorException
java.util.Set<java.lang.String> getSensors()