use of org.ff4j.elastic.ElasticConnection in project ff4j by ff4j.
the class EventRepositoryElasticTest method initRepository.
@Override
protected EventRepository initRepository() {
ElasticConnection connection = null;
try {
connection = new ElasticConnection(ElasticConnectionMode.JEST_CLIENT, "ff4j", new URL("http://localhost:9200"));
} catch (MalformedURLException e) {
logger.error(e.getMessage(), e);
}
EventRepository elasticStore = new EventRepositoryElastic(connection);
elasticStore.createSchema();
return elasticStore;
}
Aggregations