public class PollingStoptimeUpdater extends PollingGraphUpdater
rt.type = stop-time-updater rt.frequencySec = 60 rt.sourceType = gtfs-http rt.url = http://host.tld/path rt.feedId = TA
frequencySec
Constructor and Description |
---|
PollingStoptimeUpdater() |
Modifier and Type | Method and Description |
---|---|
void |
configurePolling(Graph graph,
com.fasterxml.jackson.databind.JsonNode config)
Mirrors GraphUpdater.configure method.
|
void |
runPolling()
Repeatedly makes blocking calls to an UpdateStreamer to retrieve new stop time updates, and
applies those updates to the graph.
|
void |
setGraphUpdaterManager(GraphUpdaterManager updaterManager)
Graph updaters must be aware of their manager to be able to execute GraphWriterRunnables.
|
void |
setup()
Here the updater can be initialized.
|
void |
teardown()
Here the updater can cleanup after itself.
|
String |
toString() |
configure, run
public void setGraphUpdaterManager(GraphUpdaterManager updaterManager)
GraphUpdater
updaterManager
- is the parent updater managerGraphWriterRunnable
,
GraphUpdaterManager.execute
public void configurePolling(Graph graph, com.fasterxml.jackson.databind.JsonNode config) throws Exception
PollingGraphUpdater
configurePolling
in class PollingGraphUpdater
Exception
public void setup() throws InterruptedException, ExecutionException
GraphUpdater
public void runPolling()
runPolling
in class PollingGraphUpdater
public void teardown()
GraphUpdater
Copyright © 2016. All rights reserved.