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
pollingPeriodSeconds
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(Graph graph)
Here the updater can be initialized.
|
void |
teardown()
Here the updater can clean up after itself.
|
String |
toString() |
configure, run
public void setGraphUpdaterManager(GraphUpdaterManager updaterManager)
GraphUpdater
public void configurePolling(Graph graph, com.fasterxml.jackson.databind.JsonNode config) throws Exception
PollingGraphUpdater
configurePolling
in class PollingGraphUpdater
Exception
public void setup(Graph graph)
GraphUpdater
public void runPolling()
runPolling
in class PollingGraphUpdater
public void teardown()
GraphUpdater
Copyright © 2018. All rights reserved.