Search in sources :

Example 1 with BatchEsDAO

use of org.apache.skywalking.apm.collector.storage.es.base.dao.BatchEsDAO in project incubator-skywalking by apache.

the class StorageModuleEsProvider method prepare.

@Override
public void prepare(Properties config) throws ServiceNotProvidedException {
    String clusterName = config.getProperty(CLUSTER_NAME);
    Boolean clusterTransportSniffer = (Boolean) config.get(CLUSTER_TRANSPORT_SNIFFER);
    String clusterNodes = config.getProperty(CLUSTER_NODES);
    elasticSearchClient = new ElasticSearchClient(clusterName, clusterTransportSniffer, clusterNodes);
    this.registerServiceImplementation(IBatchDAO.class, new BatchEsDAO(elasticSearchClient));
    registerCacheDAO();
    registerRegisterDAO();
    registerPersistenceDAO();
    registerUiDAO();
    registerAlarmDAO();
}
Also used : BatchEsDAO(org.apache.skywalking.apm.collector.storage.es.base.dao.BatchEsDAO) ElasticSearchClient(org.apache.skywalking.apm.collector.client.elasticsearch.ElasticSearchClient)

Aggregations

ElasticSearchClient (org.apache.skywalking.apm.collector.client.elasticsearch.ElasticSearchClient)1 BatchEsDAO (org.apache.skywalking.apm.collector.storage.es.base.dao.BatchEsDAO)1