public class ExampleGraphUpdater extends Object implements GraphUpdater
example.type = example-updater example.frequencySec = 60 example.url = https://api.updater.com/example-updater
ExamplePollingGraphUpdater
,
GraphUpdaterConfigurator.applyConfigurationToGraph
Constructor and Description |
---|
ExampleGraphUpdater() |
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 configure(Graph graph, com.fasterxml.jackson.databind.JsonNode config) throws Exception
configure
in interface JsonConfigurable
Exception
public void setGraphUpdaterManager(GraphUpdaterManager updaterManager)
GraphUpdater
setGraphUpdaterManager
in interface GraphUpdater
public void setup(Graph graph)
GraphUpdater
setup
in interface GraphUpdater
public void run()
GraphUpdater
run
in interface GraphUpdater
public void teardown()
GraphUpdater
teardown
in interface GraphUpdater
Copyright © 2018. All rights reserved.