| Constructor and Description |
|---|
Scaler(IScalerPerCluster clusterScaler,
WorkerMonitor workerMonitor,
ZKJobUpdater zkJobUpdater) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isScalable()
whether this job is scalable
|
boolean |
scaleDownWorkers(int instancesToRemove)
remove some instances of the workers from the job
|
boolean |
scaleUpWorkers(int instancesToAdd)
add new instances of workers to the job
|
public Scaler(IScalerPerCluster clusterScaler, WorkerMonitor workerMonitor, ZKJobUpdater zkJobUpdater)
public boolean isScalable()
IScalerisScalable in interface IScalerpublic boolean scaleUpWorkers(int instancesToAdd)
IScalerscaleUpWorkers in interface IScalerpublic boolean scaleDownWorkers(int instancesToRemove)
IScalerscaleDownWorkers in interface IScaler