public class GtfsRealtimeAlertsUpdater extends PollingGraphUpdater
myalert.type = real-time-alerts myalert.frequencySec = 60 myalert.url = http://host.tld/path myalert.earlyStartSec = 3600 myalert.feedId = TA
pollingPeriodSeconds
Constructor and Description |
---|
GtfsRealtimeAlertsUpdater() |
Modifier and Type | Method and Description |
---|---|
protected void |
configurePolling(Graph graph,
com.fasterxml.jackson.databind.JsonNode config)
Mirrors GraphUpdater.configure method.
|
protected void |
runPolling()
Mirrors GraphUpdater.run method.
|
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
protected void configurePolling(Graph graph, com.fasterxml.jackson.databind.JsonNode config) throws Exception
PollingGraphUpdater
configurePolling
in class PollingGraphUpdater
Exception
public void setup(Graph graph)
GraphUpdater
protected void runPolling()
PollingGraphUpdater
runPolling
in class PollingGraphUpdater
public void teardown()
GraphUpdater
Copyright © 2019. All rights reserved.