abstractrecorder.html

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

HTML
927 行
字号
<TD><CODE><B><A HREF="../../mondrian/recorder/AbstractRecorder.html#reportError(java.lang.Exception)">reportError</A></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)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add an Exception.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/recorder/AbstractRecorder.html#reportError(java.lang.Exception, java.lang.Object)">reportError</A></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)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add an Exception and extra informaton.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/recorder/AbstractRecorder.html#reportError(java.lang.String)">reportError</A></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)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add an error message.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/recorder/AbstractRecorder.html#reportError(java.lang.String, java.lang.Object)">reportError</A></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)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add an error message and extra information.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/recorder/AbstractRecorder.html#reportInfo(java.lang.String)">reportInfo</A></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)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add an informational message.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/recorder/AbstractRecorder.html#reportInfo(java.lang.String, java.lang.Object)">reportInfo</A></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)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add an informational message  and extra information.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/recorder/AbstractRecorder.html#reportWarning(java.lang.String)">reportWarning</A></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)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add a warning message.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/recorder/AbstractRecorder.html#reportWarning(java.lang.String, java.lang.Object)">reportWarning</A></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)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add a warning message and extra information.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/recorder/AbstractRecorder.html#throwRTException()">throwRTException</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This simply throws a RTException.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#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#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#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#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="DEFAULT_MSG_LIMIT"><!-- --></A><H3>DEFAULT_MSG_LIMIT</H3><PRE>public static final int <B>DEFAULT_MSG_LIMIT</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#mondrian.recorder.AbstractRecorder.DEFAULT_MSG_LIMIT">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="AbstractRecorder()"><!-- --></A><H3>AbstractRecorder</H3><PRE>protected <B>AbstractRecorder</B>()</PRE><DL></DL><HR><A NAME="AbstractRecorder(int)"><!-- --></A><H3>AbstractRecorder</H3><PRE>protected <B>AbstractRecorder</B>(int&nbsp;errorMsgLimit)</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="logMessage(java.lang.String, java.lang.String, mondrian.recorder.AbstractRecorder.MsgType, org.apache.log4j.Logger)"><!-- --></A><H3>logMessage</H3><PRE>public static void <B>logMessage</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;context,                              <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="../../mondrian/recorder/AbstractRecorder.MsgType.html" title="enum in mondrian.recorder">AbstractRecorder.MsgType</A>&nbsp;msgType,                              org.apache.log4j.Logger&nbsp;logger)</PRE><DL><DD>Helper method to format a message and write to logger.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="clear()"><!-- --></A><H3>clear</H3><PRE>public void <B>clear</B>()</PRE><DL><DD>Resets this MessageRecorder.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/recorder/MessageRecorder.html#clear()">clear</A></CODE> in interface <CODE><A HREF="../../mondrian/recorder/MessageRecorder.html" title="interface in mondrian.recorder">MessageRecorder</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getStartTimeMillis()"><!-- --></A><H3>getStartTimeMillis</H3><PRE>public long <B>getStartTimeMillis</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../mondrian/recorder/MessageRecorder.html#getStartTimeMillis()">MessageRecorder</A></CODE></B></DD><DD>Get the time when the MessageRecorder was created or the last time that the clear method was called.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/recorder/MessageRecorder.html#getStartTimeMillis()">getStartTimeMillis</A></CODE> in interface <CODE><A HREF="../../mondrian/recorder/MessageRecorder.html" title="interface in mondrian.recorder">MessageRecorder</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the start time</DL></DD></DL><HR><A NAME="getRunTimeMillis()"><!-- --></A><H3>getRunTimeMillis</H3><PRE>public long <B>getRunTimeMillis</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../mondrian/recorder/MessageRecorder.html#getRunTimeMillis()">MessageRecorder</A></CODE></B></DD><DD>How long the MessageRecorder has been running since it was created or the last time clear was called.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/recorder/MessageRecorder.html#getRunTimeMillis()">getRunTimeMillis</A></CODE> in interface <CODE><A HREF="../../mondrian/recorder/MessageRecorder.html" title="interface in mondrian.recorder">MessageRecorder</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="hasInformation()"><!-- --></A><H3>hasInformation</H3><PRE>public boolean <B>hasInformation</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../mondrian/recorder/MessageRecorder.html#hasInformation()">MessageRecorder</A></CODE></B></DD><DD>Returns true if there are one or more informational messages.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/recorder/MessageRecorder.html#hasInformation()">hasInformation</A></CODE> in interface <CODE><A HREF="../../mondrian/recorder/MessageRecorder.html" title="interface in mondrian.recorder">MessageRecorder</A></CODE></DL></DD><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>public boolean <B>hasWarnings</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../mondrian/recorder/MessageRecorder.html#hasWarnings()">MessageRecorder</A></CODE></B></DD><DD>Returns true if there are one or more warning messages.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/recorder/MessageRecorder.html#hasWarnings()">hasWarnings</A></CODE> in interface <CODE><A HREF="../../mondrian/recorder/MessageRecorder.html" title="interface in mondrian.recorder">MessageRecorder</A></CODE></DL></DD><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>public boolean <B>hasErrors</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../mondrian/recorder/MessageRecorder.html#hasErrors()">MessageRecorder</A></CODE></B></DD><DD>Returns true if there are one or more error messages.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/recorder/MessageRecorder.html#hasErrors()">hasErrors</A></CODE> in interface <CODE><A HREF="../../mondrian/recorder/MessageRecorder.html" title="interface in mondrian.recorder">MessageRecorder</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if there are one or more errors.</DL></DD></DL><HR><A NAME="getInfoCount()"><!-- --></A><H3>getInfoCount</H3><PRE>public int <B>getInfoCount</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getWarningCount()"><!-- --></A><H3>getWarningCount</H3><PRE>public int <B>getWarningCount</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getErrorCount()"><!-- --></A><H3>getErrorCount</H3><PRE>public int <B>getErrorCount</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getContext()"><!-- --></A><H3>

⌨️ 快捷键说明

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