Package com.dotcms.repackage.org.elasticsearch.cluster.metadata

Examples of com.dotcms.repackage.org.elasticsearch.cluster.metadata.IndexMetaData


        Client client=new ESClient().getClient();
        Map<String,IndexMetaData> indexState=client.admin().cluster().prepareState().execute().actionGet()
                                                           .getState().getMetaData().indices();
        List<String> closeIdx=new ArrayList<String>();
        for(String idx : indexState.keySet()) {
            IndexMetaData idxM=indexState.get(idx);
            if(idxM.getState().equals(State.CLOSE))
                closeIdx.add(idx);
        }
        return closeIdx;
    }
View Full Code Here

TOP

Related Classes of com.dotcms.repackage.org.elasticsearch.cluster.metadata.IndexMetaData

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.