memorymonitorfactory.html

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

HTML
465
字号
<TD><CODE><B><A HREF="../../mondrian/util/MemoryMonitorFactory.html#setThreadLocalClassName(java.lang.String)">setThreadLocalClassName</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;className)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the class name of a  <code>MemoryMonitor</code> implementation.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_mondrian.util.ObjectFactory.Singleton"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class mondrian.util.<A HREF="../../mondrian/util/ObjectFactory.Singleton.html" title="class in mondrian.util">ObjectFactory.Singleton</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../mondrian/util/ObjectFactory.Singleton.html#getObject(java.util.Properties, java.lang.Class[], java.lang.Object[])">getObject</A>, <A HREF="../../mondrian/util/ObjectFactory.Singleton.html#getTestObject(java.lang.String, java.lang.Class[], java.lang.Object[])">getTestObject</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_mondrian.util.ObjectFactory"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class mondrian.util.<A HREF="../../mondrian/util/ObjectFactory.html" title="class in mondrian.util">ObjectFactory</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../mondrian/util/ObjectFactory.html#defaultCreationException()">defaultCreationException</A>, <A HREF="../../mondrian/util/ObjectFactory.html#getClassName(java.util.Properties)">getClassName</A>, <A HREF="../../mondrian/util/ObjectFactory.html#getObject()">getObject</A>, <A HREF="../../mondrian/util/ObjectFactory.html#getObject(java.lang.Class[], java.lang.Object[])">getObject</A>, <A HREF="../../mondrian/util/ObjectFactory.html#getObject(java.util.Properties)">getObject</A>, <A HREF="../../mondrian/util/ObjectFactory.html#getObject(java.lang.String, java.lang.Class[], java.lang.Object[])">getObject</A>, <A HREF="../../mondrian/util/ObjectFactory.html#removeContext()">removeContext</A>, <A HREF="../../mondrian/util/ObjectFactory.html#restoreContext(java.lang.Object)">restoreContext</A></CODE></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><!-- ============ 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="getMemoryMonitor()"><!-- --></A><H3>getMemoryMonitor</H3><PRE>public static <A HREF="../../mondrian/util/MemoryMonitor.html" title="interface in mondrian.util">MemoryMonitor</A> <B>getMemoryMonitor</B>()</PRE><DL><DD>Access the <code>MemoryMonitorFactory</code> instance.<P><DD><DL><DT><B>Returns:</B><DD>the <code>MemoryMonitor</code>.</DL></DD></DL><HR><A NAME="setThreadLocalClassName(java.lang.String)"><!-- --></A><H3>setThreadLocalClassName</H3><PRE>public static void <B>setThreadLocalClassName</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;className)</PRE><DL><DD>Sets the class name of a  <code>MemoryMonitor</code> implementation. This should be called (obviously) before calling the <code>MemoryMonitorFactory</code> <code>getMemoryMonitor</code> method to get the <code>MemoryMonitor</code> implementation. Generally, this is only used for testing.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>className</CODE> - Class name</DL></DD></DL><HR><A NAME="clearThreadLocalClassName()"><!-- --></A><H3>clearThreadLocalClassName</H3><PRE>public static void <B>clearThreadLocalClassName</B>()</PRE><DL><DD>Clears the class name (regardless of whether a class name was set). When a class name is set using <code>setThreadLocalClassName</code>, the setting whould be done in a try-block and a call to this clear method should be in the finally-clause of that try-block.<P><DD><DL></DL></DD></DL><HR><A NAME="enabled()"><!-- --></A><H3>enabled</H3><PRE>protected boolean <B>enabled</B>()</PRE><DL><DD>Returns whether the use of a <code>MemoryMonitor</code> is enabled.<P><DD><DL><DT><B>Returns:</B><DD><code>true</code> if enabled and <code>false</code> otherwise.</DL></DD></DL><HR><A NAME="getClassName()"><!-- --></A><H3>getClassName</H3><PRE>protected <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getClassName</B>()</PRE><DL><DD>Get the class name set in the <code>ThreadLocal</code> or null.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../mondrian/util/ObjectFactory.html#getClassName()">getClassName</A></CODE> in class <CODE><A HREF="../../mondrian/util/ObjectFactory.html" title="class in mondrian.util">ObjectFactory</A>&lt;<A HREF="../../mondrian/util/MemoryMonitor.html" title="interface in mondrian.util">MemoryMonitor</A>&gt;</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>class name or null.</DL></DD></DL><HR><A NAME="getStringProperty()"><!-- --></A><H3>getStringProperty</H3><PRE>protected <A HREF="http://farrago.sourceforge.net/api/org/eigenbase/util/property/StringProperty.html" title="class or interface in org.eigenbase.util.property">StringProperty</A> <B>getStringProperty</B>()</PRE><DL><DD>Return the <code>MemoryMonitorFactory</code property name.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/util/ObjectFactory.html#getStringProperty()">getStringProperty</A></CODE> in class <CODE><A HREF="../../mondrian/util/ObjectFactory.html" title="class in mondrian.util">ObjectFactory</A>&lt;<A HREF="../../mondrian/util/MemoryMonitor.html" title="interface in mondrian.util">MemoryMonitor</A>&gt;</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>MemoryMonitorFactory</code> property name</DL></DD></DL><HR><A NAME="getDefault(java.lang.Class[], java.lang.Object[])"><!-- --></A><H3>getDefault</H3><PRE>protected <A HREF="../../mondrian/util/MemoryMonitor.html" title="interface in mondrian.util">MemoryMonitor</A> <B>getDefault</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>[]&nbsp;parameterTypes,                                   <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[]&nbsp;parameterValues)                            throws <A HREF="../../mondrian/util/CreationException.html" title="class in mondrian.util">CreationException</A></PRE><DL><DD>The <code>MemoryMonitorFactory</code>'s implementation of the <code>ObjectFactory</code>'s abstract method which returns the default <code>MemoryMonitor</code> instance. For Java4 or if the <code>MemoryMonitorFactory</code> is not enabled then this method returns the "faux" <code>MemoryMonitor</code> implementation, it does nothing. When enabled and for Java5 and above JVMs, and instance of the <code>NotificationMemoryMonitor</code> is returned.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/util/ObjectFactory.html#getDefault(java.lang.Class[], java.lang.Object[])">getDefault</A></CODE> in class <CODE><A HREF="../../mondrian/util/ObjectFactory.html" title="class in mondrian.util">ObjectFactory</A>&lt;<A HREF="../../mondrian/util/MemoryMonitor.html" title="interface in mondrian.util">MemoryMonitor</A>&gt;</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>parameterTypes</CODE> - not used<DD><CODE>parameterValues</CODE> - not used<DT><B>Returns:</B><DD><code>MemoryMonitor</code> instance<DT><B>Throws:</B><DD><CODE><A HREF="../../mondrian/util/CreationException.html" title="class in mondrian.util">CreationException</A></CODE> - if the <code>MemoryMonitor</code> can not be created.</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/util/MemoryMonitor.Test.html" title="interface in mondrian.util"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../mondrian/util/MemoryMonitorTest.html" title="class in mondrian.util"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html?mondrian/util/MemoryMonitorFactory.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="MemoryMonitorFactory.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;<A HREF="#nested_classes_inherited_from_class_mondrian.util.ObjectFactory">NESTED</A>&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_mondrian.util.ObjectFactory.Singleton">FIELD</A>&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 + -
显示快捷键?