com.caucho.cloud.loadbalance
Class ClusterLoadBalanceManager

java.lang.Object
  extended by com.caucho.cloud.loadbalance.LoadBalanceManager
      extended by com.caucho.cloud.loadbalance.ClusterLoadBalanceManager

public class ClusterLoadBalanceManager
extends LoadBalanceManager

Manages a load balancer.


Constructor Summary
ClusterLoadBalanceManager(LoadBalanceClientGroup clientGroup, StickyRequestHashGenerator sticky, LoadBalanceStrategy strategyType)
           
 
Method Summary
 void close()
           
 ClientSocket openSticky(java.lang.String sessionId, java.lang.Object requestInfo, ClientSocketFactory oldSrun)
          Opens the next available server.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.cloud.loadbalance.LoadBalanceManager
open
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClusterLoadBalanceManager

public ClusterLoadBalanceManager(LoadBalanceClientGroup clientGroup,
                                 StickyRequestHashGenerator sticky,
                                 LoadBalanceStrategy strategyType)
Method Detail

openSticky

public ClientSocket openSticky(java.lang.String sessionId,
                               java.lang.Object requestInfo,
                               ClientSocketFactory oldSrun)
Opens the next available server.

Specified by:
openSticky in class LoadBalanceManager

close

public void close()
Overrides:
close in class LoadBalanceManager

toString

public java.lang.String toString()
Overrides:
toString in class LoadBalanceManager