public class ElasticsearchDataHandler extends Object implements IStatisticsDataHandler
| Constructor and Description |
|---|
ElasticsearchDataHandler() |
| Modifier and Type | Method and Description |
|---|---|
org.elasticsearch.client.RestHighLevelClient |
getClient()
Returns the underlying elasticsearch client
|
boolean |
isLoggingEnabled()
Returns true if the statistics module is enabled otherwise false
|
org.elasticsearch.action.index.IndexResponse |
persist(Map<String,Object> dataMap)
Persist the date to the database
|
public org.elasticsearch.action.index.IndexResponse persist(Map<String,Object> dataMap) throws org.elasticsearch.ElasticsearchGenerationException, IOException
IStatisticsDataHandlerpersist in interface IStatisticsDataHandlerdataMap - keys are property names and the values are the objectsorg.elasticsearch.ElasticsearchGenerationException - If an error occursIOException - If an error occurspublic boolean isLoggingEnabled()
IStatisticsDataHandlerisLoggingEnabled in interface IStatisticsDataHandlerpublic org.elasticsearch.client.RestHighLevelClient getClient()
IStatisticsDataHandlergetClient in interface IStatisticsDataHandlerCopyright © 2015–2021 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.