source: proiecte/HadoopJUnit/hadoop-0.20.1/docs/api/org/apache/hadoop/mapred/ClusterStatus.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: 24.7 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>
7ClusterStatus (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="ClusterStatus (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/ClusterStatus.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;PREV CLASS&nbsp;
59&nbsp;<A HREF="../../../../org/apache/hadoop/mapred/Counters.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/ClusterStatus.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="ClusterStatus.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>
93Class ClusterStatus</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.ClusterStatus</B>
97</PRE>
98<DL>
99<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A></DD>
100</DL>
101<HR>
102<DL>
103<DT><PRE>public class <B>ClusterStatus</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="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A></DL>
104</PRE>
105
106<P>
107Status information on the current state of the Map-Reduce cluster.
108 
109 <p><code>ClusterStatus</code> provides clients with information such as:
110 <ol>
111   <li>
112   Size of the cluster.
113   </li>
114   <li>
115   Name of the trackers.
116   </li>
117   <li>
118   Task capacity of the cluster.
119   </li>
120   <li>
121   The number of currently running map & reduce tasks.
122   </li>
123   <li>
124   State of the <code>JobTracker</code>.
125   </li>
126 </ol></p>
127 
128 <p>Clients can query for the latest <code>ClusterStatus</code>, via
129 <A HREF="../../../../org/apache/hadoop/mapred/JobClient.html#getClusterStatus()"><CODE>JobClient.getClusterStatus()</CODE></A>.</p>
130<P>
131
132<P>
133<DL>
134<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>
135<HR>
136
137<P>
138
139<!-- ========== METHOD SUMMARY =========== -->
140
141<A NAME="method_summary"><!-- --></A>
142<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
143<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
144<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
145<B>Method Summary</B></FONT></TH>
146</TR>
147<TR BGCOLOR="white" CLASS="TableRowColor">
148<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
149<CODE>&nbsp;<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>&lt;<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>&gt;</CODE></FONT></TD>
150<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/ClusterStatus.html#getActiveTrackerNames()">getActiveTrackerNames</A></B>()</CODE>
151
152<BR>
153&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the names of task trackers in the cluster.</TD>
154</TR>
155<TR BGCOLOR="white" CLASS="TableRowColor">
156<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
157<CODE>&nbsp;<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>&lt;<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>&gt;</CODE></FONT></TD>
158<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/ClusterStatus.html#getBlacklistedTrackerNames()">getBlacklistedTrackerNames</A></B>()</CODE>
159
160<BR>
161&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the names of task trackers in the cluster.</TD>
162</TR>
163<TR BGCOLOR="white" CLASS="TableRowColor">
164<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
165<CODE>&nbsp;int</CODE></FONT></TD>
166<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/ClusterStatus.html#getBlacklistedTrackers()">getBlacklistedTrackers</A></B>()</CODE>
167
168<BR>
169&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the number of blacklisted task trackers in the cluster.</TD>
170</TR>
171<TR BGCOLOR="white" CLASS="TableRowColor">
172<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
173<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/mapred/JobTracker.State.html" title="enum in org.apache.hadoop.mapred">JobTracker.State</A></CODE></FONT></TD>
174<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/ClusterStatus.html#getJobTrackerState()">getJobTrackerState</A></B>()</CODE>
175
176<BR>
177&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the current state of the <code>JobTracker</code>,
178 as <A HREF="../../../../org/apache/hadoop/mapred/JobTracker.State.html" title="enum in org.apache.hadoop.mapred"><CODE>JobTracker.State</CODE></A></TD>
179</TR>
180<TR BGCOLOR="white" CLASS="TableRowColor">
181<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
182<CODE>&nbsp;int</CODE></FONT></TD>
183<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/ClusterStatus.html#getMapTasks()">getMapTasks</A></B>()</CODE>
184
185<BR>
186&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the number of currently running map tasks in the cluster.</TD>
187</TR>
188<TR BGCOLOR="white" CLASS="TableRowColor">
189<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
190<CODE>&nbsp;int</CODE></FONT></TD>
191<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/ClusterStatus.html#getMaxMapTasks()">getMaxMapTasks</A></B>()</CODE>
192
193<BR>
194&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the maximum capacity for running map tasks in the cluster.</TD>
195</TR>
196<TR BGCOLOR="white" CLASS="TableRowColor">
197<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
198<CODE>&nbsp;long</CODE></FONT></TD>
199<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/ClusterStatus.html#getMaxMemory()">getMaxMemory</A></B>()</CODE>
200
201<BR>
202&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the maximum configured heap memory that can be used by the <code>JobTracker</code></TD>
203</TR>
204<TR BGCOLOR="white" CLASS="TableRowColor">
205<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
206<CODE>&nbsp;int</CODE></FONT></TD>
207<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/ClusterStatus.html#getMaxReduceTasks()">getMaxReduceTasks</A></B>()</CODE>
208
209<BR>
210&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the maximum capacity for running reduce tasks in the cluster.</TD>
211</TR>
212<TR BGCOLOR="white" CLASS="TableRowColor">
213<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
214<CODE>&nbsp;int</CODE></FONT></TD>
215<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/ClusterStatus.html#getReduceTasks()">getReduceTasks</A></B>()</CODE>
216
217<BR>
218&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the number of currently running reduce tasks in the cluster.</TD>
219</TR>
220<TR BGCOLOR="white" CLASS="TableRowColor">
221<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
222<CODE>&nbsp;int</CODE></FONT></TD>
223<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/ClusterStatus.html#getTaskTrackers()">getTaskTrackers</A></B>()</CODE>
224
225<BR>
226&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the number of task trackers in the cluster.</TD>
227</TR>
228<TR BGCOLOR="white" CLASS="TableRowColor">
229<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
230<CODE>&nbsp;long</CODE></FONT></TD>
231<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/ClusterStatus.html#getTTExpiryInterval()">getTTExpiryInterval</A></B>()</CODE>
232
233<BR>
234&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the tasktracker expiry interval for the cluster</TD>
235</TR>
236<TR BGCOLOR="white" CLASS="TableRowColor">
237<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
238<CODE>&nbsp;long</CODE></FONT></TD>
239<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/ClusterStatus.html#getUsedMemory()">getUsedMemory</A></B>()</CODE>
240
241<BR>
242&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the total heap memory used by the <code>JobTracker</code></TD>
243</TR>
244<TR BGCOLOR="white" CLASS="TableRowColor">
245<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
246<CODE>&nbsp;void</CODE></FONT></TD>
247<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/ClusterStatus.html#readFields(java.io.DataInput)">readFields</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/DataInput.html?is-external=true" title="class or interface in java.io">DataInput</A>&nbsp;in)</CODE>
248
249<BR>
250&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Deserialize the fields of this object from <code>in</code>.</TD>
251</TR>
252<TR BGCOLOR="white" CLASS="TableRowColor">
253<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
254<CODE>&nbsp;void</CODE></FONT></TD>
255<TD><CODE><B><A HREF="../../../../org/apache/hadoop/mapred/ClusterStatus.html#write(java.io.DataOutput)">write</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/DataOutput.html?is-external=true" title="class or interface in java.io">DataOutput</A>&nbsp;out)</CODE>
256
257<BR>
258&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Serialize the fields of this object to <code>out</code>.</TD>
259</TR>
260</TABLE>
261&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
262<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
263<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
264<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>
265</TR>
266<TR BGCOLOR="white" CLASS="TableRowColor">
267<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>
268</TR>
269</TABLE>
270&nbsp;
271<P>
272
273<!-- ============ METHOD DETAIL ========== -->
274
275<A NAME="method_detail"><!-- --></A>
276<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
277<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
278<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
279<B>Method Detail</B></FONT></TH>
280</TR>
281</TABLE>
282
283<A NAME="getTaskTrackers()"><!-- --></A><H3>
284getTaskTrackers</H3>
285<PRE>
286public int <B>getTaskTrackers</B>()</PRE>
287<DL>
288<DD>Get the number of task trackers in the cluster.
289<P>
290<DD><DL>
291</DL>
292</DD>
293<DD><DL>
294
295<DT><B>Returns:</B><DD>the number of task trackers in the cluster.</DL>
296</DD>
297</DL>
298<HR>
299
300<A NAME="getActiveTrackerNames()"><!-- --></A><H3>
301getActiveTrackerNames</H3>
302<PRE>
303public <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>&lt;<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>&gt; <B>getActiveTrackerNames</B>()</PRE>
304<DL>
305<DD>Get the names of task trackers in the cluster.
306<P>
307<DD><DL>
308</DL>
309</DD>
310<DD><DL>
311
312<DT><B>Returns:</B><DD>the active task trackers in the cluster.</DL>
313</DD>
314</DL>
315<HR>
316
317<A NAME="getBlacklistedTrackerNames()"><!-- --></A><H3>
318getBlacklistedTrackerNames</H3>
319<PRE>
320public <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>&lt;<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>&gt; <B>getBlacklistedTrackerNames</B>()</PRE>
321<DL>
322<DD>Get the names of task trackers in the cluster.
323<P>
324<DD><DL>
325</DL>
326</DD>
327<DD><DL>
328
329<DT><B>Returns:</B><DD>the blacklisted task trackers in the cluster.</DL>
330</DD>
331</DL>
332<HR>
333
334<A NAME="getBlacklistedTrackers()"><!-- --></A><H3>
335getBlacklistedTrackers</H3>
336<PRE>
337public int <B>getBlacklistedTrackers</B>()</PRE>
338<DL>
339<DD>Get the number of blacklisted task trackers in the cluster.
340<P>
341<DD><DL>
342</DL>
343</DD>
344<DD><DL>
345
346<DT><B>Returns:</B><DD>the number of blacklisted task trackers in the cluster.</DL>
347</DD>
348</DL>
349<HR>
350
351<A NAME="getTTExpiryInterval()"><!-- --></A><H3>
352getTTExpiryInterval</H3>
353<PRE>
354public long <B>getTTExpiryInterval</B>()</PRE>
355<DL>
356<DD>Get the tasktracker expiry interval for the cluster
357<P>
358<DD><DL>
359</DL>
360</DD>
361<DD><DL>
362
363<DT><B>Returns:</B><DD>the expiry interval in msec</DL>
364</DD>
365</DL>
366<HR>
367
368<A NAME="getMapTasks()"><!-- --></A><H3>
369getMapTasks</H3>
370<PRE>
371public int <B>getMapTasks</B>()</PRE>
372<DL>
373<DD>Get the number of currently running map tasks in the cluster.
374<P>
375<DD><DL>
376</DL>
377</DD>
378<DD><DL>
379
380<DT><B>Returns:</B><DD>the number of currently running map tasks in the cluster.</DL>
381</DD>
382</DL>
383<HR>
384
385<A NAME="getReduceTasks()"><!-- --></A><H3>
386getReduceTasks</H3>
387<PRE>
388public int <B>getReduceTasks</B>()</PRE>
389<DL>
390<DD>Get the number of currently running reduce tasks in the cluster.
391<P>
392<DD><DL>
393</DL>
394</DD>
395<DD><DL>
396
397<DT><B>Returns:</B><DD>the number of currently running reduce tasks in the cluster.</DL>
398</DD>
399</DL>
400<HR>
401
402<A NAME="getMaxMapTasks()"><!-- --></A><H3>
403getMaxMapTasks</H3>
404<PRE>
405public int <B>getMaxMapTasks</B>()</PRE>
406<DL>
407<DD>Get the maximum capacity for running map tasks in the cluster.
408<P>
409<DD><DL>
410</DL>
411</DD>
412<DD><DL>
413
414<DT><B>Returns:</B><DD>the maximum capacity for running map tasks in the cluster.</DL>
415</DD>
416</DL>
417<HR>
418
419<A NAME="getMaxReduceTasks()"><!-- --></A><H3>
420getMaxReduceTasks</H3>
421<PRE>
422public int <B>getMaxReduceTasks</B>()</PRE>
423<DL>
424<DD>Get the maximum capacity for running reduce tasks in the cluster.
425<P>
426<DD><DL>
427</DL>
428</DD>
429<DD><DL>
430
431<DT><B>Returns:</B><DD>the maximum capacity for running reduce tasks in the cluster.</DL>
432</DD>
433</DL>
434<HR>
435
436<A NAME="getJobTrackerState()"><!-- --></A><H3>
437getJobTrackerState</H3>
438<PRE>
439public <A HREF="../../../../org/apache/hadoop/mapred/JobTracker.State.html" title="enum in org.apache.hadoop.mapred">JobTracker.State</A> <B>getJobTrackerState</B>()</PRE>
440<DL>
441<DD>Get the current state of the <code>JobTracker</code>,
442 as <A HREF="../../../../org/apache/hadoop/mapred/JobTracker.State.html" title="enum in org.apache.hadoop.mapred"><CODE>JobTracker.State</CODE></A>
443<P>
444<DD><DL>
445</DL>
446</DD>
447<DD><DL>
448
449<DT><B>Returns:</B><DD>the current state of the <code>JobTracker</code>.</DL>
450</DD>
451</DL>
452<HR>
453
454<A NAME="getUsedMemory()"><!-- --></A><H3>
455getUsedMemory</H3>
456<PRE>
457public long <B>getUsedMemory</B>()</PRE>
458<DL>
459<DD>Get the total heap memory used by the <code>JobTracker</code>
460<P>
461<DD><DL>
462</DL>
463</DD>
464<DD><DL>
465
466<DT><B>Returns:</B><DD>the size of heap memory used by the <code>JobTracker</code></DL>
467</DD>
468</DL>
469<HR>
470
471<A NAME="getMaxMemory()"><!-- --></A><H3>
472getMaxMemory</H3>
473<PRE>
474public long <B>getMaxMemory</B>()</PRE>
475<DL>
476<DD>Get the maximum configured heap memory that can be used by the <code>JobTracker</code>
477<P>
478<DD><DL>
479</DL>
480</DD>
481<DD><DL>
482
483<DT><B>Returns:</B><DD>the configured size of max heap memory that can be used by the <code>JobTracker</code></DL>
484</DD>
485</DL>
486<HR>
487
488<A NAME="write(java.io.DataOutput)"><!-- --></A><H3>
489write</H3>
490<PRE>
491public void <B>write</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/DataOutput.html?is-external=true" title="class or interface in java.io">DataOutput</A>&nbsp;out)
492           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>
493<DL>
494<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/hadoop/io/Writable.html#write(java.io.DataOutput)">Writable</A></CODE></B></DD>
495<DD>Serialize the fields of this object to <code>out</code>.
496<P>
497<DD><DL>
498<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/io/Writable.html#write(java.io.DataOutput)">write</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A></CODE></DL>
499</DD>
500<DD><DL>
501<DT><B>Parameters:</B><DD><CODE>out</CODE> - <code>DataOuput</code> to serialize this object into.
502<DT><B>Throws:</B>
503<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>
504</DD>
505</DL>
506<HR>
507
508<A NAME="readFields(java.io.DataInput)"><!-- --></A><H3>
509readFields</H3>
510<PRE>
511public void <B>readFields</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/DataInput.html?is-external=true" title="class or interface in java.io">DataInput</A>&nbsp;in)
512                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>
513<DL>
514<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/hadoop/io/Writable.html#readFields(java.io.DataInput)">Writable</A></CODE></B></DD>
515<DD>Deserialize the fields of this object from <code>in</code>
516 
517 <p>For efficiency, implementations should attempt to re-use storage in the
518 existing object where possible.</p>
519<P>
520<DD><DL>
521<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/io/Writable.html#readFields(java.io.DataInput)">readFields</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A></CODE></DL>
522</DD>
523<DD><DL>
524<DT><B>Parameters:</B><DD><CODE>in</CODE> - <code>DataInput</code> to deseriablize this object from.
525<DT><B>Throws:</B>
526<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>
527</DD>
528</DL>
529<!-- ========= END OF CLASS DATA ========= -->
530<HR>
531
532
533<!-- ======= START OF BOTTOM NAVBAR ====== -->
534<A NAME="navbar_bottom"><!-- --></A>
535<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
536<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
537<TR>
538<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
539<A NAME="navbar_bottom_firstrow"><!-- --></A>
540<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
541  <TR ALIGN="center" VALIGN="top">
542  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
543  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
544  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
545  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ClusterStatus.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
546  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
547  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
548  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
549  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
550  </TR>
551</TABLE>
552</TD>
553<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
554</EM>
555</TD>
556</TR>
557
558<TR>
559<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
560&nbsp;PREV CLASS&nbsp;
561&nbsp;<A HREF="../../../../org/apache/hadoop/mapred/Counters.html" title="class in org.apache.hadoop.mapred"><B>NEXT CLASS</B></A></FONT></TD>
562<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
563  <A HREF="../../../../index.html?org/apache/hadoop/mapred/ClusterStatus.html" target="_top"><B>FRAMES</B></A>  &nbsp;
564&nbsp;<A HREF="ClusterStatus.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
565&nbsp;<SCRIPT type="text/javascript">
566  <!--
567  if(window==top) {
568    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
569  }
570  //-->
571</SCRIPT>
572<NOSCRIPT>
573  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
574</NOSCRIPT>
575
576
577</FONT></TD>
578</TR>
579<TR>
580<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
581  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
582<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
583DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
584</TR>
585</TABLE>
586<A NAME="skip-navbar_bottom"></A>
587<!-- ======== END OF BOTTOM NAVBAR ======= -->
588
589<HR>
590Copyright &copy; 2009 The Apache Software Foundation
591</BODY>
592</HTML>
Note: See TracBrowser for help on using the repository browser.