@InterfaceAudience.Public @InterfaceStability.Stable public class JobControl extends JobControl
Constructor and Description |
---|
JobControl(String groupName)
Construct a job control for a group of jobs.
|
Modifier and Type | Method and Description |
---|---|
void |
addJobs(Collection<Job> jobs)
Add a collection of jobs
|
ArrayList<Job> |
getFailedJobs() |
ArrayList<Job> |
getReadyJobs() |
ArrayList<Job> |
getRunningJobs() |
int |
getState() |
ArrayList<Job> |
getSuccessfulJobs() |
ArrayList<Job> |
getWaitingJobs() |
addJob, addJob, addJobCollection, allFinished, getFailedJobList, getReadyJobsList, getRunningJobList, getSuccessfulJobList, getThreadState, getWaitingJobList, resume, run, stop, suspend
public JobControl(String groupName)
groupName
- a name identifying this grouppublic ArrayList<Job> getWaitingJobs()
public ArrayList<Job> getRunningJobs()
public ArrayList<Job> getReadyJobs()
public ArrayList<Job> getSuccessfulJobs()
public ArrayList<Job> getFailedJobs()
public void addJobs(Collection<Job> jobs)
jobs
- public int getState()
Copyright © 2018 Apache Software Foundation. All rights reserved.