Package com.caucho.cloud.loadbalance

Examples of com.caucho.cloud.loadbalance.LoadBalanceService


  private int _idCount = 0;
 
  public FastCGIServlet()
  {
    LoadBalanceService loadBalanceService = LoadBalanceService.getCurrent();
   
    if (loadBalanceService == null) {
      throw new IllegalStateException(L.l("'{0}' requires an active {1}",
                                          this,
                                          LoadBalanceService.class.getSimpleName()));
    }

    _loadBalanceBuilder = loadBalanceService.createBuilder();
   
    _loadBalanceBuilder.setMeterCategory("Resin|FastCGI");
  }
View Full Code Here


  private LoadBalanceBuilder _loadBalanceBuilder;
  private LoadBalanceManager _loadBalancer;

  public HttpProxyServlet()
  {
    LoadBalanceService loadBalanceService = LoadBalanceService.getCurrent();
   
    if (loadBalanceService == null) {
      throw new IllegalStateException(L.l("'{0}' requires an active {1}",
                                          this,
                                          LoadBalanceService.class.getSimpleName()));
    }
   
    _loadBalanceBuilder = loadBalanceService.createBuilder();
  }
View Full Code Here

TOP

Related Classes of com.caucho.cloud.loadbalance.LoadBalanceService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.