source: proiecte/HadoopJUnit/hadoop-0.20.1/docs/api/org/apache/hadoop/fs/DU.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: 26.6 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:50 UTC 2009 -->
6<TITLE>
7DU (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="DU (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/DU.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/fs/DF.html" title="class in org.apache.hadoop.fs"><B>PREV CLASS</B></A>&nbsp;
59&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FileChecksum.html" title="class in org.apache.hadoop.fs"><B>NEXT CLASS</B></A></FONT></TD>
60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61  <A HREF="../../../../index.html?org/apache/hadoop/fs/DU.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="DU.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;<A HREF="#nested_classes_inherited_from_class_org.apache.hadoop.util.Shell">NESTED</A>&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_org.apache.hadoop.util.Shell">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;FIELD&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.fs</FONT>
92<BR>
93Class DU</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 "><A HREF="../../../../org/apache/hadoop/util/Shell.html" title="class in org.apache.hadoop.util">org.apache.hadoop.util.Shell</A>
97      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.hadoop.fs.DU</B>
98</PRE>
99<HR>
100<DL>
101<DT><PRE>public class <B>DU</B><DT>extends <A HREF="../../../../org/apache/hadoop/util/Shell.html" title="class in org.apache.hadoop.util">Shell</A></DL>
102</PRE>
103
104<P>
105Filesystem disk space usage statistics.  Uses the unix 'du' program
106<P>
107
108<P>
109<HR>
110
111<P>
112<!-- ======== NESTED CLASS SUMMARY ======== -->
113
114<A NAME="nested_class_summary"><!-- --></A>
115<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
116<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
117<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
118<B>Nested Class Summary</B></FONT></TH>
119</TR>
120</TABLE>
121&nbsp;<A NAME="nested_classes_inherited_from_class_org.apache.hadoop.util.Shell"><!-- --></A>
122<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
123<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
124<TH ALIGN="left"><B>Nested classes/interfaces inherited from class org.apache.hadoop.util.<A HREF="../../../../org/apache/hadoop/util/Shell.html" title="class in org.apache.hadoop.util">Shell</A></B></TH>
125</TR>
126<TR BGCOLOR="white" CLASS="TableRowColor">
127<TD><CODE><A HREF="../../../../org/apache/hadoop/util/Shell.ExitCodeException.html" title="class in org.apache.hadoop.util">Shell.ExitCodeException</A>, <A HREF="../../../../org/apache/hadoop/util/Shell.ShellCommandExecutor.html" title="class in org.apache.hadoop.util">Shell.ShellCommandExecutor</A></CODE></TD>
128</TR>
129</TABLE>
130&nbsp;
131<!-- =========== FIELD SUMMARY =========== -->
132
133<A NAME="field_summary"><!-- --></A>
134<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
135<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
136<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
137<B>Field Summary</B></FONT></TH>
138</TR>
139</TABLE>
140&nbsp;<A NAME="fields_inherited_from_class_org.apache.hadoop.util.Shell"><!-- --></A>
141<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
142<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
143<TH ALIGN="left"><B>Fields inherited from class org.apache.hadoop.util.<A HREF="../../../../org/apache/hadoop/util/Shell.html" title="class in org.apache.hadoop.util">Shell</A></B></TH>
144</TR>
145<TR BGCOLOR="white" CLASS="TableRowColor">
146<TD><CODE><A HREF="../../../../org/apache/hadoop/util/Shell.html#LOG">LOG</A>, <A HREF="../../../../org/apache/hadoop/util/Shell.html#SET_GROUP_COMMAND">SET_GROUP_COMMAND</A>, <A HREF="../../../../org/apache/hadoop/util/Shell.html#SET_OWNER_COMMAND">SET_OWNER_COMMAND</A>, <A HREF="../../../../org/apache/hadoop/util/Shell.html#SET_PERMISSION_COMMAND">SET_PERMISSION_COMMAND</A>, <A HREF="../../../../org/apache/hadoop/util/Shell.html#USER_NAME_COMMAND">USER_NAME_COMMAND</A>, <A HREF="../../../../org/apache/hadoop/util/Shell.html#WINDOWS">WINDOWS</A></CODE></TD>
147</TR>
148</TABLE>
149&nbsp;
150<!-- ======== CONSTRUCTOR SUMMARY ======== -->
151
152<A NAME="constructor_summary"><!-- --></A>
153<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
154<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
155<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
156<B>Constructor Summary</B></FONT></TH>
157</TR>
158<TR BGCOLOR="white" CLASS="TableRowColor">
159<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/DU.html#DU(java.io.File, org.apache.hadoop.conf.Configuration)">DU</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>&nbsp;path,
160   <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A>&nbsp;conf)</CODE>
161
162<BR>
163&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Keeps track of disk usage.</TD>
164</TR>
165<TR BGCOLOR="white" CLASS="TableRowColor">
166<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/DU.html#DU(java.io.File, long)">DU</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>&nbsp;path,
167   long&nbsp;interval)</CODE>
168
169<BR>
170&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Keeps track of disk usage.</TD>
171</TR>
172</TABLE>
173&nbsp;
174<!-- ========== METHOD SUMMARY =========== -->
175
176<A NAME="method_summary"><!-- --></A>
177<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
178<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
179<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
180<B>Method Summary</B></FONT></TH>
181</TR>
182<TR BGCOLOR="white" CLASS="TableRowColor">
183<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
184<CODE>&nbsp;void</CODE></FONT></TD>
185<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/DU.html#decDfsUsed(long)">decDfsUsed</A></B>(long&nbsp;value)</CODE>
186
187<BR>
188&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Decrease how much disk space we use.</TD>
189</TR>
190<TR BGCOLOR="white" CLASS="TableRowColor">
191<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
192<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
193<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/DU.html#getDirPath()">getDirPath</A></B>()</CODE>
194
195<BR>
196&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
197</TR>
198<TR BGCOLOR="white" CLASS="TableRowColor">
199<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
200<CODE>protected &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>
201<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/DU.html#getExecString()">getExecString</A></B>()</CODE>
202
203<BR>
204&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return an array containing the command name & its parameters</TD>
205</TR>
206<TR BGCOLOR="white" CLASS="TableRowColor">
207<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
208<CODE>&nbsp;long</CODE></FONT></TD>
209<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/DU.html#getUsed()">getUsed</A></B>()</CODE>
210
211<BR>
212&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
213</TR>
214<TR BGCOLOR="white" CLASS="TableRowColor">
215<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
216<CODE>&nbsp;void</CODE></FONT></TD>
217<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/DU.html#incDfsUsed(long)">incDfsUsed</A></B>(long&nbsp;value)</CODE>
218
219<BR>
220&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Increase how much disk space we use.</TD>
221</TR>
222<TR BGCOLOR="white" CLASS="TableRowColor">
223<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
224<CODE>static&nbsp;void</CODE></FONT></TD>
225<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/DU.html#main(java.lang.String[])">main</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;args)</CODE>
226
227<BR>
228&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
229</TR>
230<TR BGCOLOR="white" CLASS="TableRowColor">
231<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
232<CODE>protected &nbsp;void</CODE></FONT></TD>
233<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/DU.html#parseExecResult(java.io.BufferedReader)">parseExecResult</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/BufferedReader.html?is-external=true" title="class or interface in java.io">BufferedReader</A>&nbsp;lines)</CODE>
234
235<BR>
236&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parse the execution result</TD>
237</TR>
238<TR BGCOLOR="white" CLASS="TableRowColor">
239<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
240<CODE>&nbsp;void</CODE></FONT></TD>
241<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/DU.html#shutdown()">shutdown</A></B>()</CODE>
242
243<BR>
244&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Shut down the refreshing thread.</TD>
245</TR>
246<TR BGCOLOR="white" CLASS="TableRowColor">
247<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
248<CODE>&nbsp;void</CODE></FONT></TD>
249<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/DU.html#start()">start</A></B>()</CODE>
250
251<BR>
252&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Start the disk usage checking thread.</TD>
253</TR>
254<TR BGCOLOR="white" CLASS="TableRowColor">
255<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
256<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
257<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/DU.html#toString()">toString</A></B>()</CODE>
258
259<BR>
260&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
261</TR>
262</TABLE>
263&nbsp;<A NAME="methods_inherited_from_class_org.apache.hadoop.util.Shell"><!-- --></A>
264<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
265<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
266<TH ALIGN="left"><B>Methods inherited from class org.apache.hadoop.util.<A HREF="../../../../org/apache/hadoop/util/Shell.html" title="class in org.apache.hadoop.util">Shell</A></B></TH>
267</TR>
268<TR BGCOLOR="white" CLASS="TableRowColor">
269<TD><CODE><A HREF="../../../../org/apache/hadoop/util/Shell.html#execCommand(java.util.Map, java.lang.String...)">execCommand</A>, <A HREF="../../../../org/apache/hadoop/util/Shell.html#execCommand(java.lang.String...)">execCommand</A>, <A HREF="../../../../org/apache/hadoop/util/Shell.html#getExitCode()">getExitCode</A>, <A HREF="../../../../org/apache/hadoop/util/Shell.html#getGET_PERMISSION_COMMAND()">getGET_PERMISSION_COMMAND</A>, <A HREF="../../../../org/apache/hadoop/util/Shell.html#getGROUPS_COMMAND()">getGROUPS_COMMAND</A>, <A HREF="../../../../org/apache/hadoop/util/Shell.html#getProcess()">getProcess</A>, <A HREF="../../../../org/apache/hadoop/util/Shell.html#getUlimitMemoryCommand(org.apache.hadoop.conf.Configuration)">getUlimitMemoryCommand</A>, <A HREF="../../../../org/apache/hadoop/util/Shell.html#run()">run</A>, <A HREF="../../../../org/apache/hadoop/util/Shell.html#setEnvironment(java.util.Map)">setEnvironment</A>, <A HREF="../../../../org/apache/hadoop/util/Shell.html#setWorkingDirectory(java.io.File)">setWorkingDirectory</A></CODE></TD>
270</TR>
271</TABLE>
272&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
273<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
274<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
275<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>
276</TR>
277<TR BGCOLOR="white" CLASS="TableRowColor">
278<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#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>
279</TR>
280</TABLE>
281&nbsp;
282<P>
283
284<!-- ========= CONSTRUCTOR DETAIL ======== -->
285
286<A NAME="constructor_detail"><!-- --></A>
287<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
288<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
289<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
290<B>Constructor Detail</B></FONT></TH>
291</TR>
292</TABLE>
293
294<A NAME="DU(java.io.File, long)"><!-- --></A><H3>
295DU</H3>
296<PRE>
297public <B>DU</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>&nbsp;path,
298          long&nbsp;interval)
299   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>
300<DL>
301<DD>Keeps track of disk usage.
302<P>
303<DL>
304<DT><B>Parameters:</B><DD><CODE>path</CODE> - the path to check disk usage in<DD><CODE>interval</CODE> - refresh the disk usage at this interval
305<DT><B>Throws:</B>
306<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> - if we fail to refresh the disk usage</DL>
307</DL>
308<HR>
309
310<A NAME="DU(java.io.File, org.apache.hadoop.conf.Configuration)"><!-- --></A><H3>
311DU</H3>
312<PRE>
313public <B>DU</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>&nbsp;path,
314          <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A>&nbsp;conf)
315   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>
316<DL>
317<DD>Keeps track of disk usage.
318<P>
319<DL>
320<DT><B>Parameters:</B><DD><CODE>path</CODE> - the path to check disk usage in<DD><CODE>conf</CODE> - configuration object
321<DT><B>Throws:</B>
322<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> - if we fail to refresh the disk usage</DL>
323</DL>
324
325<!-- ============ METHOD DETAIL ========== -->
326
327<A NAME="method_detail"><!-- --></A>
328<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
329<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
330<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
331<B>Method Detail</B></FONT></TH>
332</TR>
333</TABLE>
334
335<A NAME="decDfsUsed(long)"><!-- --></A><H3>
336decDfsUsed</H3>
337<PRE>
338public void <B>decDfsUsed</B>(long&nbsp;value)</PRE>
339<DL>
340<DD>Decrease how much disk space we use.
341<P>
342<DD><DL>
343<DT><B>Parameters:</B><DD><CODE>value</CODE> - decrease by this value</DL>
344</DD>
345</DL>
346<HR>
347
348<A NAME="incDfsUsed(long)"><!-- --></A><H3>
349incDfsUsed</H3>
350<PRE>
351public void <B>incDfsUsed</B>(long&nbsp;value)</PRE>
352<DL>
353<DD>Increase how much disk space we use.
354<P>
355<DD><DL>
356<DT><B>Parameters:</B><DD><CODE>value</CODE> - increase by this value</DL>
357</DD>
358</DL>
359<HR>
360
361<A NAME="getUsed()"><!-- --></A><H3>
362getUsed</H3>
363<PRE>
364public long <B>getUsed</B>()
365             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>
366<DL>
367<DD><DL>
368
369<DT><B>Returns:</B><DD>disk space used
370<DT><B>Throws:</B>
371<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> - if the shell command fails</DL>
372</DD>
373</DL>
374<HR>
375
376<A NAME="getDirPath()"><!-- --></A><H3>
377getDirPath</H3>
378<PRE>
379public <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>getDirPath</B>()</PRE>
380<DL>
381<DD><DL>
382
383<DT><B>Returns:</B><DD>the path of which we're keeping track of disk usage</DL>
384</DD>
385</DL>
386<HR>
387
388<A NAME="start()"><!-- --></A><H3>
389start</H3>
390<PRE>
391public void <B>start</B>()</PRE>
392<DL>
393<DD>Start the disk usage checking thread.
394<P>
395<DD><DL>
396</DL>
397</DD>
398</DL>
399<HR>
400
401<A NAME="shutdown()"><!-- --></A><H3>
402shutdown</H3>
403<PRE>
404public void <B>shutdown</B>()</PRE>
405<DL>
406<DD>Shut down the refreshing thread.
407<P>
408<DD><DL>
409</DL>
410</DD>
411</DL>
412<HR>
413
414<A NAME="toString()"><!-- --></A><H3>
415toString</H3>
416<PRE>
417public <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>toString</B>()</PRE>
418<DL>
419<DD><DL>
420<DT><B>Overrides:</B><DD><CODE><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></CODE> in class <CODE><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></CODE></DL>
421</DD>
422<DD><DL>
423</DL>
424</DD>
425</DL>
426<HR>
427
428<A NAME="getExecString()"><!-- --></A><H3>
429getExecString</H3>
430<PRE>
431protected <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>getExecString</B>()</PRE>
432<DL>
433<DD><B>Description copied from class: <CODE><A HREF="../../../../org/apache/hadoop/util/Shell.html#getExecString()">Shell</A></CODE></B></DD>
434<DD>return an array containing the command name & its parameters
435<P>
436<DD><DL>
437<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/util/Shell.html#getExecString()">getExecString</A></CODE> in class <CODE><A HREF="../../../../org/apache/hadoop/util/Shell.html" title="class in org.apache.hadoop.util">Shell</A></CODE></DL>
438</DD>
439<DD><DL>
440</DL>
441</DD>
442</DL>
443<HR>
444
445<A NAME="parseExecResult(java.io.BufferedReader)"><!-- --></A><H3>
446parseExecResult</H3>
447<PRE>
448protected void <B>parseExecResult</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/BufferedReader.html?is-external=true" title="class or interface in java.io">BufferedReader</A>&nbsp;lines)
449                        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>
450<DL>
451<DD><B>Description copied from class: <CODE><A HREF="../../../../org/apache/hadoop/util/Shell.html#parseExecResult(java.io.BufferedReader)">Shell</A></CODE></B></DD>
452<DD>Parse the execution result
453<P>
454<DD><DL>
455<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/util/Shell.html#parseExecResult(java.io.BufferedReader)">parseExecResult</A></CODE> in class <CODE><A HREF="../../../../org/apache/hadoop/util/Shell.html" title="class in org.apache.hadoop.util">Shell</A></CODE></DL>
456</DD>
457<DD><DL>
458
459<DT><B>Throws:</B>
460<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
461</DD>
462</DL>
463<HR>
464
465<A NAME="main(java.lang.String[])"><!-- --></A><H3>
466main</H3>
467<PRE>
468public static void <B>main</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;args)
469                 throws <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></PRE>
470<DL>
471<DD><DL>
472
473<DT><B>Throws:</B>
474<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></CODE></DL>
475</DD>
476</DL>
477<!-- ========= END OF CLASS DATA ========= -->
478<HR>
479
480
481<!-- ======= START OF BOTTOM NAVBAR ====== -->
482<A NAME="navbar_bottom"><!-- --></A>
483<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
484<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
485<TR>
486<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
487<A NAME="navbar_bottom_firstrow"><!-- --></A>
488<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
489  <TR ALIGN="center" VALIGN="top">
490  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
491  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
492  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
493  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/DU.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
494  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
495  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
496  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
497  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
498  </TR>
499</TABLE>
500</TD>
501<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
502</EM>
503</TD>
504</TR>
505
506<TR>
507<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
508&nbsp;<A HREF="../../../../org/apache/hadoop/fs/DF.html" title="class in org.apache.hadoop.fs"><B>PREV CLASS</B></A>&nbsp;
509&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FileChecksum.html" title="class in org.apache.hadoop.fs"><B>NEXT CLASS</B></A></FONT></TD>
510<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
511  <A HREF="../../../../index.html?org/apache/hadoop/fs/DU.html" target="_top"><B>FRAMES</B></A>  &nbsp;
512&nbsp;<A HREF="DU.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
513&nbsp;<SCRIPT type="text/javascript">
514  <!--
515  if(window==top) {
516    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
517  }
518  //-->
519</SCRIPT>
520<NOSCRIPT>
521  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
522</NOSCRIPT>
523
524
525</FONT></TD>
526</TR>
527<TR>
528<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
529  SUMMARY:&nbsp;<A HREF="#nested_classes_inherited_from_class_org.apache.hadoop.util.Shell">NESTED</A>&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_org.apache.hadoop.util.Shell">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
530<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
531DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
532</TR>
533</TABLE>
534<A NAME="skip-navbar_bottom"></A>
535<!-- ======== END OF BOTTOM NAVBAR ======= -->
536
537<HR>
538Copyright &copy; 2009 The Apache Software Foundation
539</BODY>
540</HTML>
Note: See TracBrowser for help on using the repository browser.