Search in sources :

Example 1 with IsolationServerListFilter

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);
}
Also used : IsolationServerListFilter(org.apache.servicecomb.loadbalance.filter.IsolationServerListFilter)

Aggregations

IsolationServerListFilter (org.apache.servicecomb.loadbalance.filter.IsolationServerListFilter)1