public class StorageDataProvider extends Object implements ISOSDataProvider
Implementation of SOS data provider connecting to a storage via SensorHub's persistence API (ITimeSeriesStorage and derived classes)
Constructor and Description |
---|
StorageDataProvider(IBasicStorage storage,
StorageDataProviderConfig config,
SOSDataFilter filter) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Properly releases all resources accessed by provider
(for instance, when connection is ended by client)
|
DataEncoding |
getDefaultResultEncoding()
Requests provider to specify the preferred encoding for the
underlying data, given the current config and filter
|
IObservation |
getNextObservation()
Requests provider to generate the next observation from the
underlying data, given the current config and filter
|
DataBlock |
getNextResultRecord()
Requests provider to generate the next CDM record from the
underlying data, given the current config and filter
|
DataComponent |
getResultStructure()
Requests provider to provide the result structure corresponding
to the current config and filter
|
public StorageDataProvider(IBasicStorage storage, StorageDataProviderConfig config, SOSDataFilter filter) throws Exception
Exception
public IObservation getNextObservation() throws Exception
ISOSDataProvider
getNextObservation
in interface ISOSDataProvider
Exception
public DataBlock getNextResultRecord()
ISOSDataProvider
getNextResultRecord
in interface ISOSDataProvider
public DataComponent getResultStructure()
ISOSDataProvider
getResultStructure
in interface ISOSDataProvider
public DataEncoding getDefaultResultEncoding()
ISOSDataProvider
getDefaultResultEncoding
in interface ISOSDataProvider
public void close()
ISOSDataProvider
close
in interface ISOSDataProvider
Copyright © 2016 Sensia Software LLC. All rights reserved.