org.apache.hadoop.mapred.jobcontrol
Class Job
java.lang.Object
org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob
org.apache.hadoop.mapred.jobcontrol.Job
@InterfaceAudience.Public
@InterfaceStability.Stable
public class Job
- extends ControlledJob
Methods inherited from class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob |
addDependingJob, failJob, getDependentJobs, getJob, getJobID, getJobName, getJobState, getMapredJobID, getMessage, isCompleted, isReady, killJob, setJob, setJobID, setJobName, setJobState, setMessage, submit, toString |
SUCCESS
public static final int SUCCESS
- See Also:
- Constant Field Values
WAITING
public static final int WAITING
- See Also:
- Constant Field Values
RUNNING
public static final int RUNNING
- See Also:
- Constant Field Values
READY
public static final int READY
- See Also:
- Constant Field Values
FAILED
public static final int FAILED
- See Also:
- Constant Field Values
DEPENDENT_FAILED
public static final int DEPENDENT_FAILED
- See Also:
- Constant Field Values
Job
public Job(JobConf jobConf,
ArrayList<?> dependingJobs)
throws IOException
- Construct a job.
- Parameters:
jobConf
- a mapred job configuration representing a job to be executed.dependingJobs
- an array of jobs the current job depends on
- Throws:
IOException
Job
public Job(JobConf conf)
throws IOException
- Throws:
IOException
getAssignedJobID
public JobID getAssignedJobID()
- Returns:
- the mapred ID of this job as assigned by the
mapred framework.
setAssignedJobID
@Deprecated
public void setAssignedJobID(JobID mapredJobID)
- Deprecated. setAssignedJobID should not be called.
JOBID is set by the framework.
getJobConf
public JobConf getJobConf()
- Returns:
- the mapred job conf of this job
setJobConf
public void setJobConf(JobConf jobConf)
- Set the mapred job conf for this job.
- Parameters:
jobConf
- the mapred job conf for this job.
getState
public int getState()
- Returns:
- the state of this job
getJobClient
public JobClient getJobClient()
- Returns:
- the job client of this job
getDependingJobs
public ArrayList<Job> getDependingJobs()
- Returns:
- the depending jobs of this job
Copyright © 2013 Apache Software Foundation. All Rights Reserved.