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();