if (requireIdealHash) {
idealConsistentHash.addNode(server, false);
}
if (server.isHealthy() && server.isEnabled()) {
LoadFactorTask task = repository.getAddTask(server.toString());
if(task == null){
actualConsistentHash.addNode(server, false);
}else{
task.addListener(this);
actualConsistentHash.addNode(server,
task.getCurrFactor(), false);
addToRecoveringInstance(server);
}
}
}
}