io.searchbox.client
Class AbstractJestClient

java.lang.Object
  extended by io.searchbox.client.AbstractJestClient
All Implemented Interfaces:
JestClient
Direct Known Subclasses:
JestHttpClient

public abstract class AbstractJestClient
extends Object
implements JestClient

Author:
Dogukan Sonmez

Field Summary
 LinkedHashSet<String> servers
           
 
Constructor Summary
AbstractJestClient()
           
 
Method Summary
protected  Map convertJsonStringToMapObject(String jsonTxt)
           
protected  JestResult createNewElasticSearchResult(String json, org.apache.http.StatusLine statusLine, String requestName, String pathToResult)
           
<T> T
executeAsync(Action clientRequest)
           
protected  String getElasticSearchServer()
           
protected  String getRequestURL(String elasticSearchServer, String uri)
           
 LinkedHashSet<String> getServers()
           
protected  boolean isOperationSucceed(Map json, String requestName)
           
 void setServers(LinkedHashSet<String> servers)
           
 void shutdownClient()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface io.searchbox.client.JestClient
execute
 

Field Detail

servers

public LinkedHashSet<String> servers
Constructor Detail

AbstractJestClient

public AbstractJestClient()
Method Detail

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.