com.caucho.cloud.loadbalance
Class LoadBalanceManager

java.lang.Object
  extended by com.caucho.cloud.loadbalance.LoadBalanceManager
Direct Known Subclasses:
ClusterLoadBalanceManager, CustomLoadBalanceManager

public abstract class LoadBalanceManager
extends java.lang.Object

Manages a load balancer.


Constructor Summary
LoadBalanceManager()
           
 
Method Summary
 void close()
           
 ClientSocket open()
          Opens the next available server.
abstract  ClientSocket openSticky(java.lang.String sessionId, java.lang.Object requestInfo, ClientSocketFactory oldClient)
          Opens the next available server, using a sticky session if available.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoadBalanceManager

public LoadBalanceManager()
Method Detail

open

public ClientSocket open()
Opens the next available server.


openSticky

public abstract ClientSocket openSticky(java.lang.String sessionId,
                                        java.lang.Object requestInfo,
                                        ClientSocketFactory oldClient)
Opens the next available server, using a sticky session if available.


close

public void close()

toString

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