Class JobControl
java.lang.Object
org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl
org.apache.hadoop.mapred.jobcontrol.JobControl
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl
JobControl.ThreadState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddJobs(Collection<Job> jobs) Add a collection of jobsintgetState()Methods inherited from class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl
addJob, addJob, addJobCollection, allFinished, getFailedJobList, getReadyJobsList, getRunningJobList, getSuccessfulJobList, getThreadState, getWaitingJobList, resume, run, stop, suspend
-
Constructor Details
-
JobControl
Construct a job control for a group of jobs.- Parameters:
groupName- a name identifying this group
-
-
Method Details
-
getWaitingJobs
- Returns:
- the jobs in the waiting state
-
getRunningJobs
- Returns:
- the jobs in the running state
-
getReadyJobs
- Returns:
- the jobs in the ready state
-
getSuccessfulJobs
- Returns:
- the jobs in the success state
-
getFailedJobs
-
addJobs
Add a collection of jobs- Parameters:
jobs-
-
getState
public int getState()- Returns:
- the thread state
-