use of io.searchbox.indices.template.GetTemplate in project graylog2-server by Graylog2.
the class ClientES6 method templateExists.
@Override
public boolean templateExists(String templateName) {
final GetTemplate templateRequest = new GetTemplate.Builder(templateName).build();
final JestResult templateResponse = execute(templateRequest, "failed to get template " + templateName);
return templateResponse.isSucceeded();
}
Aggregations