Search in sources :

Example 6 with GetIndexTemplatesResponse

use of org.elasticsearch.client.indices.GetIndexTemplatesResponse in project hopsworks by logicalclocks.

the class ElasticClientController method templateGet.

public GetIndexTemplatesResponse templateGet(String template) throws ElasticException {
    GetIndexTemplatesRequest request = new GetIndexTemplatesRequest(template);
    FailableSupplier<GetIndexTemplatesResponse> query = () -> client.getClient().indices().getIndexTemplate(request, RequestOptions.DEFAULT);
    return executeElasticQuery(query, "elastic get template", request.toString());
}
Also used : GetIndexTemplatesResponse(org.elasticsearch.client.indices.GetIndexTemplatesResponse) GetIndexTemplatesRequest(org.elasticsearch.client.indices.GetIndexTemplatesRequest)

Aggregations

GetIndexTemplatesResponse (org.elasticsearch.client.indices.GetIndexTemplatesResponse)4 GetIndexTemplatesRequest (org.elasticsearch.client.indices.GetIndexTemplatesRequest)3 IndexRequest (org.elasticsearch.action.index.IndexRequest)2 GetIndexTemplatesRequest (org.graylog.shaded.elasticsearch7.org.elasticsearch.client.indices.GetIndexTemplatesRequest)2 GetIndexTemplatesResponse (org.graylog.shaded.elasticsearch7.org.elasticsearch.client.indices.GetIndexTemplatesResponse)2 TypeReference (com.fasterxml.jackson.core.type.TypeReference)1 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 ElasticException (io.hops.hopsworks.exceptions.ElasticException)1 IOException (java.io.IOException)1 InputStream (java.io.InputStream)1 URI (java.net.URI)1 URISyntaxException (java.net.URISyntaxException)1 URL (java.net.URL)1 Arrays (java.util.Arrays)1 List (java.util.List)1 Map (java.util.Map)1 Properties (java.util.Properties)1 TimeUnit (java.util.concurrent.TimeUnit)1 Level (java.util.logging.Level)1 Logger (java.util.logging.Logger)1