public class PigJobControl
extends org.apache.hadoop.mapred.jobcontrol.JobControl
https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23.1/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/lib/jobcontrol/JobControl.java
Modifier and Type | Field and Description |
---|---|
protected int |
timeToSleep |
Constructor and Description |
---|
PigJobControl(java.lang.String groupName,
int timeToSleep)
Construct a job control for a group of jobs.
|
Modifier and Type | Method and Description |
---|---|
int |
getTimeToSleep() |
void |
run()
The main loop for the thread.
|
void |
setTimeToSleep(int timeToSleep) |
addJobs, getFailedJobs, getReadyJobs, getRunningJobs, getState, getSuccessfulJobs, getWaitingJobs
public PigJobControl(java.lang.String groupName, int timeToSleep)
groupName
- a name identifying this grouppigContext
- conf
- public int getTimeToSleep()
public void setTimeToSleep(int timeToSleep)
public void run()
run
in interface java.lang.Runnable
run
in class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl
Copyright © 2007-2017 The Apache Software Foundation