[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 | EventRecord (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="EventRecord (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/EventRecord.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/Environment.html" title="class in org.apache.hadoop.contrib.failmon"><B>PREV CLASS</B></A> |
---|
| 59 | <A HREF="../../../../../org/apache/hadoop/contrib/failmon/Executor.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/EventRecord.html" target="_top"><B>FRAMES</B></A> |
---|
| 62 | <A HREF="EventRecord.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 | FIELD | <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: FIELD | <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 EventRecord</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.EventRecord</B> |
---|
| 97 | </PRE> |
---|
| 98 | <HR> |
---|
| 99 | <DL> |
---|
| 100 | <DT><PRE>public class <B>EventRecord</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 | Objects of this class represent metrics collected for |
---|
| 105 | a specific hardware source. Each EventRecord contains a HashMap of |
---|
| 106 | (key, value) pairs, each of which represents a property of |
---|
| 107 | the metered value. For instance, when parsing a log file, an |
---|
| 108 | EventRecord is created for each log entry, which contains |
---|
| 109 | the hostname and the ip addresses of the node, timestamp of |
---|
| 110 | the log entry, the actual message etc. Each and every EventRecord |
---|
| 111 | contains the hostname of the machine on which it was collected, |
---|
| 112 | its IP address and the time of collection. |
---|
| 113 | |
---|
| 114 | The main purpose of this class is to provide a uniform format |
---|
| 115 | for records collected from various system compontents (logs, |
---|
| 116 | ifconfig, smartmontools, lm-sensors etc). All metric values are |
---|
| 117 | converted into this format after they are collected by a |
---|
| 118 | Monitored object. |
---|
| 119 | <P> |
---|
| 120 | |
---|
| 121 | <P> |
---|
| 122 | <HR> |
---|
| 123 | |
---|
| 124 | <P> |
---|
| 125 | |
---|
| 126 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
| 127 | |
---|
| 128 | <A NAME="constructor_summary"><!-- --></A> |
---|
| 129 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 130 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 131 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 132 | <B>Constructor Summary</B></FONT></TH> |
---|
| 133 | </TR> |
---|
| 134 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 135 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/EventRecord.html#EventRecord()">EventRecord</A></B>()</CODE> |
---|
| 136 | |
---|
| 137 | <BR> |
---|
| 138 | Create the EventRecord with no fields other than "invalid" as |
---|
| 139 | the hostname.</TD> |
---|
| 140 | </TR> |
---|
| 141 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 142 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/EventRecord.html#EventRecord(java.lang.String, java.lang.Object[], java.util.Calendar, java.lang.String, java.lang.String, java.lang.String, java.lang.String)">EventRecord</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> _hostname, |
---|
| 143 | <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>[] _ips, |
---|
| 144 | <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</A> _timestamp, |
---|
| 145 | <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> _type, |
---|
| 146 | <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> _logLevel, |
---|
| 147 | <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> _source, |
---|
| 148 | <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> _message)</CODE> |
---|
| 149 | |
---|
| 150 | <BR> |
---|
| 151 | Create the EventRecord given the most common properties |
---|
| 152 | among different metric types.</TD> |
---|
| 153 | </TR> |
---|
| 154 | </TABLE> |
---|
| 155 | |
---|
| 156 | <!-- ========== METHOD SUMMARY =========== --> |
---|
| 157 | |
---|
| 158 | <A NAME="method_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>Method Summary</B></FONT></TH> |
---|
| 163 | </TR> |
---|
| 164 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 165 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 166 | <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></FONT></TD> |
---|
| 167 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/EventRecord.html#get(java.lang.String)">get</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> fieldName)</CODE> |
---|
| 168 | |
---|
| 169 | <BR> |
---|
| 170 | Get the value of a property of the EventRecord.</TD> |
---|
| 171 | </TR> |
---|
| 172 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 173 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 174 | <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</A><<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>,<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></FONT></TD> |
---|
| 175 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/EventRecord.html#getMap()">getMap</A></B>()</CODE> |
---|
| 176 | |
---|
| 177 | <BR> |
---|
| 178 | Return the HashMap of properties of the EventRecord.</TD> |
---|
| 179 | </TR> |
---|
| 180 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 181 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 182 | <CODE> boolean</CODE></FONT></TD> |
---|
| 183 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/EventRecord.html#isValid()">isValid</A></B>()</CODE> |
---|
| 184 | |
---|
| 185 | <BR> |
---|
| 186 | Check if the EventRecord is a valid one, i.e., whether |
---|
| 187 | it represents meaningful metric values.</TD> |
---|
| 188 | </TR> |
---|
| 189 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 190 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 191 | <CODE> void</CODE></FONT></TD> |
---|
| 192 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/contrib/failmon/EventRecord.html#set(java.lang.String, java.lang.Object)">set</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> fieldName, |
---|
| 193 | <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> fieldValue)</CODE> |
---|
| 194 | |
---|
| 195 | <BR> |
---|
| 196 | Set the value of a property of the EventRecord.</TD> |
---|
| 197 | </TR> |
---|
| 198 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 199 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 200 | <CODE> <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/contrib/failmon/EventRecord.html#toString()">toString</A></B>()</CODE> |
---|
| 202 | |
---|
| 203 | <BR> |
---|
| 204 | Creates and returns a string representation of the object.</TD> |
---|
| 205 | </TR> |
---|
| 206 | </TABLE> |
---|
| 207 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
| 208 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 209 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
| 210 | <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> |
---|
| 211 | </TR> |
---|
| 212 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 213 | <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> |
---|
| 214 | </TR> |
---|
| 215 | </TABLE> |
---|
| 216 | |
---|
| 217 | <P> |
---|
| 218 | |
---|
| 219 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
| 220 | |
---|
| 221 | <A NAME="constructor_detail"><!-- --></A> |
---|
| 222 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 223 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 224 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 225 | <B>Constructor Detail</B></FONT></TH> |
---|
| 226 | </TR> |
---|
| 227 | </TABLE> |
---|
| 228 | |
---|
| 229 | <A NAME="EventRecord(java.lang.String, java.lang.Object[], java.util.Calendar, java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3> |
---|
| 230 | EventRecord</H3> |
---|
| 231 | <PRE> |
---|
| 232 | public <B>EventRecord</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> _hostname, |
---|
| 233 | <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>[] _ips, |
---|
| 234 | <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util">Calendar</A> _timestamp, |
---|
| 235 | <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> _type, |
---|
| 236 | <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> _logLevel, |
---|
| 237 | <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> _source, |
---|
| 238 | <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> _message)</PRE> |
---|
| 239 | <DL> |
---|
| 240 | <DD>Create the EventRecord given the most common properties |
---|
| 241 | among different metric types. |
---|
| 242 | <P> |
---|
| 243 | </DL> |
---|
| 244 | <HR> |
---|
| 245 | |
---|
| 246 | <A NAME="EventRecord()"><!-- --></A><H3> |
---|
| 247 | EventRecord</H3> |
---|
| 248 | <PRE> |
---|
| 249 | public <B>EventRecord</B>()</PRE> |
---|
| 250 | <DL> |
---|
| 251 | <DD>Create the EventRecord with no fields other than "invalid" as |
---|
| 252 | the hostname. This is only used as a dummy. |
---|
| 253 | <P> |
---|
| 254 | </DL> |
---|
| 255 | |
---|
| 256 | <!-- ============ METHOD DETAIL ========== --> |
---|
| 257 | |
---|
| 258 | <A NAME="method_detail"><!-- --></A> |
---|
| 259 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 260 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 261 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 262 | <B>Method Detail</B></FONT></TH> |
---|
| 263 | </TR> |
---|
| 264 | </TABLE> |
---|
| 265 | |
---|
| 266 | <A NAME="getMap()"><!-- --></A><H3> |
---|
| 267 | getMap</H3> |
---|
| 268 | <PRE> |
---|
| 269 | public final <A HREF="http://java.sun.com/javase/6/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</A><<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>,<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>getMap</B>()</PRE> |
---|
| 270 | <DL> |
---|
| 271 | <DD>Return the HashMap of properties of the EventRecord. |
---|
| 272 | <P> |
---|
| 273 | <DD><DL> |
---|
| 274 | |
---|
| 275 | <DT><B>Returns:</B><DD>a HashMap that contains all properties of the record.</DL> |
---|
| 276 | </DD> |
---|
| 277 | </DL> |
---|
| 278 | <HR> |
---|
| 279 | |
---|
| 280 | <A NAME="set(java.lang.String, java.lang.Object)"><!-- --></A><H3> |
---|
| 281 | set</H3> |
---|
| 282 | <PRE> |
---|
| 283 | public void <B>set</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> fieldName, |
---|
| 284 | <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> fieldValue)</PRE> |
---|
| 285 | <DL> |
---|
| 286 | <DD>Set the value of a property of the EventRecord. |
---|
| 287 | <P> |
---|
| 288 | <DD><DL> |
---|
| 289 | <DT><B>Parameters:</B><DD><CODE>fieldName</CODE> - the name of the property to set<DD><CODE>fieldValue</CODE> - the value of the property to set</DL> |
---|
| 290 | </DD> |
---|
| 291 | </DL> |
---|
| 292 | <HR> |
---|
| 293 | |
---|
| 294 | <A NAME="get(java.lang.String)"><!-- --></A><H3> |
---|
| 295 | get</H3> |
---|
| 296 | <PRE> |
---|
| 297 | public <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>get</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> fieldName)</PRE> |
---|
| 298 | <DL> |
---|
| 299 | <DD>Get the value of a property of the EventRecord. |
---|
| 300 | If the property with the specific key is not found, |
---|
| 301 | null is returned. |
---|
| 302 | <P> |
---|
| 303 | <DD><DL> |
---|
| 304 | <DT><B>Parameters:</B><DD><CODE>fieldName</CODE> - the name of the property to get.</DL> |
---|
| 305 | </DD> |
---|
| 306 | </DL> |
---|
| 307 | <HR> |
---|
| 308 | |
---|
| 309 | <A NAME="isValid()"><!-- --></A><H3> |
---|
| 310 | isValid</H3> |
---|
| 311 | <PRE> |
---|
| 312 | public boolean <B>isValid</B>()</PRE> |
---|
| 313 | <DL> |
---|
| 314 | <DD>Check if the EventRecord is a valid one, i.e., whether |
---|
| 315 | it represents meaningful metric values. |
---|
| 316 | <P> |
---|
| 317 | <DD><DL> |
---|
| 318 | |
---|
| 319 | <DT><B>Returns:</B><DD>true if the EventRecord is a valid one, false otherwise.</DL> |
---|
| 320 | </DD> |
---|
| 321 | </DL> |
---|
| 322 | <HR> |
---|
| 323 | |
---|
| 324 | <A NAME="toString()"><!-- --></A><H3> |
---|
| 325 | toString</H3> |
---|
| 326 | <PRE> |
---|
| 327 | public <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> |
---|
| 328 | <DL> |
---|
| 329 | <DD>Creates and returns a string representation of the object. |
---|
| 330 | <P> |
---|
| 331 | <DD><DL> |
---|
| 332 | <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> |
---|
| 333 | </DD> |
---|
| 334 | <DD><DL> |
---|
| 335 | |
---|
| 336 | <DT><B>Returns:</B><DD>a String representation of the object</DL> |
---|
| 337 | </DD> |
---|
| 338 | </DL> |
---|
| 339 | <!-- ========= END OF CLASS DATA ========= --> |
---|
| 340 | <HR> |
---|
| 341 | |
---|
| 342 | |
---|
| 343 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
| 344 | <A NAME="navbar_bottom"><!-- --></A> |
---|
| 345 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
| 346 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 347 | <TR> |
---|
| 348 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 349 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
| 350 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 351 | <TR ALIGN="center" VALIGN="top"> |
---|
| 352 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 353 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 354 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 355 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/EventRecord.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 356 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 357 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 358 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 359 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 360 | </TR> |
---|
| 361 | </TABLE> |
---|
| 362 | </TD> |
---|
| 363 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 364 | </EM> |
---|
| 365 | </TD> |
---|
| 366 | </TR> |
---|
| 367 | |
---|
| 368 | <TR> |
---|
| 369 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 370 | <A HREF="../../../../../org/apache/hadoop/contrib/failmon/Environment.html" title="class in org.apache.hadoop.contrib.failmon"><B>PREV CLASS</B></A> |
---|
| 371 | <A HREF="../../../../../org/apache/hadoop/contrib/failmon/Executor.html" title="class in org.apache.hadoop.contrib.failmon"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 372 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 373 | <A HREF="../../../../../index.html?org/apache/hadoop/contrib/failmon/EventRecord.html" target="_top"><B>FRAMES</B></A> |
---|
| 374 | <A HREF="EventRecord.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 375 | <SCRIPT type="text/javascript"> |
---|
| 376 | <!-- |
---|
| 377 | if(window==top) { |
---|
| 378 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 379 | } |
---|
| 380 | //--> |
---|
| 381 | </SCRIPT> |
---|
| 382 | <NOSCRIPT> |
---|
| 383 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 384 | </NOSCRIPT> |
---|
| 385 | |
---|
| 386 | |
---|
| 387 | </FONT></TD> |
---|
| 388 | </TR> |
---|
| 389 | <TR> |
---|
| 390 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 391 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 392 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 393 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 394 | </TR> |
---|
| 395 | </TABLE> |
---|
| 396 | <A NAME="skip-navbar_bottom"></A> |
---|
| 397 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
| 398 | |
---|
| 399 | <HR> |
---|
| 400 | Copyright © 2009 The Apache Software Foundation |
---|
| 401 | </BODY> |
---|
| 402 | </HTML> |
---|