[120] | 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> |
---|
| 7 | LocalStore (Hadoop 0.20.1 API) |
---|
| 8 | </TITLE> |
---|
| 9 | |
---|
| 10 | <META NAME="date" CONTENT="2009-09-01"> |
---|
| 11 | |
---|
| 12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> |
---|
| 13 | |
---|
| 14 | <SCRIPT type="text/javascript"> |
---|
| 15 | function windowTitle() |
---|
| 16 | { |
---|
| 17 | if (location.href.indexOf('is-external=true') == -1) { |
---|
| 18 | parent.document.title="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> </TD> |
---|
| 41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 42 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 43 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/LocalStore.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 44 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 45 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 46 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 47 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 48 | </TR> |
---|
| 49 | </TABLE> |
---|
| 50 | </TD> |
---|
| 51 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 52 | </EM> |
---|
| 53 | </TD> |
---|
| 54 | </TR> |
---|
| 55 | |
---|
| 56 | <TR> |
---|
| 57 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 58 | <A HREF="../../../../../org/apache/hadoop/contrib/failmon/HDFSMerger.html" title="class in org.apache.hadoop.contrib.failmon"><B>PREV CLASS</B></A> |
---|
| 59 | <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> |
---|
| 62 | <A HREF="LocalStore.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 63 | <SCRIPT type="text/javascript"> |
---|
| 64 | <!-- |
---|
| 65 | if(window==top) { |
---|
| 66 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 67 | } |
---|
| 68 | //--> |
---|
| 69 | </SCRIPT> |
---|
| 70 | <NOSCRIPT> |
---|
| 71 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 72 | </NOSCRIPT> |
---|
| 73 | |
---|
| 74 | |
---|
| 75 | </FONT></TD> |
---|
| 76 | </TR> |
---|
| 77 | <TR> |
---|
| 78 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 79 | SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 80 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 81 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 82 | </TR> |
---|
| 83 | </TABLE> |
---|
| 84 | <A NAME="skip-navbar_top"></A> |
---|
| 85 | <!-- ========= END OF TOP NAVBAR ========= --> |
---|
| 86 | |
---|
| 87 | <HR> |
---|
| 88 | <!-- ======== START OF CLASS DATA ======== --> |
---|
| 89 | <H2> |
---|
| 90 | <FONT SIZE="-1"> |
---|
| 91 | org.apache.hadoop.contrib.failmon</FONT> |
---|
| 92 | <BR> |
---|
| 93 | Class 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> |
---|
| 104 | This 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 <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 | </TD> |
---|
| 129 | </TR> |
---|
| 130 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 131 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 132 | <CODE>static 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 | </TD> |
---|
| 137 | </TR> |
---|
| 138 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 139 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 140 | <CODE>static 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 | </TD> |
---|
| 145 | </TR> |
---|
| 146 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 147 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 148 | <CODE>static 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 | </TD> |
---|
| 153 | </TR> |
---|
| 154 | </TABLE> |
---|
| 155 | |
---|
| 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 | Create an instance of the class and read the configuration |
---|
| 169 | file to determine some output parameters.</TD> |
---|
| 170 | </TR> |
---|
| 171 | </TABLE> |
---|
| 172 | |
---|
| 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> 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 | 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 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> 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> hdfsFile)</CODE> |
---|
| 194 | |
---|
| 195 | <BR> |
---|
| 196 | 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> 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> er)</CODE> |
---|
| 202 | |
---|
| 203 | <BR> |
---|
| 204 | 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> 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>[] ers)</CODE> |
---|
| 211 | |
---|
| 212 | <BR> |
---|
| 213 | 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 <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> sr)</CODE> |
---|
| 220 | |
---|
| 221 | <BR> |
---|
| 222 | 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> 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 | 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 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> filename)</CODE> |
---|
| 237 | |
---|
| 238 | <BR> |
---|
| 239 | Compress a text file using the ZIP compressing algorithm.</TD> |
---|
| 240 | </TR> |
---|
| 241 | </TABLE> |
---|
| 242 | <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 | |
---|
| 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> |
---|
| 265 | FIELD_SEPARATOR</H3> |
---|
| 266 | <PRE> |
---|
| 267 | public 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> |
---|
| 275 | RECORD_SEPARATOR</H3> |
---|
| 276 | <PRE> |
---|
| 277 | public 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> |
---|
| 285 | COMPRESSION_SUFFIX</H3> |
---|
| 286 | <PRE> |
---|
| 287 | public 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> |
---|
| 295 | UPLOAD_INTERVAL</H3> |
---|
| 296 | <PRE> |
---|
| 297 | public 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> |
---|
| 314 | LocalStore</H3> |
---|
| 315 | <PRE> |
---|
| 316 | public <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> |
---|
| 336 | insert</H3> |
---|
| 337 | <PRE> |
---|
| 338 | public void <B>insert</B>(<A HREF="../../../../../org/apache/hadoop/contrib/failmon/EventRecord.html" title="class in org.apache.hadoop.contrib.failmon">EventRecord</A> 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> |
---|
| 350 | insert</H3> |
---|
| 351 | <PRE> |
---|
| 352 | public void <B>insert</B>(<A HREF="../../../../../org/apache/hadoop/contrib/failmon/EventRecord.html" title="class in org.apache.hadoop.contrib.failmon">EventRecord</A>[] 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> |
---|
| 364 | pack</H3> |
---|
| 365 | <PRE> |
---|
| 366 | public 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> 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> |
---|
| 377 | upload</H3> |
---|
| 378 | <PRE> |
---|
| 379 | public 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> |
---|
| 392 | zipCompress</H3> |
---|
| 393 | <PRE> |
---|
| 394 | public 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> 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> |
---|
| 408 | copyToHDFS</H3> |
---|
| 409 | <PRE> |
---|
| 410 | public 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> 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> 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> |
---|
| 425 | close</H3> |
---|
| 426 | <PRE> |
---|
| 427 | public 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> </TD> |
---|
| 449 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 450 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 451 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/LocalStore.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 452 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 453 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 454 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 455 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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 | <A HREF="../../../../../org/apache/hadoop/contrib/failmon/HDFSMerger.html" title="class in org.apache.hadoop.contrib.failmon"><B>PREV CLASS</B></A> |
---|
| 467 | <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> |
---|
| 470 | <A HREF="LocalStore.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 471 | <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: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 488 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 489 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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> |
---|
| 496 | Copyright © 2009 The Apache Software Foundation |
---|
| 497 | </BODY> |
---|
| 498 | </HTML> |
---|