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, wait
setGraphUpdaterManager, setup, teardown
protected Integer pollingPeriodSeconds
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 © 2018. All rights reserved.