Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.cisco.oss.foundation.directory.lb;
 
 import java.util.List;
 
 
 public class LoadBalancerManager {

The loadbalancer map for Services.
	public LoadBalancerManager(DirectoryLookupService lookupService) {
		this. = lookupService;
	}
		synchronized(){
				if (i.getServiceName().equals(serviceName)) {
					lb = i;
					break;
				}
			}
			if(lb == null){
				lb = new ServiceRRLoadBalancer(serviceName);
			}
		}
		return lb;
	}
		synchronized(){
				if (i.getServiceInstanceQuery().equals(query)) {
					lb = i;
					break;
				}
			}
			if (lb == null) {
			}
		}
		return lb;
	}
			String serviceNameServiceInstanceQuery query) {
		synchronized(){
				if (i.getServiceName().equals(serviceName)
						&& i.getServiceInstanceQuery().equals(query)) {
					lb = i;
					break;
				}
			}
			if (lb == null) {
				lb = new ServiceQueryRRLoadBalancer(serviceName,
						query);
			}
		}
		return lb;
	}
New to GrepCode? Check out our FAQ X