Package com.dotcms.repackage.org.elasticsearch.action.admin.cluster.health

Examples of com.dotcms.repackage.org.elasticsearch.action.admin.cluster.health.ClusterIndexHealth


    }

        AdminLogger.log(this.getClass(), "clearIndex", "Trying to clear index: " + indexName);

        Map<String, ClusterIndexHealth> map = getClusterHealth();
    ClusterIndexHealth cih = map.get(indexName);
    int shards = cih.getNumberOfShards();
    int replicas = cih.getNumberOfReplicas();

    String alias=getIndexAlias(indexName);

    iapi.delete(indexName);
View Full Code Here


    public  synchronized void updateReplicas (String indexName, int replicas) throws DotDataException {

      AdminLogger.log(this.getClass(), "updateReplicas", "Trying to update replicas to index: " + indexName);
     
      Map<String,ClusterIndexHealth> idxs = getClusterHealth();
    ClusterIndexHealth health = idxs.get( indexName);
    if(health ==null){
      return;
    }
    int curReplicas = health.getNumberOfReplicas();

    if(curReplicas != replicas){


      Map newSettings = new HashMap();
View Full Code Here

TOP

Related Classes of com.dotcms.repackage.org.elasticsearch.action.admin.cluster.health.ClusterIndexHealth

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.