abstractmemorymonitor.html

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

HTML
725 行
字号
 approach, possibly a file based algorithm, has smaller memory requirements and uses memory less quickly thus one can live with a higher notification threshold percentage.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/util/MemoryMonitor.html#updateListenerThreshold(mondrian.util.MemoryMonitor.Listener, int)">updateListenerThreshold</A></CODE> in interface <CODE><A HREF="../../mondrian/util/MemoryMonitor.html" title="interface in mondrian.util">MemoryMonitor</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - the <code>Listener</code> being updated.<DD><CODE>percentage</CODE> - new percentage threshold.</DL></DD></DL><HR><A NAME="removeListener(mondrian.util.MemoryMonitor.Listener)"><!-- --></A><H3>removeListener</H3><PRE>public boolean <B>removeListener</B>(<A HREF="../../mondrian/util/MemoryMonitor.Listener.html" title="interface in mondrian.util">MemoryMonitor.Listener</A>&nbsp;listener)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../mondrian/util/MemoryMonitor.html#removeListener(mondrian.util.MemoryMonitor.Listener)">MemoryMonitor</A></CODE></B></DD><DD>Removes a <code>Listener</code> from the <code>MemoryMonitor</code>. Returns <code>true</code> if listener was removed and <code>false</code> otherwise.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/util/MemoryMonitor.html#removeListener(mondrian.util.MemoryMonitor.Listener)">removeListener</A></CODE> in interface <CODE><A HREF="../../mondrian/util/MemoryMonitor.html" title="interface in mondrian.util">MemoryMonitor</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - the listener to be removed<DT><B>Returns:</B><DD><code>true</code> if listener was removed.</DL></DD></DL><HR><A NAME="removeAllListener()"><!-- --></A><H3>removeAllListener</H3><PRE>public void <B>removeAllListener</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../mondrian/util/MemoryMonitor.html#removeAllListener()">MemoryMonitor</A></CODE></B></DD><DD>Clear out all <code>Listener</code>s and turnoff JVM memory notification.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/util/MemoryMonitor.html#removeAllListener()">removeAllListener</A></CODE> in interface <CODE><A HREF="../../mondrian/util/MemoryMonitor.html" title="interface in mondrian.util">MemoryMonitor</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="generateLowThreshold()"><!-- --></A><H3>generateLowThreshold</H3><PRE>protected long <B>generateLowThreshold</B>()</PRE><DL><DD>Returns the lowest threshold from the list of <code>Listener</code>s. If there are no <code>Listener</code>s, then return the maximum memory usage. Returns <code>Long.MAX_VALUE</code> if there are no <code>Listener</code>s<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the lowest threshold or <code>Long.MAX_VALUE</code></DL></DD></DL><HR><A NAME="notifyListeners(long, long)"><!-- --></A><H3>notifyListeners</H3><PRE>protected void <B>notifyListeners</B>(long&nbsp;usedMemory,                               long&nbsp;maxMemory)</PRE><DL><DD>Notifies all <code>Listener</code>s that memory is running short.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>usedMemory</CODE> - the current memory used.<DD><CODE>maxMemory</CODE> - the maximum memory.</DL></DD></DL><HR><A NAME="notifyNewLowThreshold(long)"><!-- --></A><H3>notifyNewLowThreshold</H3><PRE>protected void <B>notifyNewLowThreshold</B>(long&nbsp;newLowThreshold)</PRE><DL><DD>Derived classes implement this method if they wish to be notified when there is a new lowest threshold.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newLowThreshold</CODE> - the new low threshold.</DL></DD></DL><HR><A NAME="convertPercentageToThreshold(int)"><!-- --></A><H3>convertPercentageToThreshold</H3><PRE>protected long <B>convertPercentageToThreshold</B>(int&nbsp;percentage)</PRE><DL><DD>Converts a percentage threshold to its corresponding memory value, ( percentage * maximum-memory / 100 ).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>percentage</CODE> - the threshold.<DT><B>Returns:</B><DD>the memory value.</DL></DD></DL><HR><A NAME="convertThresholdToPercentage(long)"><!-- --></A><H3>convertThresholdToPercentage</H3><PRE>protected int <B>convertThresholdToPercentage</B>(long&nbsp;threshold)</PRE><DL><DD>Converts a memory value to its percentage.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>threshold</CODE> - the memory value.<DT><B>Returns:</B><DD>the percentage.</DL></DD></DL><HR><A NAME="usagePercentage()"><!-- --></A><H3>usagePercentage</H3><PRE>protected int <B>usagePercentage</B>()</PRE><DL><DD>Returns how much memory is currently being used as a percentage.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>currently used memory as a percentage.</DL></DD></DL><HR><A NAME="resetFromTest()"><!-- --></A><H3>resetFromTest</H3><PRE>public void <B>resetFromTest</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../mondrian/util/MemoryMonitor.Test.html#resetFromTest()">MemoryMonitor.Test</A></CODE></B></DD><DD>This should only be called when one is switching from a test <code>MemoryMonitor</code> back to the default system <code>MemoryMonitor</code>. In particular, look at the <code>MemoryMonitorFactory</code>'s <code>clearThreadLocalClassName()</code> method for its usage.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/util/MemoryMonitor.Test.html#resetFromTest()">resetFromTest</A></CODE> in interface <CODE><A HREF="../../mondrian/util/MemoryMonitor.Test.html" title="interface in mondrian.util">MemoryMonitor.Test</A></CODE></DL></DD><DD><DL></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;PREV CLASS&nbsp;&nbsp;<A HREF="../../mondrian/util/AbstractMemoryMonitor.Entry.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/AbstractMemoryMonitor.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="AbstractMemoryMonitor.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_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&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 + -
显示快捷键?