Interface IStatisticsDataHandler
-
- All Known Implementing Classes:
ElasticsearchDataHandler
public interface IStatisticsDataHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.elasticsearch.client.RestHighLevelClientgetClient()Returns the underlying elasticsearch clientbooleanisLoggingEnabled()Returns true if the statistics module is enabled otherwise falseorg.elasticsearch.action.index.IndexResponsepersist(Map<String,Object> dataMap)Persist the date to the database
-
-
-
Method Detail
-
persist
org.elasticsearch.action.index.IndexResponse persist(Map<String,Object> dataMap) throws org.elasticsearch.ElasticsearchGenerationException, IOException
Persist the date to the database- Parameters:
dataMap- keys are property names and the values are the objects- Returns:
- the response
- Throws:
IOException- If an error occursorg.elasticsearch.ElasticsearchGenerationException- If an error occurs
-
isLoggingEnabled
boolean isLoggingEnabled()
Returns true if the statistics module is enabled otherwise false- Returns:
- is the logging enabled
-
getClient
org.elasticsearch.client.RestHighLevelClient getClient()
Returns the underlying elasticsearch client- Returns:
- the opened ready to used client.
-
-