com.github.euler.elasticsearch.ElasticsearchConfigClientConfigConverter Maven / Gradle / Ivy
package com.github.euler.elasticsearch;
import org.elasticsearch.client.RestHighLevelClient;
import com.github.euler.configuration.ConfigContext;
import com.github.euler.configuration.TypesConfigConverter;
import com.typesafe.config.Config;
public class ElasticsearchConfigClientConfigConverter extends AbstractElasticsearchClientConfigConverter {
@Override
public String configType() {
return "client";
}
@Override
public RestHighLevelClient convert(Config config, ConfigContext configContext, TypesConfigConverter typeConfigConverter) {
return ElasticsearchUtils.initializeClient(config);
}
}