if (clusterContext == null) {
clusterContext = new ClusterContext(cluster.getServiceName(), cluster.getClusterId());
LoadBalancerContext.getInstance().getClusterIdClusterContextMap().addClusterContext(clusterContext);
}
AlgorithmContext algorithmContext = clusterContext.getAlgorithmContext();
if (algorithmContext == null) {
algorithmContext = new AlgorithmContext(cluster.getServiceName(), cluster.getClusterId());
clusterContext.setAlgorithmContext(algorithmContext);
}
algorithm.setMembers(new ArrayList<Member>(cluster.getMembers()));
Member member = algorithm.getNextMember(algorithmContext);
if (member == null) {