source: proiecte/HadoopJUnit/hadoop-0.20.1/docs/api/org/apache/hadoop/contrib/failmon/Environment.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: 28.1 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:59 UTC 2009 -->
6<TITLE>
7Environment (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="Environment (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/Environment.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/contrib/failmon/CPUParser.html" title="class in org.apache.hadoop.contrib.failmon"><B>PREV CLASS</B></A>&nbsp;
59&nbsp;<A HREF="../../../../../org/apache/hadoop/contrib/failmon/EventRecord.html" title="class in org.apache.hadoop.contrib.failmon"><B>NEXT CLASS</B></A></FONT></TD>
60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61  <A HREF="../../../../../index.html?org/apache/hadoop/contrib/failmon/Environment.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="Environment.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;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
80<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
81DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&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.contrib.failmon</FONT>
92<BR>
93Class Environment</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.contrib.failmon.Environment</B>
97</PRE>
98<HR>
99<DL>
100<DT><PRE>public class <B>Environment</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>
101</PRE>
102
103<P>
104This class provides various methods for interaction with
105 the configuration and the operating system environment. Also
106 provides some helper methods for use by other classes in
107 the package.
108<P>
109
110<P>
111<HR>
112
113<P>
114<!-- =========== FIELD SUMMARY =========== -->
115
116<A NAME="field_summary"><!-- --></A>
117<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
118<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
119<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
120<B>Field Summary</B></FONT></TH>
121</TR>
122<TR BGCOLOR="white" CLASS="TableRowColor">
123<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
124<CODE>static&nbsp;int</CODE></FONT></TD>
125<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/Environment.html#DEFAULT_LOG_INTERVAL">DEFAULT_LOG_INTERVAL</A></B></CODE>
126
127<BR>
128&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
129</TR>
130<TR BGCOLOR="white" CLASS="TableRowColor">
131<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
132<CODE>static&nbsp;int</CODE></FONT></TD>
133<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/Environment.html#DEFAULT_POLL_INTERVAL">DEFAULT_POLL_INTERVAL</A></B></CODE>
134
135<BR>
136&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
137</TR>
138<TR BGCOLOR="white" CLASS="TableRowColor">
139<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
140<CODE>static&nbsp;org.apache.commons.logging.Log</CODE></FONT></TD>
141<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/Environment.html#LOG">LOG</A></B></CODE>
142
143<BR>
144&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
145</TR>
146<TR BGCOLOR="white" CLASS="TableRowColor">
147<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
148<CODE>static&nbsp;int</CODE></FONT></TD>
149<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/Environment.html#MAX_OUTPUT_LENGTH">MAX_OUTPUT_LENGTH</A></B></CODE>
150
151<BR>
152&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
153</TR>
154<TR BGCOLOR="white" CLASS="TableRowColor">
155<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
156<CODE>static&nbsp;int</CODE></FONT></TD>
157<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/Environment.html#MIN_INTERVAL">MIN_INTERVAL</A></B></CODE>
158
159<BR>
160&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
161</TR>
162</TABLE>
163&nbsp;
164<!-- ======== CONSTRUCTOR SUMMARY ======== -->
165
166<A NAME="constructor_summary"><!-- --></A>
167<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
168<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
169<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
170<B>Constructor Summary</B></FONT></TH>
171</TR>
172<TR BGCOLOR="white" CLASS="TableRowColor">
173<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/Environment.html#Environment()">Environment</A></B>()</CODE>
174
175<BR>
176&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
177</TR>
178</TABLE>
179&nbsp;
180<!-- ========== METHOD SUMMARY =========== -->
181
182<A NAME="method_summary"><!-- --></A>
183<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
184<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
185<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
186<B>Method Summary</B></FONT></TH>
187</TR>
188<TR BGCOLOR="white" CLASS="TableRowColor">
189<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
190<CODE>static&nbsp;boolean</CODE></FONT></TD>
191<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/Environment.html#checkExistence(java.lang.String)">checkExistence</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;cmd)</CODE>
192
193<BR>
194&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether a specific shell command is available
195 in the system.</TD>
196</TR>
197<TR BGCOLOR="white" CLASS="TableRowColor">
198<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
199<CODE>static&nbsp;int</CODE></FONT></TD>
200<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/Environment.html#gcd(int[])">gcd</A></B>(int[]&nbsp;numbers)</CODE>
201
202<BR>
203&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines the greatest common divisor (GCD) of a list
204 of integers.</TD>
205</TR>
206<TR BGCOLOR="white" CLASS="TableRowColor">
207<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
208<CODE>static&nbsp;int</CODE></FONT></TD>
209<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/Environment.html#gcd(int, int)">gcd</A></B>(int&nbsp;m,
210    int&nbsp;n)</CODE>
211
212<BR>
213&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines the greatest common divisor (GCD) of two integers.</TD>
214</TR>
215<TR BGCOLOR="white" CLASS="TableRowColor">
216<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
217<CODE>static&nbsp;int</CODE></FONT></TD>
218<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/Environment.html#getInterval(java.util.ArrayList)">getInterval</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</A>&lt;<A HREF="../../../../../org/apache/hadoop/contrib/failmon/MonitorJob.html" title="class in org.apache.hadoop.contrib.failmon">MonitorJob</A>&gt;&nbsp;monitors)</CODE>
219
220<BR>
221&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines the minimum interval at which the executor thread
222 needs to wake upto execute jobs.</TD>
223</TR>
224<TR BGCOLOR="white" CLASS="TableRowColor">
225<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
226<CODE>static&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</A>&lt;<A HREF="../../../../../org/apache/hadoop/contrib/failmon/MonitorJob.html" title="class in org.apache.hadoop.contrib.failmon">MonitorJob</A>&gt;</CODE></FONT></TD>
227<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/Environment.html#getJobs()">getJobs</A></B>()</CODE>
228
229<BR>
230&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Scans the configuration file to determine which monitoring
231 utilities are available in the system.</TD>
232</TR>
233<TR BGCOLOR="white" CLASS="TableRowColor">
234<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
235<CODE>static&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>
236<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/Environment.html#getProperty(java.lang.String)">getProperty</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;key)</CODE>
237
238<BR>
239&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches the value of a property from the configuration file.</TD>
240</TR>
241<TR BGCOLOR="white" CLASS="TableRowColor">
242<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
243<CODE>static&nbsp;void</CODE></FONT></TD>
244<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/Environment.html#logInfo(java.lang.String)">logInfo</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;str)</CODE>
245
246<BR>
247&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
248</TR>
249<TR BGCOLOR="white" CLASS="TableRowColor">
250<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
251<CODE>static&nbsp;void</CODE></FONT></TD>
252<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/Environment.html#prepare(java.lang.String)">prepare</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;fname)</CODE>
253
254<BR>
255&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initializes structures needed by other methods.</TD>
256</TR>
257<TR BGCOLOR="white" CLASS="TableRowColor">
258<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
259<CODE>static&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</A></CODE></FONT></TD>
260<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/Environment.html#runCommand(java.lang.String)">runCommand</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;cmd)</CODE>
261
262<BR>
263&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Runs a shell command in the system and provides a StringBuffer
264 with the output of the command.</TD>
265</TR>
266<TR BGCOLOR="white" CLASS="TableRowColor">
267<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
268<CODE>static&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</A></CODE></FONT></TD>
269<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/Environment.html#runCommand(java.lang.String[])">runCommand</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;cmd)</CODE>
270
271<BR>
272&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Runs a shell command in the system and provides a StringBuffer
273 with the output of the command.</TD>
274</TR>
275<TR BGCOLOR="white" CLASS="TableRowColor">
276<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
277<CODE>static&nbsp;void</CODE></FONT></TD>
278<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/Environment.html#setProperty(java.lang.String, java.lang.String)">setProperty</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;key,
279            <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;value)</CODE>
280
281<BR>
282&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the value of a property inthe configuration file.</TD>
283</TR>
284</TABLE>
285&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
286<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
287<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
288<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>
289</TR>
290<TR BGCOLOR="white" CLASS="TableRowColor">
291<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>
292</TR>
293</TABLE>
294&nbsp;
295<P>
296
297<!-- ============ FIELD DETAIL =========== -->
298
299<A NAME="field_detail"><!-- --></A>
300<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
301<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
302<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
303<B>Field Detail</B></FONT></TH>
304</TR>
305</TABLE>
306
307<A NAME="DEFAULT_LOG_INTERVAL"><!-- --></A><H3>
308DEFAULT_LOG_INTERVAL</H3>
309<PRE>
310public static final int <B>DEFAULT_LOG_INTERVAL</B></PRE>
311<DL>
312<DL>
313<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.hadoop.contrib.failmon.Environment.DEFAULT_LOG_INTERVAL">Constant Field Values</A></DL>
314</DL>
315<HR>
316
317<A NAME="DEFAULT_POLL_INTERVAL"><!-- --></A><H3>
318DEFAULT_POLL_INTERVAL</H3>
319<PRE>
320public static final int <B>DEFAULT_POLL_INTERVAL</B></PRE>
321<DL>
322<DL>
323<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.hadoop.contrib.failmon.Environment.DEFAULT_POLL_INTERVAL">Constant Field Values</A></DL>
324</DL>
325<HR>
326
327<A NAME="MIN_INTERVAL"><!-- --></A><H3>
328MIN_INTERVAL</H3>
329<PRE>
330public static int <B>MIN_INTERVAL</B></PRE>
331<DL>
332<DL>
333</DL>
334</DL>
335<HR>
336
337<A NAME="MAX_OUTPUT_LENGTH"><!-- --></A><H3>
338MAX_OUTPUT_LENGTH</H3>
339<PRE>
340public static final int <B>MAX_OUTPUT_LENGTH</B></PRE>
341<DL>
342<DL>
343<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.hadoop.contrib.failmon.Environment.MAX_OUTPUT_LENGTH">Constant Field Values</A></DL>
344</DL>
345<HR>
346
347<A NAME="LOG"><!-- --></A><H3>
348LOG</H3>
349<PRE>
350public static org.apache.commons.logging.Log <B>LOG</B></PRE>
351<DL>
352<DL>
353</DL>
354</DL>
355
356<!-- ========= CONSTRUCTOR DETAIL ======== -->
357
358<A NAME="constructor_detail"><!-- --></A>
359<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
360<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
361<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
362<B>Constructor Detail</B></FONT></TH>
363</TR>
364</TABLE>
365
366<A NAME="Environment()"><!-- --></A><H3>
367Environment</H3>
368<PRE>
369public <B>Environment</B>()</PRE>
370<DL>
371</DL>
372
373<!-- ============ METHOD DETAIL ========== -->
374
375<A NAME="method_detail"><!-- --></A>
376<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
377<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
378<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
379<B>Method Detail</B></FONT></TH>
380</TR>
381</TABLE>
382
383<A NAME="prepare(java.lang.String)"><!-- --></A><H3>
384prepare</H3>
385<PRE>
386public static void <B>prepare</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;fname)</PRE>
387<DL>
388<DD>Initializes structures needed by other methods. Also determines
389 whether the executing user has superuser privileges.
390<P>
391<DD><DL>
392</DL>
393</DD>
394</DL>
395<HR>
396
397<A NAME="getProperty(java.lang.String)"><!-- --></A><H3>
398getProperty</H3>
399<PRE>
400public static <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>getProperty</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;key)</PRE>
401<DL>
402<DD>Fetches the value of a property from the configuration file.
403<P>
404<DD><DL>
405<DT><B>Parameters:</B><DD><CODE>key</CODE> - the name of the property
406<DT><B>Returns:</B><DD>the value of the property, if it exists and
407  null otherwise</DL>
408</DD>
409</DL>
410<HR>
411
412<A NAME="setProperty(java.lang.String, java.lang.String)"><!-- --></A><H3>
413setProperty</H3>
414<PRE>
415public static void <B>setProperty</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;key,
416                               <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;value)</PRE>
417<DL>
418<DD>Sets the value of a property inthe configuration file.
419<P>
420<DD><DL>
421<DT><B>Parameters:</B><DD><CODE>key</CODE> - the name of the property<DD><CODE>value</CODE> - the new value for the property</DL>
422</DD>
423</DL>
424<HR>
425
426<A NAME="getJobs()"><!-- --></A><H3>
427getJobs</H3>
428<PRE>
429public static <A HREF="http://java.sun.com/javase/6/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</A>&lt;<A HREF="../../../../../org/apache/hadoop/contrib/failmon/MonitorJob.html" title="class in org.apache.hadoop.contrib.failmon">MonitorJob</A>&gt; <B>getJobs</B>()</PRE>
430<DL>
431<DD>Scans the configuration file to determine which monitoring
432 utilities are available in the system. For each one of them, a
433 job is created. All such jobs are scheduled and executed by
434 Executor.
435<P>
436<DD><DL>
437
438<DT><B>Returns:</B><DD>an ArrayList that contains jobs to be executed by theExecutor.</DL>
439</DD>
440</DL>
441<HR>
442
443<A NAME="getInterval(java.util.ArrayList)"><!-- --></A><H3>
444getInterval</H3>
445<PRE>
446public static int <B>getInterval</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</A>&lt;<A HREF="../../../../../org/apache/hadoop/contrib/failmon/MonitorJob.html" title="class in org.apache.hadoop.contrib.failmon">MonitorJob</A>&gt;&nbsp;monitors)</PRE>
447<DL>
448<DD>Determines the minimum interval at which the executor thread
449 needs to wake upto execute jobs. Essentially, this is interval
450 equals the GCD of intervals of all scheduled jobs.
451<P>
452<DD><DL>
453<DT><B>Parameters:</B><DD><CODE>monitors</CODE> - the list of scheduled jobs
454<DT><B>Returns:</B><DD>the minimum interval between two scheduled jobs</DL>
455</DD>
456</DL>
457<HR>
458
459<A NAME="checkExistence(java.lang.String)"><!-- --></A><H3>
460checkExistence</H3>
461<PRE>
462public static boolean <B>checkExistence</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;cmd)</PRE>
463<DL>
464<DD>Checks whether a specific shell command is available
465 in the system.
466<P>
467<DD><DL>
468<DT><B>Parameters:</B><DD><CODE>cmd</CODE> - the command to check against
469<DT><B>Returns:</B><DD>true, if the command is availble, false otherwise</DL>
470</DD>
471</DL>
472<HR>
473
474<A NAME="runCommand(java.lang.String[])"><!-- --></A><H3>
475runCommand</H3>
476<PRE>
477public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</A> <B>runCommand</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;cmd)</PRE>
478<DL>
479<DD>Runs a shell command in the system and provides a StringBuffer
480 with the output of the command.
481<P>
482<DD><DL>
483<DT><B>Parameters:</B><DD><CODE>cmd</CODE> - an array of string that form the command to run
484<DT><B>Returns:</B><DD>a StringBuffer that contains the output of the command</DL>
485</DD>
486</DL>
487<HR>
488
489<A NAME="runCommand(java.lang.String)"><!-- --></A><H3>
490runCommand</H3>
491<PRE>
492public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</A> <B>runCommand</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;cmd)</PRE>
493<DL>
494<DD>Runs a shell command in the system and provides a StringBuffer
495 with the output of the command.
496<P>
497<DD><DL>
498<DT><B>Parameters:</B><DD><CODE>cmd</CODE> - the command to run
499<DT><B>Returns:</B><DD>a StringBuffer that contains the output of the command</DL>
500</DD>
501</DL>
502<HR>
503
504<A NAME="gcd(int, int)"><!-- --></A><H3>
505gcd</H3>
506<PRE>
507public static int <B>gcd</B>(int&nbsp;m,
508                      int&nbsp;n)</PRE>
509<DL>
510<DD>Determines the greatest common divisor (GCD) of two integers.
511<P>
512<DD><DL>
513<DT><B>Parameters:</B><DD><CODE>m</CODE> - the first integer<DD><CODE>n</CODE> - the second integer
514<DT><B>Returns:</B><DD>the greatest common divisor of m and n</DL>
515</DD>
516</DL>
517<HR>
518
519<A NAME="gcd(int[])"><!-- --></A><H3>
520gcd</H3>
521<PRE>
522public static int <B>gcd</B>(int[]&nbsp;numbers)</PRE>
523<DL>
524<DD>Determines the greatest common divisor (GCD) of a list
525 of integers.
526<P>
527<DD><DL>
528<DT><B>Parameters:</B><DD><CODE>numbers</CODE> - the list of integers to process
529<DT><B>Returns:</B><DD>the greatest common divisor of all numbers</DL>
530</DD>
531</DL>
532<HR>
533
534<A NAME="logInfo(java.lang.String)"><!-- --></A><H3>
535logInfo</H3>
536<PRE>
537public static void <B>logInfo</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;str)</PRE>
538<DL>
539<DD><DL>
540</DL>
541</DD>
542</DL>
543<!-- ========= END OF CLASS DATA ========= -->
544<HR>
545
546
547<!-- ======= START OF BOTTOM NAVBAR ====== -->
548<A NAME="navbar_bottom"><!-- --></A>
549<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
550<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
551<TR>
552<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
553<A NAME="navbar_bottom_firstrow"><!-- --></A>
554<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
555  <TR ALIGN="center" VALIGN="top">
556  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
557  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
558  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
559  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Environment.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
560  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
561  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
562  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
563  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
564  </TR>
565</TABLE>
566</TD>
567<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
568</EM>
569</TD>
570</TR>
571
572<TR>
573<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
574&nbsp;<A HREF="../../../../../org/apache/hadoop/contrib/failmon/CPUParser.html" title="class in org.apache.hadoop.contrib.failmon"><B>PREV CLASS</B></A>&nbsp;
575&nbsp;<A HREF="../../../../../org/apache/hadoop/contrib/failmon/EventRecord.html" title="class in org.apache.hadoop.contrib.failmon"><B>NEXT CLASS</B></A></FONT></TD>
576<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
577  <A HREF="../../../../../index.html?org/apache/hadoop/contrib/failmon/Environment.html" target="_top"><B>FRAMES</B></A>  &nbsp;
578&nbsp;<A HREF="Environment.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
579&nbsp;<SCRIPT type="text/javascript">
580  <!--
581  if(window==top) {
582    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
583  }
584  //-->
585</SCRIPT>
586<NOSCRIPT>
587  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
588</NOSCRIPT>
589
590
591</FONT></TD>
592</TR>
593<TR>
594<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
595  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
596<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
597DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
598</TR>
599</TABLE>
600<A NAME="skip-navbar_bottom"></A>
601<!-- ======== END OF BOTTOM NAVBAR ======= -->
602
603<HR>
604Copyright &copy; 2009 The Apache Software Foundation
605</BODY>
606</HTML>
Note: See TracBrowser for help on using the repository browser.