Class ElasticClient

java.lang.Object
org.exoplatform.commons.search.es.client.ElasticClient
Direct Known Subclasses:
ElasticIndexingClient, ElasticSearchingClient

public abstract class ElasticClient extends Object
Created by The eXo Platform SAS Author : Thibault Clement tclement@exoplatform.com 10/16/15
  • Field Details

    • DEFAULT_MAX_HTTP_POOL_CONNECTIONS

      public static final int DEFAULT_MAX_HTTP_POOL_CONNECTIONS
      See Also:
    • urlClient

      protected String urlClient
    • client

      protected org.apache.hc.client5.http.classic.HttpClient client
    • auditTrail

      protected ElasticIndexingAuditTrail auditTrail
  • Constructor Details

  • Method Details

    • sendHttpPostRequest

      protected ElasticResponse sendHttpPostRequest(String url, String content)
    • sendHttpPutRequest

      protected ElasticResponse sendHttpPutRequest(String url, String content)
    • sendHttpDeleteRequest

      protected ElasticResponse sendHttpDeleteRequest(String url)
    • sendHttpGetRequest

      protected ElasticResponse sendHttpGetRequest(String url)
    • sendHttpHeadRequest

      protected ElasticResponse sendHttpHeadRequest(String url)
    • initHttpClient

      protected void initHttpClient()
    • getHttpClient

      protected org.apache.hc.client5.http.classic.HttpClient getHttpClient()
    • getEsUsernameProperty

      protected abstract String getEsUsernameProperty()
    • getEsPasswordProperty

      protected abstract String getEsPasswordProperty()
    • getClientConnectionManager

      protected abstract org.apache.hc.client5.http.io.HttpClientConnectionManager getClientConnectionManager()
    • getMaxConnections

      protected int getMaxConnections()