com.caucho.cloud.loadbalance
Class ProLoadBalanceBuilder

java.lang.Object
  extended by com.caucho.cloud.loadbalance.LoadBalanceBuilder
      extended by com.caucho.cloud.loadbalance.ProLoadBalanceBuilder

public class ProLoadBalanceBuilder
extends LoadBalanceBuilder

LoadBalanceService distributes requests across a group of clients.


Constructor Summary
ProLoadBalanceBuilder()
           
 
Method Summary
 LoadBalanceManager create()
          Returns the load balance manager.
 void setStickyRequestHashGenerator(StickyRequestHashGenerator sticky)
          The request-sticky generator
 void setTargetCluster(CloudPod pod)
          Sets the target cluster by CloudPod id.
 void setTargetCluster(java.lang.String clusterId)
          Sets the target cluster by id.
 void setTargetPort(int port)
          Sets the target cluster by id.
 
Methods inherited from class com.caucho.cloud.loadbalance.LoadBalanceBuilder
addAddress, addClient, createClientSocketFactory, getClientList, getIdleTimeout, getMeterCategory, getStrategy, setIdleTimeout, setMeterCategory, setStrategy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProLoadBalanceBuilder

public ProLoadBalanceBuilder()
Method Detail

setTargetCluster

public void setTargetCluster(java.lang.String clusterId)
Description copied from class: LoadBalanceBuilder
Sets the target cluster by id.

Overrides:
setTargetCluster in class LoadBalanceBuilder

setTargetPort

public void setTargetPort(int port)
Description copied from class: LoadBalanceBuilder
Sets the target cluster by id.

Overrides:
setTargetPort in class LoadBalanceBuilder

setTargetCluster

public void setTargetCluster(CloudPod pod)
Description copied from class: LoadBalanceBuilder
Sets the target cluster by CloudPod id.

Overrides:
setTargetCluster in class LoadBalanceBuilder

setStickyRequestHashGenerator

public void setStickyRequestHashGenerator(StickyRequestHashGenerator sticky)
Description copied from class: LoadBalanceBuilder
The request-sticky generator

Overrides:
setStickyRequestHashGenerator in class LoadBalanceBuilder

create

public LoadBalanceManager create()
Returns the load balance manager.

Overrides:
create in class LoadBalanceBuilder