| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
| <!--NewPage--> | |
| <HTML> | |
| <HEAD> | |
| <!-- Generated by javadoc (build 1.6.0_29) on Thu Nov 21 14:32:35 CET 2013 --> | |
| <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <TITLE> | |
| DataCacheInstrument (OpenJPA Parent POM 2.3.0 API) | |
| </TITLE> | |
| <META NAME="date" CONTENT="2013-11-21"> | |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> | |
| <SCRIPT type="text/javascript"> | |
| function windowTitle() | |
| { | |
| if (location.href.indexOf('is-external=true') == -1) { | |
| parent.document.title="DataCacheInstrument (OpenJPA Parent POM 2.3.0 API)"; | |
| } | |
| } | |
| </SCRIPT> | |
| <NOSCRIPT> | |
| </NOSCRIPT> | |
| </HEAD> | |
| <BODY BGCOLOR="white" onload="windowTitle();"> | |
| <HR> | |
| <!-- ========= START OF TOP NAVBAR ======= --> | |
| <A NAME="navbar_top"><!-- --></A> | |
| <A HREF="#skip-navbar_top" 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_top_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> </TD> | |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> | |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev">  <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> | |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DataCacheInstrument.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> | |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> | |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> | |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> | |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> | |
| </TR> | |
| </TABLE> | |
| </TD> | |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> | |
| </EM> | |
| </TD> | |
| </TR> | |
| <TR> | |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
|  <A HREF="../../../../org/apache/openjpa/instrumentation/AbstractQueryCacheInstrument.html" title="class in org.apache.openjpa.instrumentation"><B>PREV CLASS</B></A>  | |
|  <A HREF="../../../../org/apache/openjpa/instrumentation/InstrumentationManager.html" title="interface in org.apache.openjpa.instrumentation"><B>NEXT CLASS</B></A></FONT></TD> | |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
| <A HREF="../../../../index.html?org/apache/openjpa/instrumentation/DataCacheInstrument.html" target="_top"><B>FRAMES</B></A>   | |
|  <A HREF="DataCacheInstrument.html" target="_top"><B>NO FRAMES</B></A>   | |
|  <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: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> | |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
| DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> | |
| </TR> | |
| </TABLE> | |
| <A NAME="skip-navbar_top"></A> | |
| <!-- ========= END OF TOP NAVBAR ========= --> | |
| <HR> | |
| <!-- ======== START OF CLASS DATA ======== --> | |
| <H2> | |
| <FONT SIZE="-1"> | |
| org.apache.openjpa.instrumentation</FONT> | |
| <BR> | |
| Interface DataCacheInstrument</H2> | |
| <DL> | |
| <DT><B>All Known Subinterfaces:</B> <DD><A HREF="../../../../org/apache/openjpa/instrumentation/jmx/DataCacheJMXInstrumentMBean.html" title="interface in org.apache.openjpa.instrumentation.jmx">DataCacheJMXInstrumentMBean</A></DD> | |
| </DL> | |
| <DL> | |
| <DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../org/apache/openjpa/instrumentation/AbstractDataCacheInstrument.html" title="class in org.apache.openjpa.instrumentation">AbstractDataCacheInstrument</A>, <A HREF="../../../../org/apache/openjpa/instrumentation/jmx/DataCacheJMXInstrument.html" title="class in org.apache.openjpa.instrumentation.jmx">DataCacheJMXInstrument</A></DD> | |
| </DL> | |
| <HR> | |
| <DL> | |
| <DT><PRE>public interface <B>DataCacheInstrument</B></DL> | |
| </PRE> | |
| <P> | |
| Interface for providing instrumented data cache metrics and operations. | |
| <P> | |
| <P> | |
| <HR> | |
| <P> | |
| <!-- ========== METHOD SUMMARY =========== --> | |
| <A NAME="method_summary"><!-- --></A> | |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
| <B>Method Summary</B></FONT></TH> | |
| </TR> | |
| <TR BGCOLOR="white" CLASS="TableRowColor"> | |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
| <CODE> void</CODE></FONT></TD> | |
| <TD><CODE><B><A HREF="../../../../org/apache/openjpa/instrumentation/DataCacheInstrument.html#cache(java.lang.String, boolean)">cache</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> className, | |
| boolean enable)</CODE> | |
| <BR> | |
|           This method is used to enable/disable caching for the specified className.</TD> | |
| </TR> | |
| <TR BGCOLOR="white" CLASS="TableRowColor"> | |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
| <CODE> void</CODE></FONT></TD> | |
| <TD><CODE><B><A HREF="../../../../org/apache/openjpa/instrumentation/DataCacheInstrument.html#clear()">clear</A></B>()</CODE> | |
| <BR> | |
|           Clears all data from the DataCache.</TD> | |
| </TR> | |
| <TR BGCOLOR="white" CLASS="TableRowColor"> | |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
| <CODE> void</CODE></FONT></TD> | |
| <TD><CODE><B><A HREF="../../../../org/apache/openjpa/instrumentation/DataCacheInstrument.html#collectStatistics(boolean)">collectStatistics</A></B>(boolean enable)</CODE> | |
| <BR> | |
|            </TD> | |
| </TR> | |
| <TR BGCOLOR="white" CLASS="TableRowColor"> | |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
| <CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> | |
| <TD><CODE><B><A HREF="../../../../org/apache/openjpa/instrumentation/DataCacheInstrument.html#getCacheName()">getCacheName</A></B>()</CODE> | |
| <BR> | |
|           Returns the name of the cache</TD> | |
| </TR> | |
| <TR BGCOLOR="white" CLASS="TableRowColor"> | |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
| <CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,long[]></CODE></FONT></TD> | |
| <TD><CODE><B><A HREF="../../../../org/apache/openjpa/instrumentation/DataCacheInstrument.html#getCacheStatistics()">getCacheStatistics</A></B>()</CODE> | |
| <BR> | |
|           Returns the CacheStatistics for the cache.</TD> | |
| </TR> | |
| <TR BGCOLOR="white" CLASS="TableRowColor"> | |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
| <CODE> long</CODE></FONT></TD> | |
| <TD><CODE><B><A HREF="../../../../org/apache/openjpa/instrumentation/DataCacheInstrument.html#getHitCount()">getHitCount</A></B>()</CODE> | |
| <BR> | |
|           Returns the hit count since cache statistics were last reset</TD> | |
| </TR> | |
| <TR BGCOLOR="white" CLASS="TableRowColor"> | |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
| <CODE> long</CODE></FONT></TD> | |
| <TD><CODE><B><A HREF="../../../../org/apache/openjpa/instrumentation/DataCacheInstrument.html#getHitCount(java.lang.String)">getHitCount</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> className)</CODE> | |
| <BR> | |
|           Gets number of total read requests that has been found in cache for the given class since last reset.</TD> | |
| </TR> | |
| <TR BGCOLOR="white" CLASS="TableRowColor"> | |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
| <CODE> long</CODE></FONT></TD> | |
| <TD><CODE><B><A HREF="../../../../org/apache/openjpa/instrumentation/DataCacheInstrument.html#getReadCount()">getReadCount</A></B>()</CODE> | |
| <BR> | |
|           Returns the read count since cache statistics were last reset</TD> | |
| </TR> | |
| <TR BGCOLOR="white" CLASS="TableRowColor"> | |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
| <CODE> long</CODE></FONT></TD> | |
| <TD><CODE><B><A HREF="../../../../org/apache/openjpa/instrumentation/DataCacheInstrument.html#getReadCount(java.lang.String)">getReadCount</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> className)</CODE> | |
| <BR> | |
|           Gets number of total read requests for the given class since last reset.</TD> | |
| </TR> | |
| <TR BGCOLOR="white" CLASS="TableRowColor"> | |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
| <CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</A></CODE></FONT></TD> | |
| <TD><CODE><B><A HREF="../../../../org/apache/openjpa/instrumentation/DataCacheInstrument.html#getStatisticsEnabled()">getStatisticsEnabled</A></B>()</CODE> | |
| <BR> | |
|           Returns true if cache statistics are currently being calculated.</TD> | |
| </TR> | |
| <TR BGCOLOR="white" CLASS="TableRowColor"> | |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
| <CODE> long</CODE></FONT></TD> | |
| <TD><CODE><B><A HREF="../../../../org/apache/openjpa/instrumentation/DataCacheInstrument.html#getTotalHitCount()">getTotalHitCount</A></B>()</CODE> | |
| <BR> | |
|           Returns the total hits since start.</TD> | |
| </TR> | |
| <TR BGCOLOR="white" CLASS="TableRowColor"> | |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
| <CODE> long</CODE></FONT></TD> | |
| <TD><CODE><B><A HREF="../../../../org/apache/openjpa/instrumentation/DataCacheInstrument.html#getTotalHitCount(java.lang.String)">getTotalHitCount</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> className)</CODE> | |
| <BR> | |
|           Gets number of total read requests that has been found in cache for the given class since start.</TD> | |
| </TR> | |
| <TR BGCOLOR="white" CLASS="TableRowColor"> | |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
| <CODE> long</CODE></FONT></TD> | |
| <TD><CODE><B><A HREF="../../../../org/apache/openjpa/instrumentation/DataCacheInstrument.html#getTotalReadCount()">getTotalReadCount</A></B>()</CODE> | |
| <BR> | |
|           Returns the total reads since start.</TD> | |
| </TR> | |
| <TR BGCOLOR="white" CLASS="TableRowColor"> | |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
| <CODE> long</CODE></FONT></TD> | |
| <TD><CODE><B><A HREF="../../../../org/apache/openjpa/instrumentation/DataCacheInstrument.html#getTotalReadCount(java.lang.String)">getTotalReadCount</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> className)</CODE> | |
| <BR> | |
|           Gets number of total read requests for the given class since start.</TD> | |
| </TR> | |
| <TR BGCOLOR="white" CLASS="TableRowColor"> | |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
| <CODE> long</CODE></FONT></TD> | |
| <TD><CODE><B><A HREF="../../../../org/apache/openjpa/instrumentation/DataCacheInstrument.html#getTotalWriteCount()">getTotalWriteCount</A></B>()</CODE> | |
| <BR> | |
|           Returns the total writes since start.</TD> | |
| </TR> | |
| <TR BGCOLOR="white" CLASS="TableRowColor"> | |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
| <CODE> long</CODE></FONT></TD> | |
| <TD><CODE><B><A HREF="../../../../org/apache/openjpa/instrumentation/DataCacheInstrument.html#getTotalWriteCount(java.lang.String)">getTotalWriteCount</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> className)</CODE> | |
| <BR> | |
|           Gets number of total write requests for the given class since start.</TD> | |
| </TR> | |
| <TR BGCOLOR="white" CLASS="TableRowColor"> | |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
| <CODE> long</CODE></FONT></TD> | |
| <TD><CODE><B><A HREF="../../../../org/apache/openjpa/instrumentation/DataCacheInstrument.html#getWriteCount()">getWriteCount</A></B>()</CODE> | |
| <BR> | |
|           Returns the write count since cache statistics were last reset</TD> | |
| </TR> | |
| <TR BGCOLOR="white" CLASS="TableRowColor"> | |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
| <CODE> long</CODE></FONT></TD> | |
| <TD><CODE><B><A HREF="../../../../org/apache/openjpa/instrumentation/DataCacheInstrument.html#getWriteCount(java.lang.String)">getWriteCount</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> className)</CODE> | |
| <BR> | |
|           Gets number of total write requests for the given class since last reset.</TD> | |
| </TR> | |
| <TR BGCOLOR="white" CLASS="TableRowColor"> | |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
| <CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</A>></CODE></FONT></TD> | |
| <TD><CODE><B><A HREF="../../../../org/apache/openjpa/instrumentation/DataCacheInstrument.html#listKnownTypes()">listKnownTypes</A></B>()</CODE> | |
| <BR> | |
|           Returns the names of classes that are known to the cache and whether or not they are currently being cached.</TD> | |
| </TR> | |
| <TR BGCOLOR="white" CLASS="TableRowColor"> | |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
| <CODE> void</CODE></FONT></TD> | |
| <TD><CODE><B><A HREF="../../../../org/apache/openjpa/instrumentation/DataCacheInstrument.html#reset()">reset</A></B>()</CODE> | |
| <BR> | |
|           Resets cache statistics</TD> | |
| </TR> | |
| <TR BGCOLOR="white" CLASS="TableRowColor"> | |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
| <CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</A></CODE></FONT></TD> | |
| <TD><CODE><B><A HREF="../../../../org/apache/openjpa/instrumentation/DataCacheInstrument.html#sinceDate()">sinceDate</A></B>()</CODE> | |
| <BR> | |
|           Returns date since cache statistics collection were last reset.</TD> | |
| </TR> | |
| <TR BGCOLOR="white" CLASS="TableRowColor"> | |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
| <CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</A></CODE></FONT></TD> | |
| <TD><CODE><B><A HREF="../../../../org/apache/openjpa/instrumentation/DataCacheInstrument.html#startDate()">startDate</A></B>()</CODE> | |
| <BR> | |
|           Returns date cache statistics collection started.</TD> | |
| </TR> | |
| </TABLE> | |
|   | |
| <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="getReadCount(java.lang.String)"><!-- --></A><H3> | |
| getReadCount</H3> | |
| <PRE> | |
| long <B>getReadCount</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> className)</PRE> | |
| <DL> | |
| <DD>Gets number of total read requests for the given class since last reset. | |
| <P> | |
| <DD><DL> | |
| </DL> | |
| </DD> | |
| </DL> | |
| <HR> | |
| <A NAME="getHitCount(java.lang.String)"><!-- --></A><H3> | |
| getHitCount</H3> | |
| <PRE> | |
| long <B>getHitCount</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> className)</PRE> | |
| <DL> | |
| <DD>Gets number of total read requests that has been found in cache for the given class since last reset. | |
| <P> | |
| <DD><DL> | |
| </DL> | |
| </DD> | |
| </DL> | |
| <HR> | |
| <A NAME="getWriteCount(java.lang.String)"><!-- --></A><H3> | |
| getWriteCount</H3> | |
| <PRE> | |
| long <B>getWriteCount</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> className)</PRE> | |
| <DL> | |
| <DD>Gets number of total write requests for the given class since last reset. | |
| <P> | |
| <DD><DL> | |
| </DL> | |
| </DD> | |
| </DL> | |
| <HR> | |
| <A NAME="getTotalReadCount(java.lang.String)"><!-- --></A><H3> | |
| getTotalReadCount</H3> | |
| <PRE> | |
| long <B>getTotalReadCount</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> className)</PRE> | |
| <DL> | |
| <DD>Gets number of total read requests for the given class since start. | |
| <P> | |
| <DD><DL> | |
| </DL> | |
| </DD> | |
| </DL> | |
| <HR> | |
| <A NAME="getTotalHitCount(java.lang.String)"><!-- --></A><H3> | |
| getTotalHitCount</H3> | |
| <PRE> | |
| long <B>getTotalHitCount</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> className)</PRE> | |
| <DL> | |
| <DD>Gets number of total read requests that has been found in cache for the given class since start. | |
| <P> | |
| <DD><DL> | |
| </DL> | |
| </DD> | |
| </DL> | |
| <HR> | |
| <A NAME="getTotalWriteCount(java.lang.String)"><!-- --></A><H3> | |
| getTotalWriteCount</H3> | |
| <PRE> | |
| long <B>getTotalWriteCount</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> className)</PRE> | |
| <DL> | |
| <DD>Gets number of total write requests for the given class since start. | |
| <P> | |
| <DD><DL> | |
| </DL> | |
| </DD> | |
| </DL> | |
| <HR> | |
| <A NAME="getCacheName()"><!-- --></A><H3> | |
| getCacheName</H3> | |
| <PRE> | |
| <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getCacheName</B>()</PRE> | |
| <DL> | |
| <DD>Returns the name of the cache | |
| <P> | |
| <DD><DL> | |
| </DL> | |
| </DD> | |
| </DL> | |
| <HR> | |
| <A NAME="getHitCount()"><!-- --></A><H3> | |
| getHitCount</H3> | |
| <PRE> | |
| long <B>getHitCount</B>()</PRE> | |
| <DL> | |
| <DD>Returns the hit count since cache statistics were last reset | |
| <P> | |
| <DD><DL> | |
| </DL> | |
| </DD> | |
| </DL> | |
| <HR> | |
| <A NAME="getReadCount()"><!-- --></A><H3> | |
| getReadCount</H3> | |
| <PRE> | |
| long <B>getReadCount</B>()</PRE> | |
| <DL> | |
| <DD>Returns the read count since cache statistics were last reset | |
| <P> | |
| <DD><DL> | |
| </DL> | |
| </DD> | |
| </DL> | |
| <HR> | |
| <A NAME="getTotalHitCount()"><!-- --></A><H3> | |
| getTotalHitCount</H3> | |
| <PRE> | |
| long <B>getTotalHitCount</B>()</PRE> | |
| <DL> | |
| <DD>Returns the total hits since start. | |
| <P> | |
| <DD><DL> | |
| </DL> | |
| </DD> | |
| </DL> | |
| <HR> | |
| <A NAME="getTotalReadCount()"><!-- --></A><H3> | |
| getTotalReadCount</H3> | |
| <PRE> | |
| long <B>getTotalReadCount</B>()</PRE> | |
| <DL> | |
| <DD>Returns the total reads since start. | |
| <P> | |
| <DD><DL> | |
| </DL> | |
| </DD> | |
| </DL> | |
| <HR> | |
| <A NAME="getTotalWriteCount()"><!-- --></A><H3> | |
| getTotalWriteCount</H3> | |
| <PRE> | |
| long <B>getTotalWriteCount</B>()</PRE> | |
| <DL> | |
| <DD>Returns the total writes since start. | |
| <P> | |
| <DD><DL> | |
| </DL> | |
| </DD> | |
| </DL> | |
| <HR> | |
| <A NAME="getWriteCount()"><!-- --></A><H3> | |
| getWriteCount</H3> | |
| <PRE> | |
| long <B>getWriteCount</B>()</PRE> | |
| <DL> | |
| <DD>Returns the write count since cache statistics were last reset | |
| <P> | |
| <DD><DL> | |
| </DL> | |
| </DD> | |
| </DL> | |
| <HR> | |
| <A NAME="reset()"><!-- --></A><H3> | |
| reset</H3> | |
| <PRE> | |
| void <B>reset</B>()</PRE> | |
| <DL> | |
| <DD>Resets cache statistics | |
| <P> | |
| <DD><DL> | |
| </DL> | |
| </DD> | |
| </DL> | |
| <HR> | |
| <A NAME="sinceDate()"><!-- --></A><H3> | |
| sinceDate</H3> | |
| <PRE> | |
| <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</A> <B>sinceDate</B>()</PRE> | |
| <DL> | |
| <DD>Returns date since cache statistics collection were last reset. | |
| <P> | |
| <DD><DL> | |
| </DL> | |
| </DD> | |
| </DL> | |
| <HR> | |
| <A NAME="startDate()"><!-- --></A><H3> | |
| startDate</H3> | |
| <PRE> | |
| <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</A> <B>startDate</B>()</PRE> | |
| <DL> | |
| <DD>Returns date cache statistics collection started. | |
| <P> | |
| <DD><DL> | |
| </DL> | |
| </DD> | |
| </DL> | |
| <HR> | |
| <A NAME="listKnownTypes()"><!-- --></A><H3> | |
| listKnownTypes</H3> | |
| <PRE> | |
| <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</A>> <B>listKnownTypes</B>()</PRE> | |
| <DL> | |
| <DD>Returns the names of classes that are known to the cache and whether or not they are currently being cached. | |
| <P> | |
| <DD><DL> | |
| </DL> | |
| </DD> | |
| </DL> | |
| <HR> | |
| <A NAME="getStatisticsEnabled()"><!-- --></A><H3> | |
| getStatisticsEnabled</H3> | |
| <PRE> | |
| <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</A> <B>getStatisticsEnabled</B>()</PRE> | |
| <DL> | |
| <DD>Returns true if cache statistics are currently being calculated. False otherwise. | |
| <P> | |
| <DD><DL> | |
| </DL> | |
| </DD> | |
| </DL> | |
| <HR> | |
| <A NAME="collectStatistics(boolean)"><!-- --></A><H3> | |
| collectStatistics</H3> | |
| <PRE> | |
| void <B>collectStatistics</B>(boolean enable)</PRE> | |
| <DL> | |
| <DD><DL> | |
| <DT><B>Parameters:</B><DD><CODE>enable</CODE> - - If true, the cache will start collecting statistics. Else cache statistics will not be collected.</DL> | |
| </DD> | |
| </DL> | |
| <HR> | |
| <A NAME="cache(java.lang.String, boolean)"><!-- --></A><H3> | |
| cache</H3> | |
| <PRE> | |
| void <B>cache</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> className, | |
| boolean enable)</PRE> | |
| <DL> | |
| <DD>This method is used to enable/disable caching for the specified className. | |
| <P> | |
| <DD><DL> | |
| </DL> | |
| </DD> | |
| </DL> | |
| <HR> | |
| <A NAME="getCacheStatistics()"><!-- --></A><H3> | |
| getCacheStatistics</H3> | |
| <PRE> | |
| <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,long[]> <B>getCacheStatistics</B>()</PRE> | |
| <DL> | |
| <DD>Returns the CacheStatistics for the cache. | |
| The format for this map is: | |
| Type(String) => Enabled(Boolean),Read(Long),Hit(Long),Write(Long) | |
| <P> | |
| <DD><DL> | |
| </DL> | |
| </DD> | |
| </DL> | |
| <HR> | |
| <A NAME="clear()"><!-- --></A><H3> | |
| clear</H3> | |
| <PRE> | |
| void <B>clear</B>()</PRE> | |
| <DL> | |
| <DD>Clears all data from the DataCache. | |
| <P> | |
| <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> </TD> | |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> | |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev">  <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> | |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DataCacheInstrument.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> | |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> | |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> | |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> | |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> | |
| </TR> | |
| </TABLE> | |
| </TD> | |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> | |
| </EM> | |
| </TD> | |
| </TR> | |
| <TR> | |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
|  <A HREF="../../../../org/apache/openjpa/instrumentation/AbstractQueryCacheInstrument.html" title="class in org.apache.openjpa.instrumentation"><B>PREV CLASS</B></A>  | |
|  <A HREF="../../../../org/apache/openjpa/instrumentation/InstrumentationManager.html" title="interface in org.apache.openjpa.instrumentation"><B>NEXT CLASS</B></A></FONT></TD> | |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
| <A HREF="../../../../index.html?org/apache/openjpa/instrumentation/DataCacheInstrument.html" target="_top"><B>FRAMES</B></A>   | |
|  <A HREF="DataCacheInstrument.html" target="_top"><B>NO FRAMES</B></A>   | |
|  <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: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> | |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
| DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> | |
| </TR> | |
| </TABLE> | |
| <A NAME="skip-navbar_bottom"></A> | |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> | |
| <HR> | |
| Copyright © 2006–2013 <a href="http://www.apache.org">Apache Software Foundation</a>. All rights reserved. | |
| </BODY> | |
| </HTML> |