ProducerType
- Type of producer handled by this providerpublic class StreamWithStorageProviderFactory<ProducerType extends IDataProducerModule<?>> extends StorageDataProviderFactory
Factory for streaming data providers with storage.
Most of the logic is inherited from StorageDataProviderFactory
.
Constructor and Description |
---|
StreamWithStorageProviderFactory(SOSServlet service,
StreamDataProviderConfig config,
ProducerType producer) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkEnabled()
Checks if provider and underlying sensor are enabled
|
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
|
Iterator<AbstractFeature> |
getFoiIterator(IFoiFilter filter)
Retrieves iterator among features of interest matching the filter
|
void |
handleEvent(Event<?> e) |
boolean |
isEnabled()
Allows to check if provider is enabled
|
void |
updateCapabilities()
Update capabilities previously generated by this provider if needed.
|
generateSensorMLDescription, getConfig, getFoisFromStorage, getFoisSpatialExtentFromStorage, getNewDataProvider, getObservablePropertiesFromStorage, getObservationTypesFromStorage, getTimeExtentFromStorage
public StreamWithStorageProviderFactory(SOSServlet service, StreamDataProviderConfig config, ProducerType producer) throws SensorHubException
SensorHubException
public SOSOfferingCapabilities generateCapabilities() throws ServiceException
ISOSDataProviderFactory
generateCapabilities
in interface ISOSDataProviderFactory
generateCapabilities
in class StorageDataProviderFactory
ServiceException
public void updateCapabilities() throws ServiceException
ISOSDataProviderFactory
ISOSDataProviderFactory.generateCapabilities()
updateCapabilities
in interface ISOSDataProviderFactory
updateCapabilities
in class StorageDataProviderFactory
ServiceException
public Iterator<AbstractFeature> getFoiIterator(IFoiFilter filter) throws Exception
ISOSDataProviderFactory
getFoiIterator
in interface ISOSDataProviderFactory
getFoiIterator
in class StorageDataProviderFactory
filter
- feature filtering criteriasException
public void handleEvent(Event<?> e)
handleEvent
in interface IEventListener
handleEvent
in class StorageDataProviderFactory
protected void checkEnabled() throws ServiceException
StorageDataProviderFactory
checkEnabled
in class StorageDataProviderFactory
ServiceException
public boolean isEnabled()
ISOSDataProviderFactory
isEnabled
in interface ISOSDataProviderFactory
isEnabled
in class StorageDataProviderFactory
public void cleanup()
ISOSDataProviderFactory
cleanup
in interface ISOSDataProviderFactory
cleanup
in class StorageDataProviderFactory
Copyright © 2016 Sensia Software LLC. All rights reserved.