org.elasticsearch.action.admin.indices.status.IndicesStatusResponse Java Examples

The following examples show how to use org.elasticsearch.action.admin.indices.status.IndicesStatusResponse. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DcIndicesStatusResponseImpl.java    From io with Apache License 2.0 5 votes vote down vote up
/**
 * .
 * @param response .
 * @return .
 */
public static DcIndicesStatusResponse getInstance(IndicesStatusResponse response) {
    if (response == null) {
        return null;
    }
    return new DcIndicesStatusResponseImpl(response);
}
 
Example #2
Source File: StatusRequestBuilder.java    From elasticshell with Apache License 2.0 5 votes vote down vote up
@Override
protected XContentBuilder toXContent(IndicesStatusRequest request, IndicesStatusResponse response, XContentBuilder builder) throws IOException {
    builder.startObject();
    builder.field(Fields.OK, true);
    buildBroadcastShardsHeader(builder, response);
    response.toXContent(builder, ToXContent.EMPTY_PARAMS);
    builder.endObject();
    return builder;
}
 
Example #3
Source File: InternalEsClient.java    From io with Apache License 2.0 4 votes vote down vote up
/**
 * インデックスステータスを取得する.
 * @return 非同期応答
 */
public ActionFuture<IndicesStatusResponse> indicesStatus() {
    IndicesStatusRequestBuilder cirb =
            new IndicesStatusRequestBuilder(esTransportClient.admin().indices());
    return cirb.execute();
}
 
Example #4
Source File: StatusRequestBuilder.java    From elasticshell with Apache License 2.0 4 votes vote down vote up
@Override
protected ActionFuture<IndicesStatusResponse> doExecute(IndicesStatusRequest request) {
    return client.admin().indices().status(request);
}
 
Example #5
Source File: DcIndicesStatusResponseImpl.java    From io with Apache License 2.0 2 votes vote down vote up
/**
 * GetResponseを指定してインスタンスを生成する.
 * @param response ESからのレスポンスオブジェクト
 */
private DcIndicesStatusResponseImpl(IndicesStatusResponse response) {
    this.indicesStatusResponse = response;
}