public abstract class PollingGraphUpdater extends Object implements GraphUpdater
polling.type = polling-updater polling.frequencySec = 60
GraphUpdater| Modifier and Type | Field and Description |
|---|---|
protected Integer |
pollingPeriodSeconds
How long to wait after polling to poll again.
|
| 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 method will run in its own thread.
|
protected abstract void |
runPolling()
Mirrors GraphUpdater.run method.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetGraphUpdaterManager, setup, teardownprotected Integer pollingPeriodSeconds
protected abstract void runPolling()
throws Exception
Exceptionprotected abstract void configurePolling(Graph graph, com.fasterxml.jackson.databind.JsonNode config) throws Exception
Exceptionpublic final void run()
GraphUpdaterrun in interface GraphUpdaterpublic final void configure(Graph graph, com.fasterxml.jackson.databind.JsonNode config) throws Exception
configure in interface JsonConfigurableExceptionCopyright © 2019. All rights reserved.