public class JobService
extends java.lang.Object
Constructor and Description |
---|
JobService() |
Modifier and Type | Method and Description |
---|---|
void |
changeState(java.lang.String jobId,
StateChangeRequest<JobState> stateChangeRequest) |
Job |
createJob(Job job) |
java.lang.Iterable<Job> |
getAllJobs() |
Job |
getJobById(java.lang.String jobId) |
java.lang.Object |
getStateStats() |
void |
heartbeat(java.lang.String jobId) |
void |
scale(java.lang.String jobId,
ScaleWorkersRequest scaleWorkersRequest) |
<any> |
searchJobs(java.util.List<JobState> states,
java.lang.String keyword,
int page) |
public <any> searchJobs(java.util.List<JobState> states, java.lang.String keyword, int page)
public Job getJobById(java.lang.String jobId)
public java.lang.Iterable<Job> getAllJobs()
public void changeState(java.lang.String jobId, StateChangeRequest<JobState> stateChangeRequest)
public void scale(java.lang.String jobId, ScaleWorkersRequest scaleWorkersRequest)
public void heartbeat(java.lang.String jobId)
public java.lang.Object getStateStats()