public interface ISOSDataProviderFactory
Common interface for all data provider factories.
One data provider factory is created for each offering and is persistent throughout the lifetime of the service, so it must be threadsafe.
However, the server obtains a new data provider instance from the factory for each incoming request so the providers themselves don't need to be threadsafe.
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Called when the provider is removed
|
SOSOfferingCapabilities |
generateCapabilities()
Builds the offering capabilities using the provider configuration
This will connect to source providers to retrieve the necessary metadata
|
AbstractProcess |
generateSensorMLDescription(double time)
Retrieves the SensorML description associated to this data source
|
SOSProviderConfig |
getConfig() |
Iterator<AbstractFeature> |
getFoiIterator(IFoiFilter filter)
Retrieves iterator among features of interest matching the filter
|
ISOSDataProvider |
getNewDataProvider(SOSDataFilter filter)
Instantiates a new data provider
|
boolean |
isEnabled()
Allows to check if provider is enabled
|
void |
updateCapabilities()
Update capabilities previously generated by this provider if needed.
|
SOSProviderConfig getConfig()
boolean isEnabled()
SOSOfferingCapabilities generateCapabilities() throws Exception
Exception
void updateCapabilities() throws Exception
generateCapabilities()
Exception
AbstractProcess generateSensorMLDescription(double time) throws Exception
time
- Time at which the description should be validException
Iterator<AbstractFeature> getFoiIterator(IFoiFilter filter) throws Exception
filter
- feature filtering criteriasException
ISOSDataProvider getNewDataProvider(SOSDataFilter filter) throws Exception
filter
- Exception
void cleanup()
Copyright © 2016 Sensia Software LLC. All rights reserved.