public class MesosScaler extends java.lang.Object implements IScalerPerCluster
| Constructor and Description |
|---|
MesosScaler(Config config,
JobAPI.Job job,
MesosController mesosController) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isScalable()
whether this job is scalable
|
boolean |
scaleDownWorkers(int instancesToRemove,
int numberOfWorkers)
remove workers from the scalable compute resource
|
boolean |
scaleUpWorkers(int instancesToAdd)
add new workers to the scalable compute resource
|
void |
setFrameWorkId(java.lang.String id) |
public MesosScaler(Config config, JobAPI.Job job, MesosController mesosController)
public boolean isScalable()
IScalerPerClusterisScalable in interface IScalerPerClusterpublic boolean scaleUpWorkers(int instancesToAdd)
scaleUpWorkers in interface IScalerPerClusterpublic boolean scaleDownWorkers(int instancesToRemove,
int numberOfWorkers)
scaleDownWorkers in interface IScalerPerClusterinstancesToRemove - numberOfWorkers - number of workers before the scale downpublic void setFrameWorkId(java.lang.String id)