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()
IScalerPerCluster
isScalable
in interface IScalerPerCluster
public boolean scaleUpWorkers(int instancesToAdd)
IScalerPerCluster
scaleUpWorkers
in interface IScalerPerCluster
public boolean scaleDownWorkers(int instancesToRemove, int numberOfWorkers)
IScalerPerCluster
scaleDownWorkers
in interface IScalerPerCluster
numberOfWorkers
- number of workers before the scale down