public class SensorWithStorageConsumer extends SensorDataConsumer implements ISOSDataConsumer
Wrapper data consumer for updating both sensor and storage appropriately
ISOSDataConsumer.Template
Constructor and Description |
---|
SensorWithStorageConsumer(SensorConsumerConfig config) |
Modifier and Type | Method and Description |
---|---|
String |
newResultTemplate(DataComponent component,
DataEncoding encoding,
IObservation obsTemplate)
Requests consumer to prepare for receiving new result records with given
data structure and encoding
|
getTemplate, newObservation, newResultRecord, updateSensor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTemplate, newObservation, newResultRecord, updateSensor
public SensorWithStorageConsumer(SensorConsumerConfig config) throws SensorHubException
SensorHubException
public String newResultTemplate(DataComponent component, DataEncoding encoding, IObservation obsTemplate) throws Exception
ISOSDataConsumer
newResultTemplate
in interface ISOSDataConsumer
newResultTemplate
in class SensorDataConsumer
Exception
Copyright © 2016 Sensia Software LLC. All rights reserved.