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, getId, getProcessors, hasNext, next, process, removeProcessor, setId
doResume, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
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 boolean isRuntimeRatiosZeroed()
protected void resetRuntimeRatios()
public List<DistributionRatio> getRuntimeRatios()
public void setRuntimeRatios(ArrayList<DistributionRatio> runtimeRatios)
Apache Camel