Package org.xbib.elasticsearch.action.admin.cluster.state

Examples of org.xbib.elasticsearch.action.admin.cluster.state.ConsistencyCheckRequest


        controller.registerHandler(GET, "/_skywalker/consistencycheck", this);
    }

    @Override
    public void handleRequest(final RestRequest request, final RestChannel channel, final Client client) throws Exception {
        ConsistencyCheckRequest r = new ConsistencyCheckRequest();
        client.admin().cluster().execute(ConsistencyCheckAction.INSTANCE, r, new RestResponseListener<ConsistencyCheckResponse>(channel) {
            @Override
            public RestResponse buildResponse(ConsistencyCheckResponse response) throws Exception {
                XContentBuilder builder = XContentFactory.jsonBuilder();
                builder.startObject();
View Full Code Here

TOP

Related Classes of org.xbib.elasticsearch.action.admin.cluster.state.ConsistencyCheckRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.