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 method will run in its own thread.
|
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.
|
public void setGraphUpdaterManager(GraphUpdaterManager updaterManager)
GraphUpdatersetGraphUpdaterManager in interface GraphUpdaterpublic void configure(Graph graph, com.fasterxml.jackson.databind.JsonNode config) throws Exception
configure in interface JsonConfigurableExceptionpublic void setup(Graph graph) throws InterruptedException, ExecutionException
GraphUpdatersetup in interface GraphUpdaterInterruptedExceptionExecutionExceptionpublic void run()
throws InterruptedException
GraphUpdaterrun in interface GraphUpdaterInterruptedExceptionpublic void teardown()
GraphUpdaterteardown in interface GraphUpdaterCopyright © 2018. All rights reserved.