public abstract class WFSNotePollingGraphUpdater extends PollingGraphUpdater
WinkkiPollingGraphUpdater
Modifier and Type | Field and Description |
---|---|
protected Graph |
graph |
pollingPeriodSeconds
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(Graph graph)
Setup the WFS data source and add the DynamicStreetNotesSource to the graph
|
void |
teardown()
Here the updater can clean up 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)
public void setup(Graph graph) 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 © 2018. All rights reserved.