Package org.exoplatform.analytics.es
Class AnalyticsESClient
java.lang.Object
org.exoplatform.commons.search.es.client.ElasticClient
org.exoplatform.analytics.es.AnalyticsESClient
public class AnalyticsESClient
extends org.exoplatform.commons.search.es.client.ElasticClient
-
Field Summary
FieldsFields inherited from class org.exoplatform.commons.search.es.client.ElasticClient
auditTrail, client, DEFAULT_MAX_HTTP_POOL_CONNECTIONS, urlClient -
Constructor Summary
ConstructorsConstructorDescriptionAnalyticsESClient(org.exoplatform.container.configuration.ConfigurationManager configurationManager, AnalyticsElasticContentRequestBuilder elasticContentRequestBuilder, AnalyticsIndexingServiceConnector analyticsIndexingConnector, org.exoplatform.commons.search.es.client.ElasticIndexingAuditTrail auditTrail, org.exoplatform.container.xml.InitParams initParams) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.http.conn.HttpClientConnectionManagerprotected Stringprotected StringintgetIndexSuffix(long timestamp) voidinit()voidvoidrefreshIndex(String index) voidsendCreateBulkDocumentsRequest(List<org.exoplatform.analytics.model.StatisticDataQueueEntry> dataQueueEntries) booleansendCreateIndexRequest(String index) org.exoplatform.commons.search.es.client.ElasticResponseorg.exoplatform.commons.search.es.client.ElasticResponsesendHttpGetRequest(String uri) org.exoplatform.commons.search.es.client.ElasticResponsesendHttpGetRequest(String urlClient, String uri) protected org.exoplatform.commons.search.es.client.ElasticResponseorg.exoplatform.commons.search.es.client.ElasticResponsesendHttpPostRequest(String uri, String content) org.exoplatform.commons.search.es.client.ElasticResponsesendHttpPutRequest(String uri, String content) booleansendIsIndexExistsRequest(String esIndex) booleansendRequest(String esQuery) voidMethods inherited from class org.exoplatform.commons.search.es.client.ElasticClient
getHttpClient, getMaxConnections, initHttpClient
-
Field Details
-
DAY_DATE_FORMATTER
-
-
Constructor Details
-
AnalyticsESClient
public AnalyticsESClient(org.exoplatform.container.configuration.ConfigurationManager configurationManager, AnalyticsElasticContentRequestBuilder elasticContentRequestBuilder, AnalyticsIndexingServiceConnector analyticsIndexingConnector, org.exoplatform.commons.search.es.client.ElasticIndexingAuditTrail auditTrail, org.exoplatform.container.xml.InitParams initParams)
-
-
Method Details
-
init
public void init() -
sendCreateIndexRequest
-
sendTurnOffWriteOnAllAnalyticsIndexes
public void sendTurnOffWriteOnAllAnalyticsIndexes() -
sendIsIndexExistsRequest
-
sendIsIndexTemplateExistsRequest
public boolean sendIsIndexTemplateExistsRequest() -
sendCreateBulkDocumentsRequest
public void sendCreateBulkDocumentsRequest(List<org.exoplatform.analytics.model.StatisticDataQueueEntry> dataQueueEntries) -
sendRequest
-
retrieveAllAnalyticsIndexesMapping
-
sendHttpHeadRequest
- Overrides:
sendHttpHeadRequestin classorg.exoplatform.commons.search.es.client.ElasticClient
-
sendHttpGetRequest
- Overrides:
sendHttpGetRequestin classorg.exoplatform.commons.search.es.client.ElasticClient
-
sendHttpGetRequest
-
sendHttpPutRequest
public org.exoplatform.commons.search.es.client.ElasticResponse sendHttpPutRequest(String uri, String content) - Overrides:
sendHttpPutRequestin classorg.exoplatform.commons.search.es.client.ElasticClient
-
sendHttpDeleteRequest
- Overrides:
sendHttpDeleteRequestin classorg.exoplatform.commons.search.es.client.ElasticClient
-
sendHttpPostRequest
public org.exoplatform.commons.search.es.client.ElasticResponse sendHttpPostRequest(String uri, String content) - Overrides:
sendHttpPostRequestin classorg.exoplatform.commons.search.es.client.ElasticClient
-
getIndexSuffix
-
refreshIndex
public void refreshIndex() -
refreshIndex
-
getIndexPerDays
public int getIndexPerDays() -
getEsUsernameProperty
- Specified by:
getEsUsernamePropertyin classorg.exoplatform.commons.search.es.client.ElasticClient
-
getEsPasswordProperty
- Specified by:
getEsPasswordPropertyin classorg.exoplatform.commons.search.es.client.ElasticClient
-
getClientConnectionManager
protected org.apache.http.conn.HttpClientConnectionManager getClientConnectionManager()- Specified by:
getClientConnectionManagerin classorg.exoplatform.commons.search.es.client.ElasticClient
-