public abstract class WFSNotePollingGraphUpdater extends PollingGraphUpdater
WinkkiPollingGraphUpdater
Modifier and Type | Field and Description |
---|---|
protected Graph |
graph |
frequencySec
Constructor and Description |
---|
WFSNotePollingGraphUpdater() |
Modifier and Type | Method and Description |
---|---|
protected void |
configurePolling(Graph graph,
com.fasterxml.jackson.databind.JsonNode config)
Here the updater can be configured using the properties in the file 'Graph.properties'.
|
protected abstract Alert |
getNote(org.opengis.feature.simple.SimpleFeature feature)
Parses a SimpleFeature and returns an Alert if the feature should create one.
|
protected void |
runPolling()
The function is run periodically by the update manager.
|
void |
setGraphUpdaterManager(GraphUpdaterManager updaterManager)
Here the updater gets to know its parent manager to execute GraphWriterRunnables.
|
void |
setup()
Setup the WFS data source and add the DynamicStreetNotesSource to the graph
|
void |
teardown()
Here the updater can cleanup after itself.
|
configure, run
protected Graph graph
protected void configurePolling(Graph graph, com.fasterxml.jackson.databind.JsonNode config) throws Exception
configurePolling
in class PollingGraphUpdater
Exception
public void setGraphUpdaterManager(GraphUpdaterManager updaterManager)
updaterManager
- is the parent updater managerGraphWriterRunnable
,
GraphUpdaterManager.execute
public void setup() throws IOException, org.opengis.referencing.FactoryException
IOException
org.opengis.referencing.FactoryException
public void teardown()
GraphUpdater
protected void runPolling() throws IOException
runPolling
in class PollingGraphUpdater
IOException
protected abstract Alert getNote(org.opengis.feature.simple.SimpleFeature feature)
Copyright © 2016. All rights reserved.