public abstract class PollingGraphUpdater extends Object implements GraphUpdater
polling.type = polling-updater polling.frequencySec = 60
GraphUpdater
Modifier and Type | Field and Description |
---|---|
protected Integer |
frequencySec
The number of seconds between two polls
|
Constructor and Description |
---|
PollingGraphUpdater() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Graph graph,
com.fasterxml.jackson.databind.JsonNode config)
Shared configuration code for all polling graph updaters.
|
protected abstract void |
configurePolling(Graph graph,
com.fasterxml.jackson.databind.JsonNode config)
Mirrors GraphUpdater.configure method.
|
void |
run()
This is where the updater thread receives updates and applies them to the graph.
|
protected abstract void |
runPolling()
Mirrors GraphUpdater.run method.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setGraphUpdaterManager, setup, teardown
protected Integer frequencySec
protected abstract void runPolling() throws Exception
Exception
protected abstract void configurePolling(Graph graph, com.fasterxml.jackson.databind.JsonNode config) throws Exception
Exception
public final void run()
GraphUpdater
run
in interface GraphUpdater
public final void configure(Graph graph, com.fasterxml.jackson.databind.JsonNode config) throws Exception
configure
in interface JsonConfigurable
Exception
Copyright © 2016. All rights reserved.