[120] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
---|
| 2 | <!--NewPage--> |
---|
| 3 | <HTML> |
---|
| 4 | <HEAD> |
---|
| 5 | <!-- Generated by javadoc (build 1.6.0_07) on Tue Sep 01 20:56:57 UTC 2009 --> |
---|
| 6 | <TITLE> |
---|
| 7 | JobControl (Hadoop 0.20.1 API) |
---|
| 8 | </TITLE> |
---|
| 9 | |
---|
| 10 | <META NAME="date" CONTENT="2009-09-01"> |
---|
| 11 | |
---|
| 12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> |
---|
| 13 | |
---|
| 14 | <SCRIPT type="text/javascript"> |
---|
| 15 | function windowTitle() |
---|
| 16 | { |
---|
| 17 | if (location.href.indexOf('is-external=true') == -1) { |
---|
| 18 | parent.document.title="JobControl (Hadoop 0.20.1 API)"; |
---|
| 19 | } |
---|
| 20 | } |
---|
| 21 | </SCRIPT> |
---|
| 22 | <NOSCRIPT> |
---|
| 23 | </NOSCRIPT> |
---|
| 24 | |
---|
| 25 | </HEAD> |
---|
| 26 | |
---|
| 27 | <BODY BGCOLOR="white" onload="windowTitle();"> |
---|
| 28 | <HR> |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | <!-- ========= START OF TOP NAVBAR ======= --> |
---|
| 32 | <A NAME="navbar_top"><!-- --></A> |
---|
| 33 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
---|
| 34 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 35 | <TR> |
---|
| 36 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 37 | <A NAME="navbar_top_firstrow"><!-- --></A> |
---|
| 38 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 39 | <TR ALIGN="center" VALIGN="top"> |
---|
| 40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 42 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 43 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/JobControl.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 44 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 45 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 46 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 47 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 48 | </TR> |
---|
| 49 | </TABLE> |
---|
| 50 | </TD> |
---|
| 51 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 52 | </EM> |
---|
| 53 | </TD> |
---|
| 54 | </TR> |
---|
| 55 | |
---|
| 56 | <TR> |
---|
| 57 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 58 | <A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/Job.html" title="class in org.apache.hadoop.mapred.jobcontrol"><B>PREV CLASS</B></A> |
---|
| 59 | NEXT CLASS</FONT></TD> |
---|
| 60 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 61 | <A HREF="../../../../../index.html?org/apache/hadoop/mapred/jobcontrol/JobControl.html" target="_top"><B>FRAMES</B></A> |
---|
| 62 | <A HREF="JobControl.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 63 | <SCRIPT type="text/javascript"> |
---|
| 64 | <!-- |
---|
| 65 | if(window==top) { |
---|
| 66 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 67 | } |
---|
| 68 | //--> |
---|
| 69 | </SCRIPT> |
---|
| 70 | <NOSCRIPT> |
---|
| 71 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 72 | </NOSCRIPT> |
---|
| 73 | |
---|
| 74 | |
---|
| 75 | </FONT></TD> |
---|
| 76 | </TR> |
---|
| 77 | <TR> |
---|
| 78 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 79 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 80 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 81 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 82 | </TR> |
---|
| 83 | </TABLE> |
---|
| 84 | <A NAME="skip-navbar_top"></A> |
---|
| 85 | <!-- ========= END OF TOP NAVBAR ========= --> |
---|
| 86 | |
---|
| 87 | <HR> |
---|
| 88 | <!-- ======== START OF CLASS DATA ======== --> |
---|
| 89 | <H2> |
---|
| 90 | <FONT SIZE="-1"> |
---|
| 91 | org.apache.hadoop.mapred.jobcontrol</FONT> |
---|
| 92 | <BR> |
---|
| 93 | Class JobControl</H2> |
---|
| 94 | <PRE> |
---|
| 95 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> |
---|
| 96 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.hadoop.mapred.jobcontrol.JobControl</B> |
---|
| 97 | </PRE> |
---|
| 98 | <DL> |
---|
| 99 | <DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Runnable.html?is-external=true" title="class or interface in java.lang">Runnable</A></DD> |
---|
| 100 | </DL> |
---|
| 101 | <HR> |
---|
| 102 | <DL> |
---|
| 103 | <DT><PRE>public class <B>JobControl</B><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Runnable.html?is-external=true" title="class or interface in java.lang">Runnable</A></DL> |
---|
| 104 | </PRE> |
---|
| 105 | |
---|
| 106 | <P> |
---|
| 107 | This class encapsulates a set of MapReduce jobs and its dependency. It tracks |
---|
| 108 | the states of the jobs by placing them into different tables according to their |
---|
| 109 | states. |
---|
| 110 | |
---|
| 111 | This class provides APIs for the client app to add a job to the group and to get |
---|
| 112 | the jobs in the group in different states. When a |
---|
| 113 | job is added, an ID unique to the group is assigned to the job. |
---|
| 114 | |
---|
| 115 | This class has a thread that submits jobs when they become ready, monitors the |
---|
| 116 | states of the running jobs, and updates the states of jobs based on the state changes |
---|
| 117 | of their depending jobs states. The class provides APIs for suspending/resuming |
---|
| 118 | the thread,and for stopping the thread. |
---|
| 119 | <P> |
---|
| 120 | |
---|
| 121 | <P> |
---|
| 122 | <HR> |
---|
| 123 | |
---|
| 124 | <P> |
---|
| 125 | |
---|
| 126 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
| 127 | |
---|
| 128 | <A NAME="constructor_summary"><!-- --></A> |
---|
| 129 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 130 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 131 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 132 | <B>Constructor Summary</B></FONT></TH> |
---|
| 133 | </TR> |
---|
| 134 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 135 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/JobControl.html#JobControl(java.lang.String)">JobControl</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> groupName)</CODE> |
---|
| 136 | |
---|
| 137 | <BR> |
---|
| 138 | Construct a job control for a group of jobs.</TD> |
---|
| 139 | </TR> |
---|
| 140 | </TABLE> |
---|
| 141 | |
---|
| 142 | <!-- ========== METHOD SUMMARY =========== --> |
---|
| 143 | |
---|
| 144 | <A NAME="method_summary"><!-- --></A> |
---|
| 145 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 146 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 147 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 148 | <B>Method Summary</B></FONT></TH> |
---|
| 149 | </TR> |
---|
| 150 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 151 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 152 | <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
| 153 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/JobControl.html#addJob(org.apache.hadoop.mapred.jobcontrol.Job)">addJob</A></B>(<A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/Job.html" title="class in org.apache.hadoop.mapred.jobcontrol">Job</A> aJob)</CODE> |
---|
| 154 | |
---|
| 155 | <BR> |
---|
| 156 | Add a new job.</TD> |
---|
| 157 | </TR> |
---|
| 158 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 159 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 160 | <CODE> void</CODE></FONT></TD> |
---|
| 161 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/JobControl.html#addJobs(java.util.Collection)">addJobs</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A><<A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/Job.html" title="class in org.apache.hadoop.mapred.jobcontrol">Job</A>> jobs)</CODE> |
---|
| 162 | |
---|
| 163 | <BR> |
---|
| 164 | Add a collection of jobs</TD> |
---|
| 165 | </TR> |
---|
| 166 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 167 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 168 | <CODE> boolean</CODE></FONT></TD> |
---|
| 169 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/JobControl.html#allFinished()">allFinished</A></B>()</CODE> |
---|
| 170 | |
---|
| 171 | <BR> |
---|
| 172 | </TD> |
---|
| 173 | </TR> |
---|
| 174 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 175 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 176 | <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</A><<A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/Job.html" title="class in org.apache.hadoop.mapred.jobcontrol">Job</A>></CODE></FONT></TD> |
---|
| 177 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/JobControl.html#getFailedJobs()">getFailedJobs</A></B>()</CODE> |
---|
| 178 | |
---|
| 179 | <BR> |
---|
| 180 | </TD> |
---|
| 181 | </TR> |
---|
| 182 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 183 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 184 | <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</A><<A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/Job.html" title="class in org.apache.hadoop.mapred.jobcontrol">Job</A>></CODE></FONT></TD> |
---|
| 185 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/JobControl.html#getReadyJobs()">getReadyJobs</A></B>()</CODE> |
---|
| 186 | |
---|
| 187 | <BR> |
---|
| 188 | </TD> |
---|
| 189 | </TR> |
---|
| 190 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 191 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 192 | <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</A><<A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/Job.html" title="class in org.apache.hadoop.mapred.jobcontrol">Job</A>></CODE></FONT></TD> |
---|
| 193 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/JobControl.html#getRunningJobs()">getRunningJobs</A></B>()</CODE> |
---|
| 194 | |
---|
| 195 | <BR> |
---|
| 196 | </TD> |
---|
| 197 | </TR> |
---|
| 198 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 199 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 200 | <CODE> int</CODE></FONT></TD> |
---|
| 201 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/JobControl.html#getState()">getState</A></B>()</CODE> |
---|
| 202 | |
---|
| 203 | <BR> |
---|
| 204 | </TD> |
---|
| 205 | </TR> |
---|
| 206 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 207 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 208 | <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</A><<A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/Job.html" title="class in org.apache.hadoop.mapred.jobcontrol">Job</A>></CODE></FONT></TD> |
---|
| 209 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/JobControl.html#getSuccessfulJobs()">getSuccessfulJobs</A></B>()</CODE> |
---|
| 210 | |
---|
| 211 | <BR> |
---|
| 212 | </TD> |
---|
| 213 | </TR> |
---|
| 214 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 215 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 216 | <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</A><<A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/Job.html" title="class in org.apache.hadoop.mapred.jobcontrol">Job</A>></CODE></FONT></TD> |
---|
| 217 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/JobControl.html#getWaitingJobs()">getWaitingJobs</A></B>()</CODE> |
---|
| 218 | |
---|
| 219 | <BR> |
---|
| 220 | </TD> |
---|
| 221 | </TR> |
---|
| 222 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 223 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 224 | <CODE> void</CODE></FONT></TD> |
---|
| 225 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/JobControl.html#resume()">resume</A></B>()</CODE> |
---|
| 226 | |
---|
| 227 | <BR> |
---|
| 228 | resume the suspended thread</TD> |
---|
| 229 | </TR> |
---|
| 230 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 231 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 232 | <CODE> void</CODE></FONT></TD> |
---|
| 233 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/JobControl.html#run()">run</A></B>()</CODE> |
---|
| 234 | |
---|
| 235 | <BR> |
---|
| 236 | The main loop for the thread.</TD> |
---|
| 237 | </TR> |
---|
| 238 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 239 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 240 | <CODE> void</CODE></FONT></TD> |
---|
| 241 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/JobControl.html#stop()">stop</A></B>()</CODE> |
---|
| 242 | |
---|
| 243 | <BR> |
---|
| 244 | set the thread state to STOPPING so that the |
---|
| 245 | thread will stop when it wakes up.</TD> |
---|
| 246 | </TR> |
---|
| 247 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 248 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 249 | <CODE> void</CODE></FONT></TD> |
---|
| 250 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/JobControl.html#suspend()">suspend</A></B>()</CODE> |
---|
| 251 | |
---|
| 252 | <BR> |
---|
| 253 | suspend the running thread</TD> |
---|
| 254 | </TR> |
---|
| 255 | </TABLE> |
---|
| 256 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
| 257 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 258 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
| 259 | <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> |
---|
| 260 | </TR> |
---|
| 261 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 262 | <TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> |
---|
| 263 | </TR> |
---|
| 264 | </TABLE> |
---|
| 265 | |
---|
| 266 | <P> |
---|
| 267 | |
---|
| 268 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
| 269 | |
---|
| 270 | <A NAME="constructor_detail"><!-- --></A> |
---|
| 271 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 272 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 273 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 274 | <B>Constructor Detail</B></FONT></TH> |
---|
| 275 | </TR> |
---|
| 276 | </TABLE> |
---|
| 277 | |
---|
| 278 | <A NAME="JobControl(java.lang.String)"><!-- --></A><H3> |
---|
| 279 | JobControl</H3> |
---|
| 280 | <PRE> |
---|
| 281 | public <B>JobControl</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> groupName)</PRE> |
---|
| 282 | <DL> |
---|
| 283 | <DD>Construct a job control for a group of jobs. |
---|
| 284 | <P> |
---|
| 285 | <DL> |
---|
| 286 | <DT><B>Parameters:</B><DD><CODE>groupName</CODE> - a name identifying this group</DL> |
---|
| 287 | </DL> |
---|
| 288 | |
---|
| 289 | <!-- ============ METHOD DETAIL ========== --> |
---|
| 290 | |
---|
| 291 | <A NAME="method_detail"><!-- --></A> |
---|
| 292 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 293 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 294 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 295 | <B>Method Detail</B></FONT></TH> |
---|
| 296 | </TR> |
---|
| 297 | </TABLE> |
---|
| 298 | |
---|
| 299 | <A NAME="getWaitingJobs()"><!-- --></A><H3> |
---|
| 300 | getWaitingJobs</H3> |
---|
| 301 | <PRE> |
---|
| 302 | public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</A><<A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/Job.html" title="class in org.apache.hadoop.mapred.jobcontrol">Job</A>> <B>getWaitingJobs</B>()</PRE> |
---|
| 303 | <DL> |
---|
| 304 | <DD><DL> |
---|
| 305 | </DL> |
---|
| 306 | </DD> |
---|
| 307 | <DD><DL> |
---|
| 308 | |
---|
| 309 | <DT><B>Returns:</B><DD>the jobs in the waiting state</DL> |
---|
| 310 | </DD> |
---|
| 311 | </DL> |
---|
| 312 | <HR> |
---|
| 313 | |
---|
| 314 | <A NAME="getRunningJobs()"><!-- --></A><H3> |
---|
| 315 | getRunningJobs</H3> |
---|
| 316 | <PRE> |
---|
| 317 | public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</A><<A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/Job.html" title="class in org.apache.hadoop.mapred.jobcontrol">Job</A>> <B>getRunningJobs</B>()</PRE> |
---|
| 318 | <DL> |
---|
| 319 | <DD><DL> |
---|
| 320 | </DL> |
---|
| 321 | </DD> |
---|
| 322 | <DD><DL> |
---|
| 323 | |
---|
| 324 | <DT><B>Returns:</B><DD>the jobs in the running state</DL> |
---|
| 325 | </DD> |
---|
| 326 | </DL> |
---|
| 327 | <HR> |
---|
| 328 | |
---|
| 329 | <A NAME="getReadyJobs()"><!-- --></A><H3> |
---|
| 330 | getReadyJobs</H3> |
---|
| 331 | <PRE> |
---|
| 332 | public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</A><<A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/Job.html" title="class in org.apache.hadoop.mapred.jobcontrol">Job</A>> <B>getReadyJobs</B>()</PRE> |
---|
| 333 | <DL> |
---|
| 334 | <DD><DL> |
---|
| 335 | </DL> |
---|
| 336 | </DD> |
---|
| 337 | <DD><DL> |
---|
| 338 | |
---|
| 339 | <DT><B>Returns:</B><DD>the jobs in the ready state</DL> |
---|
| 340 | </DD> |
---|
| 341 | </DL> |
---|
| 342 | <HR> |
---|
| 343 | |
---|
| 344 | <A NAME="getSuccessfulJobs()"><!-- --></A><H3> |
---|
| 345 | getSuccessfulJobs</H3> |
---|
| 346 | <PRE> |
---|
| 347 | public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</A><<A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/Job.html" title="class in org.apache.hadoop.mapred.jobcontrol">Job</A>> <B>getSuccessfulJobs</B>()</PRE> |
---|
| 348 | <DL> |
---|
| 349 | <DD><DL> |
---|
| 350 | </DL> |
---|
| 351 | </DD> |
---|
| 352 | <DD><DL> |
---|
| 353 | |
---|
| 354 | <DT><B>Returns:</B><DD>the jobs in the success state</DL> |
---|
| 355 | </DD> |
---|
| 356 | </DL> |
---|
| 357 | <HR> |
---|
| 358 | |
---|
| 359 | <A NAME="getFailedJobs()"><!-- --></A><H3> |
---|
| 360 | getFailedJobs</H3> |
---|
| 361 | <PRE> |
---|
| 362 | public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</A><<A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/Job.html" title="class in org.apache.hadoop.mapred.jobcontrol">Job</A>> <B>getFailedJobs</B>()</PRE> |
---|
| 363 | <DL> |
---|
| 364 | <DD><DL> |
---|
| 365 | </DL> |
---|
| 366 | </DD> |
---|
| 367 | <DD><DL> |
---|
| 368 | </DL> |
---|
| 369 | </DD> |
---|
| 370 | </DL> |
---|
| 371 | <HR> |
---|
| 372 | |
---|
| 373 | <A NAME="addJob(org.apache.hadoop.mapred.jobcontrol.Job)"><!-- --></A><H3> |
---|
| 374 | addJob</H3> |
---|
| 375 | <PRE> |
---|
| 376 | public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>addJob</B>(<A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/Job.html" title="class in org.apache.hadoop.mapred.jobcontrol">Job</A> aJob)</PRE> |
---|
| 377 | <DL> |
---|
| 378 | <DD>Add a new job. |
---|
| 379 | <P> |
---|
| 380 | <DD><DL> |
---|
| 381 | </DL> |
---|
| 382 | </DD> |
---|
| 383 | <DD><DL> |
---|
| 384 | <DT><B>Parameters:</B><DD><CODE>aJob</CODE> - the new job</DL> |
---|
| 385 | </DD> |
---|
| 386 | </DL> |
---|
| 387 | <HR> |
---|
| 388 | |
---|
| 389 | <A NAME="addJobs(java.util.Collection)"><!-- --></A><H3> |
---|
| 390 | addJobs</H3> |
---|
| 391 | <PRE> |
---|
| 392 | public void <B>addJobs</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A><<A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/Job.html" title="class in org.apache.hadoop.mapred.jobcontrol">Job</A>> jobs)</PRE> |
---|
| 393 | <DL> |
---|
| 394 | <DD>Add a collection of jobs |
---|
| 395 | <P> |
---|
| 396 | <DD><DL> |
---|
| 397 | </DL> |
---|
| 398 | </DD> |
---|
| 399 | <DD><DL> |
---|
| 400 | <DT><B>Parameters:</B><DD><CODE>jobs</CODE> - </DL> |
---|
| 401 | </DD> |
---|
| 402 | </DL> |
---|
| 403 | <HR> |
---|
| 404 | |
---|
| 405 | <A NAME="getState()"><!-- --></A><H3> |
---|
| 406 | getState</H3> |
---|
| 407 | <PRE> |
---|
| 408 | public int <B>getState</B>()</PRE> |
---|
| 409 | <DL> |
---|
| 410 | <DD><DL> |
---|
| 411 | </DL> |
---|
| 412 | </DD> |
---|
| 413 | <DD><DL> |
---|
| 414 | |
---|
| 415 | <DT><B>Returns:</B><DD>the thread state</DL> |
---|
| 416 | </DD> |
---|
| 417 | </DL> |
---|
| 418 | <HR> |
---|
| 419 | |
---|
| 420 | <A NAME="stop()"><!-- --></A><H3> |
---|
| 421 | stop</H3> |
---|
| 422 | <PRE> |
---|
| 423 | public void <B>stop</B>()</PRE> |
---|
| 424 | <DL> |
---|
| 425 | <DD>set the thread state to STOPPING so that the |
---|
| 426 | thread will stop when it wakes up. |
---|
| 427 | <P> |
---|
| 428 | <DD><DL> |
---|
| 429 | </DL> |
---|
| 430 | </DD> |
---|
| 431 | <DD><DL> |
---|
| 432 | </DL> |
---|
| 433 | </DD> |
---|
| 434 | </DL> |
---|
| 435 | <HR> |
---|
| 436 | |
---|
| 437 | <A NAME="suspend()"><!-- --></A><H3> |
---|
| 438 | suspend</H3> |
---|
| 439 | <PRE> |
---|
| 440 | public void <B>suspend</B>()</PRE> |
---|
| 441 | <DL> |
---|
| 442 | <DD>suspend the running thread |
---|
| 443 | <P> |
---|
| 444 | <DD><DL> |
---|
| 445 | </DL> |
---|
| 446 | </DD> |
---|
| 447 | <DD><DL> |
---|
| 448 | </DL> |
---|
| 449 | </DD> |
---|
| 450 | </DL> |
---|
| 451 | <HR> |
---|
| 452 | |
---|
| 453 | <A NAME="resume()"><!-- --></A><H3> |
---|
| 454 | resume</H3> |
---|
| 455 | <PRE> |
---|
| 456 | public void <B>resume</B>()</PRE> |
---|
| 457 | <DL> |
---|
| 458 | <DD>resume the suspended thread |
---|
| 459 | <P> |
---|
| 460 | <DD><DL> |
---|
| 461 | </DL> |
---|
| 462 | </DD> |
---|
| 463 | <DD><DL> |
---|
| 464 | </DL> |
---|
| 465 | </DD> |
---|
| 466 | </DL> |
---|
| 467 | <HR> |
---|
| 468 | |
---|
| 469 | <A NAME="allFinished()"><!-- --></A><H3> |
---|
| 470 | allFinished</H3> |
---|
| 471 | <PRE> |
---|
| 472 | public boolean <B>allFinished</B>()</PRE> |
---|
| 473 | <DL> |
---|
| 474 | <DD><DL> |
---|
| 475 | </DL> |
---|
| 476 | </DD> |
---|
| 477 | <DD><DL> |
---|
| 478 | </DL> |
---|
| 479 | </DD> |
---|
| 480 | </DL> |
---|
| 481 | <HR> |
---|
| 482 | |
---|
| 483 | <A NAME="run()"><!-- --></A><H3> |
---|
| 484 | run</H3> |
---|
| 485 | <PRE> |
---|
| 486 | public void <B>run</B>()</PRE> |
---|
| 487 | <DL> |
---|
| 488 | <DD>The main loop for the thread. |
---|
| 489 | The loop does the following: |
---|
| 490 | Check the states of the running jobs |
---|
| 491 | Update the states of waiting jobs |
---|
| 492 | Submit the jobs in ready state |
---|
| 493 | <P> |
---|
| 494 | <DD><DL> |
---|
| 495 | <DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Runnable.html?is-external=true#run()" title="class or interface in java.lang">run</A></CODE> in interface <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Runnable.html?is-external=true" title="class or interface in java.lang">Runnable</A></CODE></DL> |
---|
| 496 | </DD> |
---|
| 497 | <DD><DL> |
---|
| 498 | </DL> |
---|
| 499 | </DD> |
---|
| 500 | </DL> |
---|
| 501 | <!-- ========= END OF CLASS DATA ========= --> |
---|
| 502 | <HR> |
---|
| 503 | |
---|
| 504 | |
---|
| 505 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
| 506 | <A NAME="navbar_bottom"><!-- --></A> |
---|
| 507 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
| 508 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 509 | <TR> |
---|
| 510 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 511 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
| 512 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 513 | <TR ALIGN="center" VALIGN="top"> |
---|
| 514 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 515 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 516 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 517 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/JobControl.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 518 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 519 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 520 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 521 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 522 | </TR> |
---|
| 523 | </TABLE> |
---|
| 524 | </TD> |
---|
| 525 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 526 | </EM> |
---|
| 527 | </TD> |
---|
| 528 | </TR> |
---|
| 529 | |
---|
| 530 | <TR> |
---|
| 531 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 532 | <A HREF="../../../../../org/apache/hadoop/mapred/jobcontrol/Job.html" title="class in org.apache.hadoop.mapred.jobcontrol"><B>PREV CLASS</B></A> |
---|
| 533 | NEXT CLASS</FONT></TD> |
---|
| 534 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 535 | <A HREF="../../../../../index.html?org/apache/hadoop/mapred/jobcontrol/JobControl.html" target="_top"><B>FRAMES</B></A> |
---|
| 536 | <A HREF="JobControl.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 537 | <SCRIPT type="text/javascript"> |
---|
| 538 | <!-- |
---|
| 539 | if(window==top) { |
---|
| 540 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 541 | } |
---|
| 542 | //--> |
---|
| 543 | </SCRIPT> |
---|
| 544 | <NOSCRIPT> |
---|
| 545 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 546 | </NOSCRIPT> |
---|
| 547 | |
---|
| 548 | |
---|
| 549 | </FONT></TD> |
---|
| 550 | </TR> |
---|
| 551 | <TR> |
---|
| 552 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 553 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 554 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 555 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 556 | </TR> |
---|
| 557 | </TABLE> |
---|
| 558 | <A NAME="skip-navbar_bottom"></A> |
---|
| 559 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
| 560 | |
---|
| 561 | <HR> |
---|
| 562 | Copyright © 2009 The Apache Software Foundation |
---|
| 563 | </BODY> |
---|
| 564 | </HTML> |
---|