public class NullScaler extends java.lang.Object implements IScalerPerCluster
| Constructor and Description |
|---|
NullScaler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isScalable()
whether this job is scalable
|
boolean |
scaleDownWorkers(int instancesToRemove,
int numberOfWorkers)
remove some instances of the workers from the job
|
boolean |
scaleUpWorkers(int instancesToAdd)
add new instances of workers to the job
|
public boolean isScalable()
IScalerPerClusterisScalable in interface IScalerPerClusterpublic boolean scaleUpWorkers(int instancesToAdd)
IScalerPerClusterscaleUpWorkers in interface IScalerPerClusterpublic boolean scaleDownWorkers(int instancesToRemove,
int numberOfWorkers)
IScalerPerClusterscaleDownWorkers in interface IScalerPerClusternumberOfWorkers - number of workers before the scale down