source: proiecte/HadoopJUnit/hadoop-0.20.1/docs/api/org/apache/hadoop/contrib/failmon/LocalStore.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: 23.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>
7LocalStore (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="LocalStore (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/LocalStore.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/HDFSMerger.html" title="class in org.apache.hadoop.contrib.failmon"><B>PREV CLASS</B></A>&nbsp;
59&nbsp;<A HREF="../../../../../org/apache/hadoop/contrib/failmon/LogParser.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/LocalStore.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="LocalStore.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 LocalStore</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.LocalStore</B>
97</PRE>
98<HR>
99<DL>
100<DT><PRE>public class <B>LocalStore</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 takes care of the temporary local storage of
105 gathered metrics before they get uploaded into HDFS. It writes
106 Serialized Records as lines in a temporary file and then
107 compresses and uploads it into HDFS.
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;<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>
125<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/LocalStore.html#COMPRESSION_SUFFIX">COMPRESSION_SUFFIX</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;char</CODE></FONT></TD>
133<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/LocalStore.html#FIELD_SEPARATOR">FIELD_SEPARATOR</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;char</CODE></FONT></TD>
141<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/LocalStore.html#RECORD_SEPARATOR">RECORD_SEPARATOR</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/LocalStore.html#UPLOAD_INTERVAL">UPLOAD_INTERVAL</A></B></CODE>
150
151<BR>
152&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
153</TR>
154</TABLE>
155&nbsp;
156<!-- ======== CONSTRUCTOR SUMMARY ======== -->
157
158<A NAME="constructor_summary"><!-- --></A>
159<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
160<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
161<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
162<B>Constructor Summary</B></FONT></TH>
163</TR>
164<TR BGCOLOR="white" CLASS="TableRowColor">
165<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/LocalStore.html#LocalStore()">LocalStore</A></B>()</CODE>
166
167<BR>
168&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create an instance of the class and read the configuration
169 file to determine some output parameters.</TD>
170</TR>
171</TABLE>
172&nbsp;
173<!-- ========== METHOD SUMMARY =========== -->
174
175<A NAME="method_summary"><!-- --></A>
176<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
177<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
178<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
179<B>Method Summary</B></FONT></TH>
180</TR>
181<TR BGCOLOR="white" CLASS="TableRowColor">
182<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
183<CODE>&nbsp;void</CODE></FONT></TD>
184<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/LocalStore.html#close()">close</A></B>()</CODE>
185
186<BR>
187&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Close the temporary local file</TD>
188</TR>
189<TR BGCOLOR="white" CLASS="TableRowColor">
190<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
191<CODE>static&nbsp;void</CODE></FONT></TD>
192<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/LocalStore.html#copyToHDFS(java.lang.String, java.lang.String)">copyToHDFS</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;localFile,
193           <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;hdfsFile)</CODE>
194
195<BR>
196&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copy a local file to HDFS</TD>
197</TR>
198<TR BGCOLOR="white" CLASS="TableRowColor">
199<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
200<CODE>&nbsp;void</CODE></FONT></TD>
201<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/LocalStore.html#insert(org.apache.hadoop.contrib.failmon.EventRecord)">insert</A></B>(<A HREF="../../../../../org/apache/hadoop/contrib/failmon/EventRecord.html" title="class in org.apache.hadoop.contrib.failmon">EventRecord</A>&nbsp;er)</CODE>
202
203<BR>
204&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Insert an EventRecord to the local storage, after it
205 gets serialized and anonymized.</TD>
206</TR>
207<TR BGCOLOR="white" CLASS="TableRowColor">
208<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
209<CODE>&nbsp;void</CODE></FONT></TD>
210<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/LocalStore.html#insert(org.apache.hadoop.contrib.failmon.EventRecord[])">insert</A></B>(<A HREF="../../../../../org/apache/hadoop/contrib/failmon/EventRecord.html" title="class in org.apache.hadoop.contrib.failmon">EventRecord</A>[]&nbsp;ers)</CODE>
211
212<BR>
213&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Insert an array of EventRecords to the local storage, after they
214 get serialized and anonymized.</TD>
215</TR>
216<TR BGCOLOR="white" CLASS="TableRowColor">
217<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
218<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>
219<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/LocalStore.html#pack(org.apache.hadoop.contrib.failmon.SerializedRecord)">pack</A></B>(<A HREF="../../../../../org/apache/hadoop/contrib/failmon/SerializedRecord.html" title="class in org.apache.hadoop.contrib.failmon">SerializedRecord</A>&nbsp;sr)</CODE>
220
221<BR>
222&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Pack a SerializedRecord into an array of bytes</TD>
223</TR>
224<TR BGCOLOR="white" CLASS="TableRowColor">
225<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
226<CODE>&nbsp;void</CODE></FONT></TD>
227<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/LocalStore.html#upload()">upload</A></B>()</CODE>
228
229<BR>
230&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Upload the local file store into HDFS, after it
231 compressing it.</TD>
232</TR>
233<TR BGCOLOR="white" CLASS="TableRowColor">
234<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
235<CODE>static&nbsp;void</CODE></FONT></TD>
236<TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/LocalStore.html#zipCompress(java.lang.String)">zipCompress</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;filename)</CODE>
237
238<BR>
239&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compress a text file using the ZIP compressing algorithm.</TD>
240</TR>
241</TABLE>
242&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
243<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
244<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
245<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>
246</TR>
247<TR BGCOLOR="white" CLASS="TableRowColor">
248<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>
249</TR>
250</TABLE>
251&nbsp;
252<P>
253
254<!-- ============ FIELD DETAIL =========== -->
255
256<A NAME="field_detail"><!-- --></A>
257<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
258<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
259<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
260<B>Field Detail</B></FONT></TH>
261</TR>
262</TABLE>
263
264<A NAME="FIELD_SEPARATOR"><!-- --></A><H3>
265FIELD_SEPARATOR</H3>
266<PRE>
267public static final char <B>FIELD_SEPARATOR</B></PRE>
268<DL>
269<DL>
270<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.hadoop.contrib.failmon.LocalStore.FIELD_SEPARATOR">Constant Field Values</A></DL>
271</DL>
272<HR>
273
274<A NAME="RECORD_SEPARATOR"><!-- --></A><H3>
275RECORD_SEPARATOR</H3>
276<PRE>
277public static final char <B>RECORD_SEPARATOR</B></PRE>
278<DL>
279<DL>
280<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.hadoop.contrib.failmon.LocalStore.RECORD_SEPARATOR">Constant Field Values</A></DL>
281</DL>
282<HR>
283
284<A NAME="COMPRESSION_SUFFIX"><!-- --></A><H3>
285COMPRESSION_SUFFIX</H3>
286<PRE>
287public static final <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>COMPRESSION_SUFFIX</B></PRE>
288<DL>
289<DL>
290<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.hadoop.contrib.failmon.LocalStore.COMPRESSION_SUFFIX">Constant Field Values</A></DL>
291</DL>
292<HR>
293
294<A NAME="UPLOAD_INTERVAL"><!-- --></A><H3>
295UPLOAD_INTERVAL</H3>
296<PRE>
297public static final int <B>UPLOAD_INTERVAL</B></PRE>
298<DL>
299<DL>
300<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.hadoop.contrib.failmon.LocalStore.UPLOAD_INTERVAL">Constant Field Values</A></DL>
301</DL>
302
303<!-- ========= CONSTRUCTOR DETAIL ======== -->
304
305<A NAME="constructor_detail"><!-- --></A>
306<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
307<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
308<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
309<B>Constructor Detail</B></FONT></TH>
310</TR>
311</TABLE>
312
313<A NAME="LocalStore()"><!-- --></A><H3>
314LocalStore</H3>
315<PRE>
316public <B>LocalStore</B>()</PRE>
317<DL>
318<DD>Create an instance of the class and read the configuration
319 file to determine some output parameters. Then, initiate the
320 structured needed for the buffered I/O (so that smal appends
321 can be handled efficiently).
322<P>
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="insert(org.apache.hadoop.contrib.failmon.EventRecord)"><!-- --></A><H3>
336insert</H3>
337<PRE>
338public void <B>insert</B>(<A HREF="../../../../../org/apache/hadoop/contrib/failmon/EventRecord.html" title="class in org.apache.hadoop.contrib.failmon">EventRecord</A>&nbsp;er)</PRE>
339<DL>
340<DD>Insert an EventRecord to the local storage, after it
341 gets serialized and anonymized.
342<P>
343<DD><DL>
344<DT><B>Parameters:</B><DD><CODE>er</CODE> - the EventRecord to be inserted</DL>
345</DD>
346</DL>
347<HR>
348
349<A NAME="insert(org.apache.hadoop.contrib.failmon.EventRecord[])"><!-- --></A><H3>
350insert</H3>
351<PRE>
352public void <B>insert</B>(<A HREF="../../../../../org/apache/hadoop/contrib/failmon/EventRecord.html" title="class in org.apache.hadoop.contrib.failmon">EventRecord</A>[]&nbsp;ers)</PRE>
353<DL>
354<DD>Insert an array of EventRecords to the local storage, after they
355 get serialized and anonymized.
356<P>
357<DD><DL>
358<DT><B>Parameters:</B><DD><CODE>ers</CODE> - the array of EventRecords to be inserted</DL>
359</DD>
360</DL>
361<HR>
362
363<A NAME="pack(org.apache.hadoop.contrib.failmon.SerializedRecord)"><!-- --></A><H3>
364pack</H3>
365<PRE>
366public 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>pack</B>(<A HREF="../../../../../org/apache/hadoop/contrib/failmon/SerializedRecord.html" title="class in org.apache.hadoop.contrib.failmon">SerializedRecord</A>&nbsp;sr)</PRE>
367<DL>
368<DD>Pack a SerializedRecord into an array of bytes
369<P>
370<DD><DL>
371<DT><B>Parameters:</B><DD><CODE>sr</CODE> - the SerializedRecord to be packed</DL>
372</DD>
373</DL>
374<HR>
375
376<A NAME="upload()"><!-- --></A><H3>
377upload</H3>
378<PRE>
379public void <B>upload</B>()</PRE>
380<DL>
381<DD>Upload the local file store into HDFS, after it
382 compressing it. Then a new local file is created
383 as a temporary record store.
384<P>
385<DD><DL>
386</DL>
387</DD>
388</DL>
389<HR>
390
391<A NAME="zipCompress(java.lang.String)"><!-- --></A><H3>
392zipCompress</H3>
393<PRE>
394public static void <B>zipCompress</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;filename)
395                        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>
396<DL>
397<DD>Compress a text file using the ZIP compressing algorithm.
398<P>
399<DD><DL>
400<DT><B>Parameters:</B><DD><CODE>filename</CODE> - the path to the file to be compressed
401<DT><B>Throws:</B>
402<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>
403</DD>
404</DL>
405<HR>
406
407<A NAME="copyToHDFS(java.lang.String, java.lang.String)"><!-- --></A><H3>
408copyToHDFS</H3>
409<PRE>
410public static void <B>copyToHDFS</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;localFile,
411                              <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;hdfsFile)
412                       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>
413<DL>
414<DD>Copy a local file to HDFS
415<P>
416<DD><DL>
417<DT><B>Parameters:</B><DD><CODE>localFile</CODE> - the filename of the local file<DD><CODE>hdfsFile</CODE> - the HDFS filename to copy to
418<DT><B>Throws:</B>
419<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>
420</DD>
421</DL>
422<HR>
423
424<A NAME="close()"><!-- --></A><H3>
425close</H3>
426<PRE>
427public void <B>close</B>()</PRE>
428<DL>
429<DD>Close the temporary local file
430<P>
431<DD><DL>
432</DL>
433</DD>
434</DL>
435<!-- ========= END OF CLASS DATA ========= -->
436<HR>
437
438
439<!-- ======= START OF BOTTOM NAVBAR ====== -->
440<A NAME="navbar_bottom"><!-- --></A>
441<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
442<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
443<TR>
444<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
445<A NAME="navbar_bottom_firstrow"><!-- --></A>
446<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
447  <TR ALIGN="center" VALIGN="top">
448  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
449  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
450  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
451  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/LocalStore.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
452  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
453  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
454  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
455  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
456  </TR>
457</TABLE>
458</TD>
459<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
460</EM>
461</TD>
462</TR>
463
464<TR>
465<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
466&nbsp;<A HREF="../../../../../org/apache/hadoop/contrib/failmon/HDFSMerger.html" title="class in org.apache.hadoop.contrib.failmon"><B>PREV CLASS</B></A>&nbsp;
467&nbsp;<A HREF="../../../../../org/apache/hadoop/contrib/failmon/LogParser.html" title="class in org.apache.hadoop.contrib.failmon"><B>NEXT CLASS</B></A></FONT></TD>
468<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
469  <A HREF="../../../../../index.html?org/apache/hadoop/contrib/failmon/LocalStore.html" target="_top"><B>FRAMES</B></A>  &nbsp;
470&nbsp;<A HREF="LocalStore.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
471&nbsp;<SCRIPT type="text/javascript">
472  <!--
473  if(window==top) {
474    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
475  }
476  //-->
477</SCRIPT>
478<NOSCRIPT>
479  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
480</NOSCRIPT>
481
482
483</FONT></TD>
484</TR>
485<TR>
486<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
487  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>
488<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
489DETAIL:&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>
490</TR>
491</TABLE>
492<A NAME="skip-navbar_bottom"></A>
493<!-- ======== END OF BOTTOM NAVBAR ======= -->
494
495<HR>
496Copyright &copy; 2009 The Apache Software Foundation
497</BODY>
498</HTML>
Note: See TracBrowser for help on using the repository browser.