io.searchbox.client
Class AbstractJestClient
java.lang.Object
io.searchbox.client.AbstractJestClient
- All Implemented Interfaces:
- JestClient
- Direct Known Subclasses:
- JestHttpClient
public abstract class AbstractJestClient
- extends Object
- implements JestClient
- Author:
- Dogukan Sonmez
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
servers
public LinkedHashSet<String> servers
AbstractJestClient
public AbstractJestClient()
getServers
public LinkedHashSet<String> getServers()
setServers
public void setServers(LinkedHashSet<String> servers)
executeAsync
public <T> T executeAsync(Action clientRequest)
- Specified by:
executeAsync
in interface JestClient
shutdownClient
public void shutdownClient()
- Specified by:
shutdownClient
in interface JestClient
getElasticSearchServer
protected String getElasticSearchServer()
createNewElasticSearchResult
protected JestResult createNewElasticSearchResult(String json,
org.apache.http.StatusLine statusLine,
String requestName,
String pathToResult)
isOperationSucceed
protected boolean isOperationSucceed(Map json,
String requestName)
convertJsonStringToMapObject
protected Map convertJsonStringToMapObject(String jsonTxt)
getRequestURL
protected String getRequestURL(String elasticSearchServer,
String uri)
Copyright © 2012. All Rights Reserved.