Search in sources :

Example 1 with IndexingHelper

use of org.graylog.storage.elasticsearch6.IndexingHelper in project graylog2-server by Graylog2.

the class IndicesIT method indicesAdapter.

protected IndicesAdapter indicesAdapter() {
    if (elasticsearch().searchServer().equals(SearchServer.ES6)) {
        return new IndicesAdapterES6(jestClient(elasticsearch()), new ObjectMapperProvider().get(), new IndexingHelper());
    } else {
        final ObjectMapper objectMapper = new ObjectMapperProvider().get();
        final ElasticsearchClient client = elasticsearchClient();
        return new IndicesAdapterES7(client, new StatsApi(objectMapper, client), new CatApi(objectMapper, client), new ClusterStateApi(objectMapper, client));
    }
}
Also used : IndexingHelper(org.graylog.storage.elasticsearch6.IndexingHelper) CatApi(org.graylog.storage.elasticsearch7.cat.CatApi) StatsApi(org.graylog.storage.elasticsearch7.stats.StatsApi) IndicesAdapterES6(org.graylog.storage.elasticsearch6.IndicesAdapterES6) ElasticsearchClient(org.graylog.storage.elasticsearch7.ElasticsearchClient) IndicesAdapterES7(org.graylog.storage.elasticsearch7.IndicesAdapterES7) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper) ClusterStateApi(org.graylog.storage.elasticsearch7.cluster.ClusterStateApi) ObjectMapperProvider(org.graylog2.shared.bindings.providers.ObjectMapperProvider)

Aggregations

ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 IndexingHelper (org.graylog.storage.elasticsearch6.IndexingHelper)1 IndicesAdapterES6 (org.graylog.storage.elasticsearch6.IndicesAdapterES6)1 ElasticsearchClient (org.graylog.storage.elasticsearch7.ElasticsearchClient)1 IndicesAdapterES7 (org.graylog.storage.elasticsearch7.IndicesAdapterES7)1 CatApi (org.graylog.storage.elasticsearch7.cat.CatApi)1 ClusterStateApi (org.graylog.storage.elasticsearch7.cluster.ClusterStateApi)1 StatsApi (org.graylog.storage.elasticsearch7.stats.StatsApi)1 ObjectMapperProvider (org.graylog2.shared.bindings.providers.ObjectMapperProvider)1