public final class JobUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static JobAPI.Job |
scaleJob(JobAPI.Job job,
int workerChange)
update numberOfWorkers and instances in scalable ComputeResource
we assume the last ComputeResource is scalable
workerChange is negative when the job is scaled down,
it is positive when it is scaled up
|
public static JobAPI.Job scaleJob(JobAPI.Job job, int workerChange)
job
- workerChange
-