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> |
---|
7 | JobHistory.Task (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="JobHistory.Task (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/JobHistory.Task.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/JobHistory.ReduceAttempt.html" title="class in org.apache.hadoop.mapred"><B>PREV CLASS</B></A> |
---|
59 | <A HREF="../../../../org/apache/hadoop/mapred/JobHistory.TaskAttempt.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/JobHistory.Task.html" target="_top"><B>FRAMES</B></A> |
---|
62 | <A HREF="JobHistory.Task.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</FONT> |
---|
92 | <BR> |
---|
93 | Class JobHistory.Task</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.JobHistory.Task</B> |
---|
97 | </PRE> |
---|
98 | <DL> |
---|
99 | <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.TaskAttempt.html" title="class in org.apache.hadoop.mapred">JobHistory.TaskAttempt</A></DD> |
---|
100 | </DL> |
---|
101 | <DL> |
---|
102 | <DT><B>Enclosing class:</B><DD><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.html" title="class in org.apache.hadoop.mapred">JobHistory</A></DD> |
---|
103 | </DL> |
---|
104 | <HR> |
---|
105 | <DL> |
---|
106 | <DT><PRE>public static class <B>JobHistory.Task</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></DL> |
---|
107 | </PRE> |
---|
108 | |
---|
109 | <P> |
---|
110 | Helper class for logging or reading back events related to Task's start, finish or failure. |
---|
111 | All events logged by this class are logged in a separate file per job in |
---|
112 | job tracker history. These events map to TIPs in jobtracker. |
---|
113 | <P> |
---|
114 | |
---|
115 | <P> |
---|
116 | <HR> |
---|
117 | |
---|
118 | <P> |
---|
119 | |
---|
120 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
121 | |
---|
122 | <A NAME="constructor_summary"><!-- --></A> |
---|
123 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
124 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
125 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
126 | <B>Constructor Summary</B></FONT></TH> |
---|
127 | </TR> |
---|
128 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
129 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Task.html#JobHistory.Task()">JobHistory.Task</A></B>()</CODE> |
---|
130 | |
---|
131 | <BR> |
---|
132 | </TD> |
---|
133 | </TR> |
---|
134 | </TABLE> |
---|
135 | |
---|
136 | <!-- ========== METHOD SUMMARY =========== --> |
---|
137 | |
---|
138 | <A NAME="method_summary"><!-- --></A> |
---|
139 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
140 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
141 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
142 | <B>Method Summary</B></FONT></TH> |
---|
143 | </TR> |
---|
144 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
145 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
146 | <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> |
---|
147 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Task.html#get(org.apache.hadoop.mapred.JobHistory.Keys)">get</A></B>(<A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Keys.html" title="enum in org.apache.hadoop.mapred">JobHistory.Keys</A> k)</CODE> |
---|
148 | |
---|
149 | <BR> |
---|
150 | Get 'String' value for given key.</TD> |
---|
151 | </TR> |
---|
152 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
153 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
154 | <CODE> int</CODE></FONT></TD> |
---|
155 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Task.html#getInt(org.apache.hadoop.mapred.JobHistory.Keys)">getInt</A></B>(<A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Keys.html" title="enum in org.apache.hadoop.mapred">JobHistory.Keys</A> k)</CODE> |
---|
156 | |
---|
157 | <BR> |
---|
158 | Convert value from history to int and return.</TD> |
---|
159 | </TR> |
---|
160 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
161 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
162 | <CODE> long</CODE></FONT></TD> |
---|
163 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Task.html#getLong(org.apache.hadoop.mapred.JobHistory.Keys)">getLong</A></B>(<A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Keys.html" title="enum in org.apache.hadoop.mapred">JobHistory.Keys</A> k)</CODE> |
---|
164 | |
---|
165 | <BR> |
---|
166 | Convert value from history to int and return.</TD> |
---|
167 | </TR> |
---|
168 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
169 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
170 | <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<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>,<A HREF="../../../../org/apache/hadoop/mapred/JobHistory.TaskAttempt.html" title="class in org.apache.hadoop.mapred">JobHistory.TaskAttempt</A>></CODE></FONT></TD> |
---|
171 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Task.html#getTaskAttempts()">getTaskAttempts</A></B>()</CODE> |
---|
172 | |
---|
173 | <BR> |
---|
174 | Returns all task attempts for this task.</TD> |
---|
175 | </TR> |
---|
176 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
177 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
178 | <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Keys.html" title="enum in org.apache.hadoop.mapred">JobHistory.Keys</A>,<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> |
---|
179 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Task.html#getValues()">getValues</A></B>()</CODE> |
---|
180 | |
---|
181 | <BR> |
---|
182 | Returns Map containing all key-values.</TD> |
---|
183 | </TR> |
---|
184 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
185 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
186 | <CODE> void</CODE></FONT></TD> |
---|
187 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Task.html#handle(java.util.Map)">handle</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Keys.html" title="enum in org.apache.hadoop.mapred">JobHistory.Keys</A>,<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>> values)</CODE> |
---|
188 | |
---|
189 | <BR> |
---|
190 | Reads values back from the history, input is same Map as passed to Listener by parseHistory().</TD> |
---|
191 | </TR> |
---|
192 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
193 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
194 | <CODE>static void</CODE></FONT></TD> |
---|
195 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Task.html#logFailed(org.apache.hadoop.mapred.TaskID, java.lang.String, long, java.lang.String)">logFailed</A></B>(<A HREF="../../../../org/apache/hadoop/mapred/TaskID.html" title="class in org.apache.hadoop.mapred">TaskID</A> taskId, |
---|
196 | <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> taskType, |
---|
197 | long time, |
---|
198 | <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> error)</CODE> |
---|
199 | |
---|
200 | <BR> |
---|
201 | Log job failed event.</TD> |
---|
202 | </TR> |
---|
203 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
204 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
205 | <CODE>static void</CODE></FONT></TD> |
---|
206 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Task.html#logFailed(org.apache.hadoop.mapred.TaskID, java.lang.String, long, java.lang.String, org.apache.hadoop.mapred.TaskAttemptID)">logFailed</A></B>(<A HREF="../../../../org/apache/hadoop/mapred/TaskID.html" title="class in org.apache.hadoop.mapred">TaskID</A> taskId, |
---|
207 | <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> taskType, |
---|
208 | long time, |
---|
209 | <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> error, |
---|
210 | <A HREF="../../../../org/apache/hadoop/mapred/TaskAttemptID.html" title="class in org.apache.hadoop.mapred">TaskAttemptID</A> failedDueToAttempt)</CODE> |
---|
211 | |
---|
212 | <BR> |
---|
213 | </TD> |
---|
214 | </TR> |
---|
215 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
216 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
217 | <CODE>static void</CODE></FONT></TD> |
---|
218 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Task.html#logFinished(org.apache.hadoop.mapred.TaskID, java.lang.String, long, org.apache.hadoop.mapred.Counters)">logFinished</A></B>(<A HREF="../../../../org/apache/hadoop/mapred/TaskID.html" title="class in org.apache.hadoop.mapred">TaskID</A> taskId, |
---|
219 | <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> taskType, |
---|
220 | long finishTime, |
---|
221 | <A HREF="../../../../org/apache/hadoop/mapred/Counters.html" title="class in org.apache.hadoop.mapred">Counters</A> counters)</CODE> |
---|
222 | |
---|
223 | <BR> |
---|
224 | Log finish time of task.</TD> |
---|
225 | </TR> |
---|
226 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
227 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
228 | <CODE>static void</CODE></FONT></TD> |
---|
229 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Task.html#logStarted(org.apache.hadoop.mapred.TaskID, java.lang.String, long, java.lang.String)">logStarted</A></B>(<A HREF="../../../../org/apache/hadoop/mapred/TaskID.html" title="class in org.apache.hadoop.mapred">TaskID</A> taskId, |
---|
230 | <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> taskType, |
---|
231 | long startTime, |
---|
232 | <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> splitLocations)</CODE> |
---|
233 | |
---|
234 | <BR> |
---|
235 | Log start time of task (TIP).</TD> |
---|
236 | </TR> |
---|
237 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
238 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
239 | <CODE>static void</CODE></FONT></TD> |
---|
240 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Task.html#logUpdates(org.apache.hadoop.mapred.TaskID, long)">logUpdates</A></B>(<A HREF="../../../../org/apache/hadoop/mapred/TaskID.html" title="class in org.apache.hadoop.mapred">TaskID</A> taskId, |
---|
241 | long finishTime)</CODE> |
---|
242 | |
---|
243 | <BR> |
---|
244 | Update the finish time of task.</TD> |
---|
245 | </TR> |
---|
246 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
247 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
248 | <CODE> void</CODE></FONT></TD> |
---|
249 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Task.html#set(org.apache.hadoop.mapred.JobHistory.Keys, java.lang.String)">set</A></B>(<A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Keys.html" title="enum in org.apache.hadoop.mapred">JobHistory.Keys</A> k, |
---|
250 | <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> s)</CODE> |
---|
251 | |
---|
252 | <BR> |
---|
253 | Set value for the key.</TD> |
---|
254 | </TR> |
---|
255 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
256 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
257 | <CODE> void</CODE></FONT></TD> |
---|
258 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Task.html#set(java.util.Map)">set</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Keys.html" title="enum in org.apache.hadoop.mapred">JobHistory.Keys</A>,<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>> m)</CODE> |
---|
259 | |
---|
260 | <BR> |
---|
261 | Adds all values in the Map argument to its own values.</TD> |
---|
262 | </TR> |
---|
263 | </TABLE> |
---|
264 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
265 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
266 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
267 | <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> |
---|
268 | </TR> |
---|
269 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
270 | <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> |
---|
271 | </TR> |
---|
272 | </TABLE> |
---|
273 | |
---|
274 | <P> |
---|
275 | |
---|
276 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
277 | |
---|
278 | <A NAME="constructor_detail"><!-- --></A> |
---|
279 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
280 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
281 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
282 | <B>Constructor Detail</B></FONT></TH> |
---|
283 | </TR> |
---|
284 | </TABLE> |
---|
285 | |
---|
286 | <A NAME="JobHistory.Task()"><!-- --></A><H3> |
---|
287 | JobHistory.Task</H3> |
---|
288 | <PRE> |
---|
289 | public <B>JobHistory.Task</B>()</PRE> |
---|
290 | <DL> |
---|
291 | </DL> |
---|
292 | |
---|
293 | <!-- ============ METHOD DETAIL ========== --> |
---|
294 | |
---|
295 | <A NAME="method_detail"><!-- --></A> |
---|
296 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
297 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
298 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
299 | <B>Method Detail</B></FONT></TH> |
---|
300 | </TR> |
---|
301 | </TABLE> |
---|
302 | |
---|
303 | <A NAME="logStarted(org.apache.hadoop.mapred.TaskID, java.lang.String, long, java.lang.String)"><!-- --></A><H3> |
---|
304 | logStarted</H3> |
---|
305 | <PRE> |
---|
306 | public static void <B>logStarted</B>(<A HREF="../../../../org/apache/hadoop/mapred/TaskID.html" title="class in org.apache.hadoop.mapred">TaskID</A> taskId, |
---|
307 | <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> taskType, |
---|
308 | long startTime, |
---|
309 | <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> splitLocations)</PRE> |
---|
310 | <DL> |
---|
311 | <DD>Log start time of task (TIP). |
---|
312 | <P> |
---|
313 | <DD><DL> |
---|
314 | <DT><B>Parameters:</B><DD><CODE>taskId</CODE> - task id<DD><CODE>taskType</CODE> - MAP or REDUCE<DD><CODE>startTime</CODE> - startTime of tip.</DL> |
---|
315 | </DD> |
---|
316 | </DL> |
---|
317 | <HR> |
---|
318 | |
---|
319 | <A NAME="logFinished(org.apache.hadoop.mapred.TaskID, java.lang.String, long, org.apache.hadoop.mapred.Counters)"><!-- --></A><H3> |
---|
320 | logFinished</H3> |
---|
321 | <PRE> |
---|
322 | public static void <B>logFinished</B>(<A HREF="../../../../org/apache/hadoop/mapred/TaskID.html" title="class in org.apache.hadoop.mapred">TaskID</A> taskId, |
---|
323 | <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> taskType, |
---|
324 | long finishTime, |
---|
325 | <A HREF="../../../../org/apache/hadoop/mapred/Counters.html" title="class in org.apache.hadoop.mapred">Counters</A> counters)</PRE> |
---|
326 | <DL> |
---|
327 | <DD>Log finish time of task. |
---|
328 | <P> |
---|
329 | <DD><DL> |
---|
330 | <DT><B>Parameters:</B><DD><CODE>taskId</CODE> - task id<DD><CODE>taskType</CODE> - MAP or REDUCE<DD><CODE>finishTime</CODE> - finish timeof task in ms</DL> |
---|
331 | </DD> |
---|
332 | </DL> |
---|
333 | <HR> |
---|
334 | |
---|
335 | <A NAME="logUpdates(org.apache.hadoop.mapred.TaskID, long)"><!-- --></A><H3> |
---|
336 | logUpdates</H3> |
---|
337 | <PRE> |
---|
338 | public static void <B>logUpdates</B>(<A HREF="../../../../org/apache/hadoop/mapred/TaskID.html" title="class in org.apache.hadoop.mapred">TaskID</A> taskId, |
---|
339 | long finishTime)</PRE> |
---|
340 | <DL> |
---|
341 | <DD>Update the finish time of task. |
---|
342 | <P> |
---|
343 | <DD><DL> |
---|
344 | <DT><B>Parameters:</B><DD><CODE>taskId</CODE> - task id<DD><CODE>finishTime</CODE> - finish time of task in ms</DL> |
---|
345 | </DD> |
---|
346 | </DL> |
---|
347 | <HR> |
---|
348 | |
---|
349 | <A NAME="logFailed(org.apache.hadoop.mapred.TaskID, java.lang.String, long, java.lang.String)"><!-- --></A><H3> |
---|
350 | logFailed</H3> |
---|
351 | <PRE> |
---|
352 | public static void <B>logFailed</B>(<A HREF="../../../../org/apache/hadoop/mapred/TaskID.html" title="class in org.apache.hadoop.mapred">TaskID</A> taskId, |
---|
353 | <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> taskType, |
---|
354 | long time, |
---|
355 | <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> error)</PRE> |
---|
356 | <DL> |
---|
357 | <DD>Log job failed event. |
---|
358 | <P> |
---|
359 | <DD><DL> |
---|
360 | <DT><B>Parameters:</B><DD><CODE>taskId</CODE> - task id<DD><CODE>taskType</CODE> - MAP or REDUCE.<DD><CODE>time</CODE> - timestamp when job failed detected.<DD><CODE>error</CODE> - error message for failure.</DL> |
---|
361 | </DD> |
---|
362 | </DL> |
---|
363 | <HR> |
---|
364 | |
---|
365 | <A NAME="logFailed(org.apache.hadoop.mapred.TaskID, java.lang.String, long, java.lang.String, org.apache.hadoop.mapred.TaskAttemptID)"><!-- --></A><H3> |
---|
366 | logFailed</H3> |
---|
367 | <PRE> |
---|
368 | public static void <B>logFailed</B>(<A HREF="../../../../org/apache/hadoop/mapred/TaskID.html" title="class in org.apache.hadoop.mapred">TaskID</A> taskId, |
---|
369 | <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> taskType, |
---|
370 | long time, |
---|
371 | <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> error, |
---|
372 | <A HREF="../../../../org/apache/hadoop/mapred/TaskAttemptID.html" title="class in org.apache.hadoop.mapred">TaskAttemptID</A> failedDueToAttempt)</PRE> |
---|
373 | <DL> |
---|
374 | <DD><DL> |
---|
375 | <DT><B>Parameters:</B><DD><CODE>failedDueToAttempt</CODE> - The attempt that caused the failure, if any</DL> |
---|
376 | </DD> |
---|
377 | </DL> |
---|
378 | <HR> |
---|
379 | |
---|
380 | <A NAME="getTaskAttempts()"><!-- --></A><H3> |
---|
381 | getTaskAttempts</H3> |
---|
382 | <PRE> |
---|
383 | public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<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>,<A HREF="../../../../org/apache/hadoop/mapred/JobHistory.TaskAttempt.html" title="class in org.apache.hadoop.mapred">JobHistory.TaskAttempt</A>> <B>getTaskAttempts</B>()</PRE> |
---|
384 | <DL> |
---|
385 | <DD>Returns all task attempts for this task. <task attempt id - TaskAttempt> |
---|
386 | <P> |
---|
387 | <DD><DL> |
---|
388 | </DL> |
---|
389 | </DD> |
---|
390 | </DL> |
---|
391 | <HR> |
---|
392 | |
---|
393 | <A NAME="get(org.apache.hadoop.mapred.JobHistory.Keys)"><!-- --></A><H3> |
---|
394 | get</H3> |
---|
395 | <PRE> |
---|
396 | 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>get</B>(<A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Keys.html" title="enum in org.apache.hadoop.mapred">JobHistory.Keys</A> k)</PRE> |
---|
397 | <DL> |
---|
398 | <DD>Get 'String' value for given key. Most of the places use Strings as |
---|
399 | values so the default get' method returns 'String'. This method never returns |
---|
400 | null to ease on GUIs. if no value is found it returns empty string "" |
---|
401 | <P> |
---|
402 | <DD><DL> |
---|
403 | <DT><B>Parameters:</B><DD><CODE>k</CODE> - |
---|
404 | <DT><B>Returns:</B><DD>if null it returns empty string - ""</DL> |
---|
405 | </DD> |
---|
406 | </DL> |
---|
407 | <HR> |
---|
408 | |
---|
409 | <A NAME="getInt(org.apache.hadoop.mapred.JobHistory.Keys)"><!-- --></A><H3> |
---|
410 | getInt</H3> |
---|
411 | <PRE> |
---|
412 | public int <B>getInt</B>(<A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Keys.html" title="enum in org.apache.hadoop.mapred">JobHistory.Keys</A> k)</PRE> |
---|
413 | <DL> |
---|
414 | <DD>Convert value from history to int and return. |
---|
415 | if no value is found it returns 0. |
---|
416 | <P> |
---|
417 | <DD><DL> |
---|
418 | <DT><B>Parameters:</B><DD><CODE>k</CODE> - key</DL> |
---|
419 | </DD> |
---|
420 | </DL> |
---|
421 | <HR> |
---|
422 | |
---|
423 | <A NAME="getLong(org.apache.hadoop.mapred.JobHistory.Keys)"><!-- --></A><H3> |
---|
424 | getLong</H3> |
---|
425 | <PRE> |
---|
426 | public long <B>getLong</B>(<A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Keys.html" title="enum in org.apache.hadoop.mapred">JobHistory.Keys</A> k)</PRE> |
---|
427 | <DL> |
---|
428 | <DD>Convert value from history to int and return. |
---|
429 | if no value is found it returns 0. |
---|
430 | <P> |
---|
431 | <DD><DL> |
---|
432 | <DT><B>Parameters:</B><DD><CODE>k</CODE> - </DL> |
---|
433 | </DD> |
---|
434 | </DL> |
---|
435 | <HR> |
---|
436 | |
---|
437 | <A NAME="set(org.apache.hadoop.mapred.JobHistory.Keys, java.lang.String)"><!-- --></A><H3> |
---|
438 | set</H3> |
---|
439 | <PRE> |
---|
440 | public void <B>set</B>(<A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Keys.html" title="enum in org.apache.hadoop.mapred">JobHistory.Keys</A> k, |
---|
441 | <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> s)</PRE> |
---|
442 | <DL> |
---|
443 | <DD>Set value for the key. |
---|
444 | <P> |
---|
445 | <DD><DL> |
---|
446 | <DT><B>Parameters:</B><DD><CODE>k</CODE> - <DD><CODE>s</CODE> - </DL> |
---|
447 | </DD> |
---|
448 | </DL> |
---|
449 | <HR> |
---|
450 | |
---|
451 | <A NAME="set(java.util.Map)"><!-- --></A><H3> |
---|
452 | set</H3> |
---|
453 | <PRE> |
---|
454 | public void <B>set</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Keys.html" title="enum in org.apache.hadoop.mapred">JobHistory.Keys</A>,<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>> m)</PRE> |
---|
455 | <DL> |
---|
456 | <DD>Adds all values in the Map argument to its own values. |
---|
457 | <P> |
---|
458 | <DD><DL> |
---|
459 | <DT><B>Parameters:</B><DD><CODE>m</CODE> - </DL> |
---|
460 | </DD> |
---|
461 | </DL> |
---|
462 | <HR> |
---|
463 | |
---|
464 | <A NAME="handle(java.util.Map)"><!-- --></A><H3> |
---|
465 | handle</H3> |
---|
466 | <PRE> |
---|
467 | public void <B>handle</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Keys.html" title="enum in org.apache.hadoop.mapred">JobHistory.Keys</A>,<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>> values)</PRE> |
---|
468 | <DL> |
---|
469 | <DD>Reads values back from the history, input is same Map as passed to Listener by parseHistory(). |
---|
470 | <P> |
---|
471 | <DD><DL> |
---|
472 | <DT><B>Parameters:</B><DD><CODE>values</CODE> - </DL> |
---|
473 | </DD> |
---|
474 | </DL> |
---|
475 | <HR> |
---|
476 | |
---|
477 | <A NAME="getValues()"><!-- --></A><H3> |
---|
478 | getValues</H3> |
---|
479 | <PRE> |
---|
480 | public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="../../../../org/apache/hadoop/mapred/JobHistory.Keys.html" title="enum in org.apache.hadoop.mapred">JobHistory.Keys</A>,<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>getValues</B>()</PRE> |
---|
481 | <DL> |
---|
482 | <DD>Returns Map containing all key-values. |
---|
483 | <P> |
---|
484 | <DD><DL> |
---|
485 | </DL> |
---|
486 | </DD> |
---|
487 | </DL> |
---|
488 | <!-- ========= END OF CLASS DATA ========= --> |
---|
489 | <HR> |
---|
490 | |
---|
491 | |
---|
492 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
493 | <A NAME="navbar_bottom"><!-- --></A> |
---|
494 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
495 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
496 | <TR> |
---|
497 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
498 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
499 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
500 | <TR ALIGN="center" VALIGN="top"> |
---|
501 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
502 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
503 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
504 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/JobHistory.Task.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
505 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
506 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
507 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
508 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
509 | </TR> |
---|
510 | </TABLE> |
---|
511 | </TD> |
---|
512 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
513 | </EM> |
---|
514 | </TD> |
---|
515 | </TR> |
---|
516 | |
---|
517 | <TR> |
---|
518 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
519 | <A HREF="../../../../org/apache/hadoop/mapred/JobHistory.ReduceAttempt.html" title="class in org.apache.hadoop.mapred"><B>PREV CLASS</B></A> |
---|
520 | <A HREF="../../../../org/apache/hadoop/mapred/JobHistory.TaskAttempt.html" title="class in org.apache.hadoop.mapred"><B>NEXT CLASS</B></A></FONT></TD> |
---|
521 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
522 | <A HREF="../../../../index.html?org/apache/hadoop/mapred/JobHistory.Task.html" target="_top"><B>FRAMES</B></A> |
---|
523 | <A HREF="JobHistory.Task.html" target="_top"><B>NO FRAMES</B></A> |
---|
524 | <SCRIPT type="text/javascript"> |
---|
525 | <!-- |
---|
526 | if(window==top) { |
---|
527 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
528 | } |
---|
529 | //--> |
---|
530 | </SCRIPT> |
---|
531 | <NOSCRIPT> |
---|
532 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
533 | </NOSCRIPT> |
---|
534 | |
---|
535 | |
---|
536 | </FONT></TD> |
---|
537 | </TR> |
---|
538 | <TR> |
---|
539 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
540 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
541 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
542 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
543 | </TR> |
---|
544 | </TABLE> |
---|
545 | <A NAME="skip-navbar_bottom"></A> |
---|
546 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
547 | |
---|
548 | <HR> |
---|
549 | Copyright © 2009 The Apache Software Foundation |
---|
550 | </BODY> |
---|
551 | </HTML> |
---|