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()
IScaler
isScalable
in interface IScaler
public boolean scaleUpWorkers(int instancesToAdd)
IScaler
scaleUpWorkers
in interface IScaler
public boolean scaleDownWorkers(int instancesToRemove)
IScaler
scaleDownWorkers
in interface IScaler