if (loadBalancingPolicyName != null)
{
switch (LoadBalancer.getValue(loadBalancingPolicyName))
{
case ROUNDROBIN:
loadBalancingPolicy = new RoundRobinBalancingPolicy();
break;
case LEASTACTIVE:
loadBalancingPolicy = new ThriftLeastActiveBalancingPolcy();
break;
default:
loadBalancingPolicy = new RoundRobinBalancingPolicy();
break;
}
}
loadBalancingPolicy = new RoundRobinBalancingPolicy();
}