Search in sources :

Example 1 with CloseIndexRequest

use of org.graylog.shaded.elasticsearch7.org.elasticsearch.client.indices.CloseIndexRequest in project graylog2-server by Graylog2.

the class IndicesAdapterES7 method close.

@Override
public void close(String index) {
    final CloseIndexRequest request = new CloseIndexRequest(index);
    client.execute((c, requestOptions) -> c.indices().close(request, requestOptions), "Unable to close index " + index);
}
Also used : CloseIndexRequest(org.graylog.shaded.elasticsearch7.org.elasticsearch.client.indices.CloseIndexRequest)

Example 2 with CloseIndexRequest

use of org.graylog.shaded.elasticsearch7.org.elasticsearch.client.indices.CloseIndexRequest in project graylog2-server by Graylog2.

the class ClientES7 method closeIndex.

@Override
public void closeIndex(String index) {
    final CloseIndexRequest closeIndexRequest = new CloseIndexRequest(index);
    client.execute((c, requestOptions) -> c.indices().close(closeIndexRequest, requestOptions));
}
Also used : CloseIndexRequest(org.graylog.shaded.elasticsearch7.org.elasticsearch.client.indices.CloseIndexRequest)

Aggregations

CloseIndexRequest (org.graylog.shaded.elasticsearch7.org.elasticsearch.client.indices.CloseIndexRequest)2