public class NodeChecker
extends com.google.common.util.concurrent.AbstractScheduledService
nodes object in response to get http publish
address.| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
bootstrapServerList |
protected JestClient |
client |
protected String |
defaultScheme |
protected Set<String> |
discoveredServerList |
protected com.google.common.util.concurrent.AbstractScheduledService.Scheduler |
scheduler |
| Constructor and Description |
|---|
NodeChecker(JestClient jestClient,
ClientConfig clientConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected ScheduledExecutorService |
executor() |
protected String |
getHttpAddress(String httpAddress)
Converts the Elasticsearch reported publish address in the format "inet[
|
protected void |
removeNodeAndUpdateServers(String hostToRemove) |
protected void |
runOneIteration() |
protected com.google.common.util.concurrent.AbstractScheduledService.Scheduler |
scheduler() |
protected JestClient client
protected com.google.common.util.concurrent.AbstractScheduledService.Scheduler scheduler
protected String defaultScheme
public NodeChecker(JestClient jestClient, ClientConfig clientConfig)
protected void runOneIteration()
throws Exception
runOneIteration in class com.google.common.util.concurrent.AbstractScheduledServiceExceptionprotected void removeNodeAndUpdateServers(String hostToRemove)
protected com.google.common.util.concurrent.AbstractScheduledService.Scheduler scheduler()
scheduler in class com.google.common.util.concurrent.AbstractScheduledServiceprotected ScheduledExecutorService executor()
executor in class com.google.common.util.concurrent.AbstractScheduledServiceCopyright © 2017. All rights reserved.