messagerecorder.html

来自「基于mondrian 开源框架进行OLAP多维分析」· HTML 代码 · 共 668 行 · 第 1/2 页

HTML
668
字号
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="clear()"><!-- --></A><H3>clear</H3><PRE>void <B>clear</B>()</PRE><DL><DD>Clear all context, warnings and errors from the MessageRecorder. After calling this method the MessageRecorder implemenation should be in the same state as if it were just constructed.<P><DD><DL></DL></DD></DL><HR><A NAME="getStartTimeMillis()"><!-- --></A><H3>getStartTimeMillis</H3><PRE>long <B>getStartTimeMillis</B>()</PRE><DL><DD>Get the time when the MessageRecorder was created or the last time that the clear method was called.<P><DD><DL><DT><B>Returns:</B><DD>the start time</DL></DD></DL><HR><A NAME="getRunTimeMillis()"><!-- --></A><H3>getRunTimeMillis</H3><PRE>long <B>getRunTimeMillis</B>()</PRE><DL><DD>How long the MessageRecorder has been running since it was created or the last time clear was called.<P><DD><DL></DL></DD></DL><HR><A NAME="hasInformation()"><!-- --></A><H3>hasInformation</H3><PRE>boolean <B>hasInformation</B>()</PRE><DL><DD>Returns true if there are one or more informational messages.<P><DD><DL><DT><B>Returns:</B><DD>true if there are one or more infos.</DL></DD></DL><HR><A NAME="hasWarnings()"><!-- --></A><H3>hasWarnings</H3><PRE>boolean <B>hasWarnings</B>()</PRE><DL><DD>Returns true if there are one or more warning messages.<P><DD><DL><DT><B>Returns:</B><DD>true if there are one or more warnings.</DL></DD></DL><HR><A NAME="hasErrors()"><!-- --></A><H3>hasErrors</H3><PRE>boolean <B>hasErrors</B>()</PRE><DL><DD>Returns true if there are one or more error messages.<P><DD><DL><DT><B>Returns:</B><DD>true if there are one or more errors.</DL></DD></DL><HR><A NAME="getContext()"><!-- --></A><H3>getContext</H3><PRE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getContext</B>()</PRE><DL><DD>Get the current context string.<P><DD><DL><DT><B>Returns:</B><DD>the context string.</DL></DD></DL><HR><A NAME="pushContextName(java.lang.String)"><!-- --></A><H3>pushContextName</H3><PRE>void <B>pushContextName</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name)</PRE><DL><DD>Add the name parameter to the current context.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - </DL></DD></DL><HR><A NAME="popContextName()"><!-- --></A><H3>popContextName</H3><PRE>void <B>popContextName</B>()</PRE><DL><DD>Remove the last context name added.<P><DD><DL></DL></DD></DL><HR><A NAME="throwRTException()"><!-- --></A><H3>throwRTException</H3><PRE>void <B>throwRTException</B>()                      throws <A HREF="../../mondrian/recorder/RecorderException.html" title="class in mondrian.recorder">RecorderException</A></PRE><DL><DD>This simply throws a RTException. A client calls this if 1) there is one or more error messages reported and 2) the client wishes to stop processing. Implementations of this method should only throw the RTException if there have been errors reported - if there are no errors, then this method does nothing.<P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../mondrian/recorder/RecorderException.html" title="class in mondrian.recorder">RecorderException</A></CODE></DL></DD></DL><HR><A NAME="reportError(java.lang.Exception)"><!-- --></A><H3>reportError</H3><PRE>void <B>reportError</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A>&nbsp;ex)                 throws <A HREF="../../mondrian/recorder/RecorderException.html" title="class in mondrian.recorder">RecorderException</A></PRE><DL><DD>Add an Exception.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>ex</CODE> - the Exception added.<DT><B>Throws:</B><DD><CODE><A HREF="../../mondrian/recorder/RecorderException.html" title="class in mondrian.recorder">RecorderException</A></CODE> - if too many error messages have been added.</DL></DD></DL><HR><A NAME="reportError(java.lang.Exception, java.lang.Object)"><!-- --></A><H3>reportError</H3><PRE>void <B>reportError</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A>&nbsp;ex,                 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;info)                 throws <A HREF="../../mondrian/recorder/RecorderException.html" title="class in mondrian.recorder">RecorderException</A></PRE><DL><DD>Add an Exception and extra informaton.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>ex</CODE> - the Exception added.<DD><CODE>info</CODE> - extra information (not meant to be part of printed message)<DT><B>Throws:</B><DD><CODE><A HREF="../../mondrian/recorder/RecorderException.html" title="class in mondrian.recorder">RecorderException</A></CODE> - if too many error messages have been added.</DL></DD></DL><HR><A NAME="reportError(java.lang.String)"><!-- --></A><H3>reportError</H3><PRE>void <B>reportError</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;msg)                 throws <A HREF="../../mondrian/recorder/RecorderException.html" title="class in mondrian.recorder">RecorderException</A></PRE><DL><DD>Add an error message.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>msg</CODE> - the text of the error message.<DT><B>Throws:</B><DD><CODE><A HREF="../../mondrian/recorder/RecorderException.html" title="class in mondrian.recorder">RecorderException</A></CODE> - if too many error messages have been added.</DL></DD></DL><HR><A NAME="reportError(java.lang.String, java.lang.Object)"><!-- --></A><H3>reportError</H3><PRE>void <B>reportError</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;msg,                 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;info)                 throws <A HREF="../../mondrian/recorder/RecorderException.html" title="class in mondrian.recorder">RecorderException</A></PRE><DL><DD>Add an error message and extra information.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>msg</CODE> - the text of the error message.<DD><CODE>info</CODE> - extra information (not meant to be part of printed message)<DT><B>Throws:</B><DD><CODE><A HREF="../../mondrian/recorder/RecorderException.html" title="class in mondrian.recorder">RecorderException</A></CODE> - if too many error messages have been added.</DL></DD></DL><HR><A NAME="reportWarning(java.lang.String)"><!-- --></A><H3>reportWarning</H3><PRE>void <B>reportWarning</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;msg)</PRE><DL><DD>Add a warning message.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>msg</CODE> - the text of the warning message.</DL></DD></DL><HR><A NAME="reportWarning(java.lang.String, java.lang.Object)"><!-- --></A><H3>reportWarning</H3><PRE>void <B>reportWarning</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;msg,                   <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;info)</PRE><DL><DD>Add a warning message and extra information.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>msg</CODE> - the text of the warning message.<DD><CODE>info</CODE> - extra information (not meant to be part of printed message)</DL></DD></DL><HR><A NAME="reportInfo(java.lang.String)"><!-- --></A><H3>reportInfo</H3><PRE>void <B>reportInfo</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;msg)</PRE><DL><DD>Add an informational message.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>msg</CODE> - the text of the info message.</DL></DD></DL><HR><A NAME="reportInfo(java.lang.String, java.lang.Object)"><!-- --></A><H3>reportInfo</H3><PRE>void <B>reportInfo</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;msg,                <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;info)</PRE><DL><DD>Add an informational message  and extra information.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>msg</CODE> - the text of the info message.<DD><CODE>info</CODE> - extra information (not meant to be part of printed message)</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><a href="http://sourceforge.net/projects/mondrian"><img src="http://sourceforge.net/sflogo.php?group_id=35302&type=1" width="88" height="31" border="0" alt="SourceForge.net_Logo"></a></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../mondrian/recorder/LoggerRecorder.html" title="class in mondrian.recorder"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../mondrian/recorder/PrintStreamRecorder.html" title="class in mondrian.recorder"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html?mondrian/recorder/MessageRecorder.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="MessageRecorder.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?