Search in sources :

Example 1 with EmbeddedElasticsearch

use of org.n52.iceland.statistics.impl.server.EmbeddedElasticsearch in project arctic-sea by 52North.

the class ElasticsearchAdminHandler method initEmbeddedMode.

private void initEmbeddedMode() {
    embeddedServer = new EmbeddedElasticsearch();
    embeddedServer.setHomePath(context.getRealPath("/WEB-INF").concat("/elasticsearch"));
    embeddedServer.init();
    client = embeddedServer.getClient();
    logger.info("ElasticSearch data handler starting in EMBEDDED mode");
}
Also used : EmbeddedElasticsearch(org.n52.iceland.statistics.impl.server.EmbeddedElasticsearch)

Aggregations

EmbeddedElasticsearch (org.n52.iceland.statistics.impl.server.EmbeddedElasticsearch)1