Package org.n52.iceland.statistics.impl
Class ElasticsearchAdminHandler
- java.lang.Object
-
- org.n52.iceland.statistics.impl.ElasticsearchAdminHandler
-
- All Implemented Interfaces:
Destroyable,IAdminDataHandler,Constructable
public class ElasticsearchAdminHandler extends Object implements IAdminDataHandler
-
-
Constructor Summary
Constructors Constructor Description ElasticsearchAdminHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateSchema()voiddeleteIndex(String index)voiddestroy()org.elasticsearch.client.RestHighLevelClientgetElasticsearchClient()ElasticsearchSettingsgetElasticsearchSettings()voidimportPreconfiguredKibana()voidinit()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.security.auth.Destroyable
isDestroyed
-
-
-
-
Method Detail
-
deleteIndex
public void deleteIndex(String index) throws IOException
- Specified by:
deleteIndexin interfaceIAdminDataHandler- Throws:
IOException
-
createSchema
public void createSchema() throws IOException- Specified by:
createSchemain interfaceIAdminDataHandler- Throws:
IOException
-
importPreconfiguredKibana
public void importPreconfiguredKibana() throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException- Throws:
com.fasterxml.jackson.core.JsonParseExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOException
-
init
public void init()
- Specified by:
initin interfaceConstructable
-
destroy
public void destroy()
- Specified by:
destroyin interfaceDestroyable
-
getElasticsearchSettings
public ElasticsearchSettings getElasticsearchSettings()
- Specified by:
getElasticsearchSettingsin interfaceIAdminDataHandler
-
getElasticsearchClient
public org.elasticsearch.client.RestHighLevelClient getElasticsearchClient()
- Specified by:
getElasticsearchClientin interfaceIAdminDataHandler
-
-