public abstract class WeightedLoadBalancer extends QueueLoadBalancer
log
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
WeightedLoadBalancer(List<Integer> distributionRatios) |
Modifier and Type | Method and Description |
---|---|
protected void |
deepCloneDistributionRatios(List<Integer> distributionRatios) |
protected void |
doStart()
Implementations override this method to support customized start/stop.
|
List<Integer> |
getDistributionRatioList() |
List<DistributionRatio> |
getRuntimeRatios() |
protected boolean |
isRuntimeRatiosZeroed() |
protected void |
loadRuntimeRatios(List<Integer> distributionRatios) |
protected void |
resetRuntimeRatios() |
void |
setDistributionRatioList(List<Integer> distributionRatioList) |
void |
setRuntimeRatios(ArrayList<DistributionRatio> runtimeRatios) |
chooseProcessor, process
addProcessor, doShutdown, doStop, getProcessors, hasNext, next, process, removeProcessor
doResume, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public WeightedLoadBalancer(List<Integer> distributionRatios)
protected void deepCloneDistributionRatios(List<Integer> distributionRatios)
protected void doStart() throws Exception
ServiceSupport
ServiceSupport.doStop()
for more details.doStart
in class LoadBalancerSupport
Exception
ServiceSupport.doStop()
protected void loadRuntimeRatios(List<Integer> distributionRatios)
protected boolean isRuntimeRatiosZeroed()
protected void resetRuntimeRatios()
public List<Integer> getDistributionRatioList()
public void setDistributionRatioList(List<Integer> distributionRatioList)
public List<DistributionRatio> getRuntimeRatios()
public void setRuntimeRatios(ArrayList<DistributionRatio> runtimeRatios)
Apache Camel