Package org.one.stone.soup.server.http.routers

Examples of org.one.stone.soup.server.http.routers.HttpLoadBalancingRouter


     
      router = new HttpTunnelRouter(name,new FileServer(new File(root),new File(page404),indexPage,getMimeTypes()));
    }
    else if(type.equals("http-load-balance-service"))
    {
      HttpLoadBalancingRouter balancingRouter = new HttpLoadBalancingRouter(name,server.getFileServer());
      router = balancingRouter;
     
      XmlElement balancingServers = xServiceDefinition.getElementByName("http-balance-servers");
      for(int loop=0;loop<balancingServers.getElementCount();loop++)
      {
        XmlElement balancingServer = balancingServers.getElementByIndex(loop);
       
        balancingRouter.addBalancingServer( balancingServer.getAttributeValueByName("address"),Integer.parseInt(balancingServer.getAttributeValueByName("port")) );
      }
    }
   
    if(router!=null)
    {
View Full Code Here

TOP

Related Classes of org.one.stone.soup.server.http.routers.HttpLoadBalancingRouter

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.