use of org.graylog.shaded.elasticsearch7.org.elasticsearch.action.admin.indices.refresh.RefreshRequest in project graylog2-server by Graylog2.
the class MessagesES7IT method messageCount.
@Override
protected long messageCount(String indexName) {
this.elasticsearch.elasticsearchClient().execute((c, requestOptions) -> c.indices().refresh(new RefreshRequest(), requestOptions));
final CountRequest countRequest = new CountRequest(indexName);
final CountResponse result = this.elasticsearch.elasticsearchClient().execute((c, requestOptions) -> c.count(countRequest, requestOptions));
return result.getCount();
}
use of org.graylog.shaded.elasticsearch7.org.elasticsearch.action.admin.indices.refresh.RefreshRequest in project graylog2-server by Graylog2.
the class ClientES7 method refreshNode.
@Override
public void refreshNode() {
final RefreshRequest refreshRequest = new RefreshRequest();
client.execute((c, requestOptions) -> c.indices().refresh(refreshRequest, requestOptions));
}
Aggregations