public class JobController
extends java.lang.Object
Constructor and Description |
---|
JobController(JobService jobService,
WorkerService workerService,
ComputeResourceService computeResourceService) |
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<Job> |
all() |
void |
changeState(java.lang.String jobId,
StateChangeRequest<JobState> stateChangeRequest) |
ComputeResource |
createComputeResource(java.lang.String jobId,
ComputeResource computeResource) |
Job |
createJob(Job jobCreateRequest) |
void |
deleteComputeResource(java.lang.String jobId,
java.lang.Integer index) |
Job |
getJob(java.lang.String jobId) |
java.lang.Object |
getStateStats() |
java.lang.Iterable<Worker> |
getWorkers(java.lang.String jobId) |
void |
scaleComputeResource(java.lang.String jobId,
ScaleWorkersRequest scaleWorkersRequest) |
<any> |
search(int page,
java.lang.String keyword,
java.lang.String states) |
public JobController(JobService jobService, WorkerService workerService, ComputeResourceService computeResourceService)
public java.lang.Iterable<Job> all()
public <any> search(int page, java.lang.String keyword, java.lang.String states)
public Job getJob(java.lang.String jobId)
public java.lang.Iterable<Worker> getWorkers(java.lang.String jobId)
public void changeState(java.lang.String jobId, StateChangeRequest<JobState> stateChangeRequest)
public ComputeResource createComputeResource(java.lang.String jobId, ComputeResource computeResource)
public void scaleComputeResource(java.lang.String jobId, ScaleWorkersRequest scaleWorkersRequest)
public void deleteComputeResource(java.lang.String jobId, java.lang.Integer index)
public java.lang.Object getStateStats()