source: proiecte/HadoopJUnit/hadoop-0.20.1/docs/api/org/apache/hadoop/mapred/RunningJob.html @ 120

Last change on this file since 120 was 120, checked in by (none), 14 years ago

Added the mail files for the Hadoop JUNit Project

  • Property svn:executable set to *
File size: 31.0 KB
Line 
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:56 UTC 2009 -->
6<TITLE>
7RunningJob (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">
15function windowTitle()
16{
17    if (location.href.indexOf('is-external=true') == -1) {
18        parent.document.title="RunningJob (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>&nbsp;</TD>
41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/RunningJob.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</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&nbsp;<A HREF="../../../../org/apache/hadoop/mapred/Reporter.html" title="interface in org.apache.hadoop.mapred"><B>PREV CLASS</B></A>&nbsp;
59&nbsp;<A HREF="../../../../org/apache/hadoop/mapred/SequenceFileAsBinaryInputFormat.html" title="class in org.apache.hadoop.mapred"><B>NEXT CLASS</B></A></FONT></TD>
60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61  <A HREF="../../../../index.html?org/apache/hadoop/mapred/RunningJob.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="RunningJob.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
63&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
80<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
81DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<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">
91org.apache.hadoop.mapred</FONT>
92<BR>
93Interface RunningJob</H2>
94<HR>
95<DL>
96<DT><PRE>public interface <B>RunningJob</B></DL>
97</PRE>
98
99<P>
100<code>RunningJob</code> is the user-interface to query for details on a
101 running Map-Reduce job.
102 
103 <p>Clients can get hold of <code>RunningJob</code> via the <A HREF="../../../../org/apache/hadoop/mapred/JobClient.html" title="class in org.apache.hadoop.mapred"><CODE>JobClient</CODE></A>
104 and then query the running-job for details such as name, configuration,
105 progress etc.</p>
106<P>
107
108<P>
109<DL>
110<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/hadoop/mapred/JobClient.html" title="class in org.apache.hadoop.mapred"><CODE>JobClient</CODE></A></DL>
111<HR>
112
113<P>
114
115<!-- ========== METHOD SUMMARY =========== -->
116
117<A NAME="method_summary"><!-- --></A>
118<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
119<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
120<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
121<B>Method Summary</B></FONT></TH>
122</TR>
123<TR BGCOLOR="white" CLASS="TableRowColor">
124<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
125<CODE>&nbsp;float</CODE></FONT></TD>
126<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/RunningJob.html#cleanupProgress()">cleanupProgress</A></B>()</CODE>
127
128<BR>
129&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the <i>progress</i> of the job's cleanup-tasks, as a float between 0.0
130 and 1.0.</TD>
131</TR>
132<TR BGCOLOR="white" CLASS="TableRowColor">
133<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
134<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/mapred/Counters.html" title="class in org.apache.hadoop.mapred">Counters</A></CODE></FONT></TD>
135<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/RunningJob.html#getCounters()">getCounters</A></B>()</CODE>
136
137<BR>
138&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the counters for this job.</TD>
139</TR>
140<TR BGCOLOR="white" CLASS="TableRowColor">
141<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
142<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/mapred/JobID.html" title="class in org.apache.hadoop.mapred">JobID</A></CODE></FONT></TD>
143<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/RunningJob.html#getID()">getID</A></B>()</CODE>
144
145<BR>
146&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the job identifier.</TD>
147</TR>
148<TR BGCOLOR="white" CLASS="TableRowColor">
149<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
150<CODE>&nbsp;<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>
151<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/RunningJob.html#getJobFile()">getJobFile</A></B>()</CODE>
152
153<BR>
154&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the path of the submitted job configuration.</TD>
155</TR>
156<TR BGCOLOR="white" CLASS="TableRowColor">
157<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
158<CODE>&nbsp;<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>
159<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/RunningJob.html#getJobID()">getJobID</A></B>()</CODE>
160
161<BR>
162&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>This method is deprecated and will be removed. Applications should
163 rather use <A HREF="../../../../org/apache/hadoop/mapred/RunningJob.html#getID()"><CODE>getID()</CODE></A>.</I></TD>
164</TR>
165<TR BGCOLOR="white" CLASS="TableRowColor">
166<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
167<CODE>&nbsp;<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>
168<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/RunningJob.html#getJobName()">getJobName</A></B>()</CODE>
169
170<BR>
171&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the name of the job.</TD>
172</TR>
173<TR BGCOLOR="white" CLASS="TableRowColor">
174<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
175<CODE>&nbsp;int</CODE></FONT></TD>
176<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/RunningJob.html#getJobState()">getJobState</A></B>()</CODE>
177
178<BR>
179&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current state of the Job.</TD>
180</TR>
181<TR BGCOLOR="white" CLASS="TableRowColor">
182<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
183<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/mapred/TaskCompletionEvent.html" title="class in org.apache.hadoop.mapred">TaskCompletionEvent</A>[]</CODE></FONT></TD>
184<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/RunningJob.html#getTaskCompletionEvents(int)">getTaskCompletionEvents</A></B>(int&nbsp;startFrom)</CODE>
185
186<BR>
187&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get events indicating completion (success/failure) of component tasks.</TD>
188</TR>
189<TR BGCOLOR="white" CLASS="TableRowColor">
190<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
191<CODE>&nbsp;<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>
192<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/RunningJob.html#getTaskDiagnostics(org.apache.hadoop.mapred.TaskAttemptID)">getTaskDiagnostics</A></B>(<A HREF="../../../../org/apache/hadoop/mapred/TaskAttemptID.html" title="class in org.apache.hadoop.mapred">TaskAttemptID</A>&nbsp;taskid)</CODE>
193
194<BR>
195&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the diagnostic messages for a given task attempt.</TD>
196</TR>
197<TR BGCOLOR="white" CLASS="TableRowColor">
198<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
199<CODE>&nbsp;<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>
200<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/RunningJob.html#getTrackingURL()">getTrackingURL</A></B>()</CODE>
201
202<BR>
203&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the URL where some job progress information will be displayed.</TD>
204</TR>
205<TR BGCOLOR="white" CLASS="TableRowColor">
206<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
207<CODE>&nbsp;boolean</CODE></FONT></TD>
208<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/RunningJob.html#isComplete()">isComplete</A></B>()</CODE>
209
210<BR>
211&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check if the job is finished or not.</TD>
212</TR>
213<TR BGCOLOR="white" CLASS="TableRowColor">
214<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
215<CODE>&nbsp;boolean</CODE></FONT></TD>
216<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/RunningJob.html#isSuccessful()">isSuccessful</A></B>()</CODE>
217
218<BR>
219&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check if the job completed successfully.</TD>
220</TR>
221<TR BGCOLOR="white" CLASS="TableRowColor">
222<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
223<CODE>&nbsp;void</CODE></FONT></TD>
224<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/RunningJob.html#killJob()">killJob</A></B>()</CODE>
225
226<BR>
227&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kill the running job.</TD>
228</TR>
229<TR BGCOLOR="white" CLASS="TableRowColor">
230<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
231<CODE>&nbsp;void</CODE></FONT></TD>
232<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/RunningJob.html#killTask(java.lang.String, boolean)">killTask</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>&nbsp;taskId,
233         boolean&nbsp;shouldFail)</CODE>
234
235<BR>
236&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Applications should rather use <A HREF="../../../../org/apache/hadoop/mapred/RunningJob.html#killTask(org.apache.hadoop.mapred.TaskAttemptID, boolean)"><CODE>killTask(TaskAttemptID, boolean)</CODE></A></I></TD>
237</TR>
238<TR BGCOLOR="white" CLASS="TableRowColor">
239<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
240<CODE>&nbsp;void</CODE></FONT></TD>
241<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/RunningJob.html#killTask(org.apache.hadoop.mapred.TaskAttemptID, boolean)">killTask</A></B>(<A HREF="../../../../org/apache/hadoop/mapred/TaskAttemptID.html" title="class in org.apache.hadoop.mapred">TaskAttemptID</A>&nbsp;taskId,
242         boolean&nbsp;shouldFail)</CODE>
243
244<BR>
245&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kill indicated task attempt.</TD>
246</TR>
247<TR BGCOLOR="white" CLASS="TableRowColor">
248<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
249<CODE>&nbsp;float</CODE></FONT></TD>
250<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/RunningJob.html#mapProgress()">mapProgress</A></B>()</CODE>
251
252<BR>
253&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the <i>progress</i> of the job's map-tasks, as a float between 0.0
254 and 1.0.</TD>
255</TR>
256<TR BGCOLOR="white" CLASS="TableRowColor">
257<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
258<CODE>&nbsp;float</CODE></FONT></TD>
259<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/RunningJob.html#reduceProgress()">reduceProgress</A></B>()</CODE>
260
261<BR>
262&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
263 and 1.0.</TD>
264</TR>
265<TR BGCOLOR="white" CLASS="TableRowColor">
266<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
267<CODE>&nbsp;void</CODE></FONT></TD>
268<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/RunningJob.html#setJobPriority(java.lang.String)">setJobPriority</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>&nbsp;priority)</CODE>
269
270<BR>
271&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the priority of a running job.</TD>
272</TR>
273<TR BGCOLOR="white" CLASS="TableRowColor">
274<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
275<CODE>&nbsp;float</CODE></FONT></TD>
276<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/RunningJob.html#setupProgress()">setupProgress</A></B>()</CODE>
277
278<BR>
279&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the <i>progress</i> of the job's setup-tasks, as a float between 0.0
280 and 1.0.</TD>
281</TR>
282<TR BGCOLOR="white" CLASS="TableRowColor">
283<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
284<CODE>&nbsp;void</CODE></FONT></TD>
285<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/RunningJob.html#waitForCompletion()">waitForCompletion</A></B>()</CODE>
286
287<BR>
288&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blocks until the job is complete.</TD>
289</TR>
290</TABLE>
291&nbsp;
292<P>
293
294<!-- ============ METHOD DETAIL ========== -->
295
296<A NAME="method_detail"><!-- --></A>
297<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
298<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
299<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
300<B>Method Detail</B></FONT></TH>
301</TR>
302</TABLE>
303
304<A NAME="getID()"><!-- --></A><H3>
305getID</H3>
306<PRE>
307<A HREF="../../../../org/apache/hadoop/mapred/JobID.html" title="class in org.apache.hadoop.mapred">JobID</A> <B>getID</B>()</PRE>
308<DL>
309<DD>Get the job identifier.
310<P>
311<DD><DL>
312
313<DT><B>Returns:</B><DD>the job identifier.</DL>
314</DD>
315</DL>
316<HR>
317
318<A NAME="getJobID()"><!-- --></A><H3>
319getJobID</H3>
320<PRE>
321<FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A>
322</FONT><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>getJobID</B>()</PRE>
323<DL>
324<DD><B>Deprecated.</B>&nbsp;<I>This method is deprecated and will be removed. Applications should
325 rather use <A HREF="../../../../org/apache/hadoop/mapred/RunningJob.html#getID()"><CODE>getID()</CODE></A>.</I>
326<P>
327<DD><DL>
328</DL>
329</DD>
330</DL>
331<HR>
332
333<A NAME="getJobName()"><!-- --></A><H3>
334getJobName</H3>
335<PRE>
336<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>getJobName</B>()</PRE>
337<DL>
338<DD>Get the name of the job.
339<P>
340<DD><DL>
341
342<DT><B>Returns:</B><DD>the name of the job.</DL>
343</DD>
344</DL>
345<HR>
346
347<A NAME="getJobFile()"><!-- --></A><H3>
348getJobFile</H3>
349<PRE>
350<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>getJobFile</B>()</PRE>
351<DL>
352<DD>Get the path of the submitted job configuration.
353<P>
354<DD><DL>
355
356<DT><B>Returns:</B><DD>the path of the submitted job configuration.</DL>
357</DD>
358</DL>
359<HR>
360
361<A NAME="getTrackingURL()"><!-- --></A><H3>
362getTrackingURL</H3>
363<PRE>
364<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>getTrackingURL</B>()</PRE>
365<DL>
366<DD>Get the URL where some job progress information will be displayed.
367<P>
368<DD><DL>
369
370<DT><B>Returns:</B><DD>the URL where some job progress information will be displayed.</DL>
371</DD>
372</DL>
373<HR>
374
375<A NAME="mapProgress()"><!-- --></A><H3>
376mapProgress</H3>
377<PRE>
378float <B>mapProgress</B>()
379                  throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
380<DL>
381<DD>Get the <i>progress</i> of the job's map-tasks, as a float between 0.0
382 and 1.0.  When all map tasks have completed, the function returns 1.0.
383<P>
384<DD><DL>
385
386<DT><B>Returns:</B><DD>the progress of the job's map-tasks.
387<DT><B>Throws:</B>
388<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
389</DD>
390</DL>
391<HR>
392
393<A NAME="reduceProgress()"><!-- --></A><H3>
394reduceProgress</H3>
395<PRE>
396float <B>reduceProgress</B>()
397                     throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
398<DL>
399<DD>Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
400 and 1.0.  When all reduce tasks have completed, the function returns 1.0.
401<P>
402<DD><DL>
403
404<DT><B>Returns:</B><DD>the progress of the job's reduce-tasks.
405<DT><B>Throws:</B>
406<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
407</DD>
408</DL>
409<HR>
410
411<A NAME="cleanupProgress()"><!-- --></A><H3>
412cleanupProgress</H3>
413<PRE>
414float <B>cleanupProgress</B>()
415                      throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
416<DL>
417<DD>Get the <i>progress</i> of the job's cleanup-tasks, as a float between 0.0
418 and 1.0.  When all cleanup tasks have completed, the function returns 1.0.
419<P>
420<DD><DL>
421
422<DT><B>Returns:</B><DD>the progress of the job's cleanup-tasks.
423<DT><B>Throws:</B>
424<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
425</DD>
426</DL>
427<HR>
428
429<A NAME="setupProgress()"><!-- --></A><H3>
430setupProgress</H3>
431<PRE>
432float <B>setupProgress</B>()
433                    throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
434<DL>
435<DD>Get the <i>progress</i> of the job's setup-tasks, as a float between 0.0
436 and 1.0.  When all setup tasks have completed, the function returns 1.0.
437<P>
438<DD><DL>
439
440<DT><B>Returns:</B><DD>the progress of the job's setup-tasks.
441<DT><B>Throws:</B>
442<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
443</DD>
444</DL>
445<HR>
446
447<A NAME="isComplete()"><!-- --></A><H3>
448isComplete</H3>
449<PRE>
450boolean <B>isComplete</B>()
451                   throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
452<DL>
453<DD>Check if the job is finished or not.
454 This is a non-blocking call.
455<P>
456<DD><DL>
457
458<DT><B>Returns:</B><DD><code>true</code> if the job is complete, else <code>false</code>.
459<DT><B>Throws:</B>
460<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
461</DD>
462</DL>
463<HR>
464
465<A NAME="isSuccessful()"><!-- --></A><H3>
466isSuccessful</H3>
467<PRE>
468boolean <B>isSuccessful</B>()
469                     throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
470<DL>
471<DD>Check if the job completed successfully.
472<P>
473<DD><DL>
474
475<DT><B>Returns:</B><DD><code>true</code> if the job succeeded, else <code>false</code>.
476<DT><B>Throws:</B>
477<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
478</DD>
479</DL>
480<HR>
481
482<A NAME="waitForCompletion()"><!-- --></A><H3>
483waitForCompletion</H3>
484<PRE>
485void <B>waitForCompletion</B>()
486                       throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
487<DL>
488<DD>Blocks until the job is complete.
489<P>
490<DD><DL>
491
492<DT><B>Throws:</B>
493<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
494</DD>
495</DL>
496<HR>
497
498<A NAME="getJobState()"><!-- --></A><H3>
499getJobState</H3>
500<PRE>
501int <B>getJobState</B>()
502                throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
503<DL>
504<DD>Returns the current state of the Job.
505 <A HREF="../../../../org/apache/hadoop/mapred/JobStatus.html" title="class in org.apache.hadoop.mapred"><CODE>JobStatus</CODE></A>
506<P>
507<DD><DL>
508
509<DT><B>Throws:</B>
510<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
511</DD>
512</DL>
513<HR>
514
515<A NAME="killJob()"><!-- --></A><H3>
516killJob</H3>
517<PRE>
518void <B>killJob</B>()
519             throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
520<DL>
521<DD>Kill the running job.  Blocks until all job tasks have been
522 killed as well.  If the job is no longer running, it simply returns.
523<P>
524<DD><DL>
525
526<DT><B>Throws:</B>
527<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
528</DD>
529</DL>
530<HR>
531
532<A NAME="setJobPriority(java.lang.String)"><!-- --></A><H3>
533setJobPriority</H3>
534<PRE>
535void <B>setJobPriority</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>&nbsp;priority)
536                    throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
537<DL>
538<DD>Set the priority of a running job.
539<P>
540<DD><DL>
541<DT><B>Parameters:</B><DD><CODE>priority</CODE> - the new priority for the job.
542<DT><B>Throws:</B>
543<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
544</DD>
545</DL>
546<HR>
547
548<A NAME="getTaskCompletionEvents(int)"><!-- --></A><H3>
549getTaskCompletionEvents</H3>
550<PRE>
551<A HREF="../../../../org/apache/hadoop/mapred/TaskCompletionEvent.html" title="class in org.apache.hadoop.mapred">TaskCompletionEvent</A>[] <B>getTaskCompletionEvents</B>(int&nbsp;startFrom)
552                                              throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
553<DL>
554<DD>Get events indicating completion (success/failure) of component tasks.
555<P>
556<DD><DL>
557<DT><B>Parameters:</B><DD><CODE>startFrom</CODE> - index to start fetching events from
558<DT><B>Returns:</B><DD>an array of <A HREF="../../../../org/apache/hadoop/mapred/TaskCompletionEvent.html" title="class in org.apache.hadoop.mapred"><CODE>TaskCompletionEvent</CODE></A>s
559<DT><B>Throws:</B>
560<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
561</DD>
562</DL>
563<HR>
564
565<A NAME="killTask(org.apache.hadoop.mapred.TaskAttemptID, boolean)"><!-- --></A><H3>
566killTask</H3>
567<PRE>
568void <B>killTask</B>(<A HREF="../../../../org/apache/hadoop/mapred/TaskAttemptID.html" title="class in org.apache.hadoop.mapred">TaskAttemptID</A>&nbsp;taskId,
569              boolean&nbsp;shouldFail)
570              throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
571<DL>
572<DD>Kill indicated task attempt.
573<P>
574<DD><DL>
575<DT><B>Parameters:</B><DD><CODE>taskId</CODE> - the id of the task to be terminated.<DD><CODE>shouldFail</CODE> - if true the task is failed and added to failed tasks
576                   list, otherwise it is just killed, w/o affecting
577                   job failure status.
578<DT><B>Throws:</B>
579<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
580</DD>
581</DL>
582<HR>
583
584<A NAME="killTask(java.lang.String, boolean)"><!-- --></A><H3>
585killTask</H3>
586<PRE>
587<FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A>
588</FONT>void <B>killTask</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>&nbsp;taskId,
589                         boolean&nbsp;shouldFail)
590              throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
591<DL>
592<DD><B>Deprecated.</B>&nbsp;<I>Applications should rather use <A HREF="../../../../org/apache/hadoop/mapred/RunningJob.html#killTask(org.apache.hadoop.mapred.TaskAttemptID, boolean)"><CODE>killTask(TaskAttemptID, boolean)</CODE></A></I>
593<P>
594<DD><DL>
595
596<DT><B>Throws:</B>
597<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
598</DD>
599</DL>
600<HR>
601
602<A NAME="getCounters()"><!-- --></A><H3>
603getCounters</H3>
604<PRE>
605<A HREF="../../../../org/apache/hadoop/mapred/Counters.html" title="class in org.apache.hadoop.mapred">Counters</A> <B>getCounters</B>()
606                     throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
607<DL>
608<DD>Gets the counters for this job.
609<P>
610<DD><DL>
611
612<DT><B>Returns:</B><DD>the counters for this job.
613<DT><B>Throws:</B>
614<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
615</DD>
616</DL>
617<HR>
618
619<A NAME="getTaskDiagnostics(org.apache.hadoop.mapred.TaskAttemptID)"><!-- --></A><H3>
620getTaskDiagnostics</H3>
621<PRE>
622<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>getTaskDiagnostics</B>(<A HREF="../../../../org/apache/hadoop/mapred/TaskAttemptID.html" title="class in org.apache.hadoop.mapred">TaskAttemptID</A>&nbsp;taskid)
623                            throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
624<DL>
625<DD>Gets the diagnostic messages for a given task attempt.
626<P>
627<DD><DL>
628<DT><B>Parameters:</B><DD><CODE>taskid</CODE> -
629<DT><B>Returns:</B><DD>the list of diagnostic messages for the task
630<DT><B>Throws:</B>
631<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
632</DD>
633</DL>
634<!-- ========= END OF CLASS DATA ========= -->
635<HR>
636
637
638<!-- ======= START OF BOTTOM NAVBAR ====== -->
639<A NAME="navbar_bottom"><!-- --></A>
640<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
641<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
642<TR>
643<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
644<A NAME="navbar_bottom_firstrow"><!-- --></A>
645<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
646  <TR ALIGN="center" VALIGN="top">
647  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
648  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
649  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
650  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/RunningJob.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
651  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
652  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
653  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
654  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
655  </TR>
656</TABLE>
657</TD>
658<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
659</EM>
660</TD>
661</TR>
662
663<TR>
664<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
665&nbsp;<A HREF="../../../../org/apache/hadoop/mapred/Reporter.html" title="interface in org.apache.hadoop.mapred"><B>PREV CLASS</B></A>&nbsp;
666&nbsp;<A HREF="../../../../org/apache/hadoop/mapred/SequenceFileAsBinaryInputFormat.html" title="class in org.apache.hadoop.mapred"><B>NEXT CLASS</B></A></FONT></TD>
667<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
668  <A HREF="../../../../index.html?org/apache/hadoop/mapred/RunningJob.html" target="_top"><B>FRAMES</B></A>  &nbsp;
669&nbsp;<A HREF="RunningJob.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
670&nbsp;<SCRIPT type="text/javascript">
671  <!--
672  if(window==top) {
673    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
674  }
675  //-->
676</SCRIPT>
677<NOSCRIPT>
678  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
679</NOSCRIPT>
680
681
682</FONT></TD>
683</TR>
684<TR>
685<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
686  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
687<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
688DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
689</TR>
690</TABLE>
691<A NAME="skip-navbar_bottom"></A>
692<!-- ======== END OF BOTTOM NAVBAR ======= -->
693
694<HR>
695Copyright &copy; 2009 The Apache Software Foundation
696</BODY>
697</HTML>
Note: See TracBrowser for help on using the repository browser.