use of org.apache.servicecomb.loadbalance.filter.IsolationServerListFilter in project incubator-servicecomb-java-chassis by apache.
the class LoadbalanceHandler method setIsolationFilter.
protected void setIsolationFilter(LoadBalancer lb, String microserviceName) {
final String filterName = IsolationServerListFilter.class.getName();
IsolationServerListFilter isolationListFilter = new IsolationServerListFilter();
isolationListFilter.setMicroserviceName(microserviceName);
isolationListFilter.setLoadBalancerStats(lb.getLoadBalancerStats());
lb.putFilter(filterName, isolationListFilter);
}
Aggregations