public class WebsocketGtfsRealtimeUpdater extends Object implements GraphUpdater
websocket.type = websocket-gtfs-rt-updater websocket.defaultAgencyId = agency websocket.url = ws://localhost:8088/tripUpdates
Constructor and Description |
---|
WebsocketGtfsRealtimeUpdater() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Graph graph,
com.fasterxml.jackson.databind.JsonNode config) |
void |
run()
This is where the updater thread receives updates and applies them 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.
|
public void setGraphUpdaterManager(GraphUpdaterManager updaterManager)
GraphUpdater
setGraphUpdaterManager
in interface GraphUpdater
updaterManager
- is the parent updater managerGraphWriterRunnable
,
GraphUpdaterManager.execute
public void configure(Graph graph, com.fasterxml.jackson.databind.JsonNode config) throws Exception
configure
in interface JsonConfigurable
Exception
public void setup() throws InterruptedException, ExecutionException
GraphUpdater
setup
in interface GraphUpdater
InterruptedException
ExecutionException
public void run() throws InterruptedException
GraphUpdater
run
in interface GraphUpdater
InterruptedException
public void teardown()
GraphUpdater
teardown
in interface GraphUpdater
Copyright © 2016. All rights reserved.