public abstract class AbstractJestClient extends Object implements JestClient
| Modifier and Type | Field and Description |
|---|---|
static String |
ELASTIC_SEARCH_DATE_FORMAT |
protected com.google.gson.Gson |
gson |
| Constructor and Description |
|---|
AbstractJestClient() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected String |
getNextServer() |
protected String |
getRequestURL(String elasticSearchServer,
String uri) |
protected int |
getServerPoolSize() |
boolean |
isRequestCompressionEnabled() |
void |
setIdleConnectionReaper(IdleConnectionReaper idleConnectionReaper) |
void |
setNodeChecker(NodeChecker nodeChecker) |
void |
setRequestCompressionEnabled(boolean requestCompressionEnabled) |
void |
setServers(Set<String> servers) |
void |
shutdownClient() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, executeAsyncpublic static final String ELASTIC_SEARCH_DATE_FORMAT
protected com.google.gson.Gson gson
public void setNodeChecker(NodeChecker nodeChecker)
public void setIdleConnectionReaper(IdleConnectionReaper idleConnectionReaper)
public void setServers(Set<String> servers)
setServers in interface JestClientpublic void shutdownClient()
shutdownClient in interface JestClientpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionprotected String getNextServer()
NoServerConfiguredExceptionprotected int getServerPoolSize()
public boolean isRequestCompressionEnabled()
public void setRequestCompressionEnabled(boolean requestCompressionEnabled)
Copyright © 2018. All rights reserved.