Class ElasticClient
java.lang.Object
org.exoplatform.commons.search.es.client.ElasticClient
- Direct Known Subclasses:
ElasticIndexingClient,ElasticSearchingClient
Created by The eXo Platform SAS Author : Thibault Clement
tclement@exoplatform.com 10/16/15
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ElasticIndexingAuditTrailprotected org.apache.hc.client5.http.classic.HttpClientstatic final intprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.apache.hc.client5.http.io.HttpClientConnectionManagerprotected abstract Stringprotected abstract Stringprotected org.apache.hc.client5.http.classic.HttpClientprotected intprotected voidprotected ElasticResponseprotected ElasticResponsesendHttpGetRequest(String url) protected ElasticResponseprotected ElasticResponsesendHttpPostRequest(String url, String content) protected ElasticResponsesendHttpPutRequest(String url, String content)
-
Field Details
-
DEFAULT_MAX_HTTP_POOL_CONNECTIONS
public static final int DEFAULT_MAX_HTTP_POOL_CONNECTIONS- See Also:
-
urlClient
-
client
protected org.apache.hc.client5.http.classic.HttpClient client -
auditTrail
-
-
Constructor Details
-
ElasticClient
-
-
Method Details
-
sendHttpPostRequest
-
sendHttpPutRequest
-
sendHttpDeleteRequest
-
sendHttpGetRequest
-
sendHttpHeadRequest
-
initHttpClient
protected void initHttpClient() -
getHttpClient
protected org.apache.hc.client5.http.classic.HttpClient getHttpClient() -
getEsUsernameProperty
-
getEsPasswordProperty
-
getClientConnectionManager
protected abstract org.apache.hc.client5.http.io.HttpClientConnectionManager getClientConnectionManager() -
getMaxConnections
protected int getMaxConnections()
-