|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.lib.instrumentation.AbstractInstrument org.apache.openjpa.instrumentation.AbstractPreparedQueryCacheInstrument
public abstract class AbstractPreparedQueryCacheInstrument
Provides a basic instrument implementation wrapper for the prepared query cache. This class can be extended to create a provider specific instrument for the prepared query cache.
Field Summary | |
---|---|
static long |
NO_STATS
|
Constructor Summary | |
---|---|
AbstractPreparedQueryCacheInstrument()
|
Method Summary | |
---|---|
String |
getConfigId()
|
String |
getContextRef()
|
long |
getExecutionCount()
Returns number of total execution requests since last reset |
long |
getExecutionCount(String query)
Returns number of total execution requests since last reset |
long |
getHitCount()
Returns number of total read requests that have been found in cache since last reset. |
long |
getHitCount(String query)
Returns number of total read requests that have been found in cache since last reset. |
InstrumentationLevel |
getLevel()
Gets the instrumentation level of this instrument. |
long |
getTotalExecutionCount()
Returns number of total exec requests since start. |
long |
getTotalExecutionCount(String query)
Returns number of total exec requests since start. |
long |
getTotalHitCount()
Returns number of total read requests that has been found since start. |
long |
getTotalHitCount(String query)
Returns number of total read requests that has been found since start. |
Set<String> |
queries()
Returns all queries currently tracked in the cache. |
void |
reset()
Resets cache statistics |
void |
setConfigId(String cid)
|
void |
setContextRef(String cref)
|
void |
setPreparedQueryCache(PreparedQueryCache qc)
|
Date |
sinceDate()
Returns date since cache statistics collection were last reset. |
Date |
startDate()
Returns date cache statistics collection started. |
Methods inherited from class org.apache.openjpa.lib.instrumentation.AbstractInstrument |
---|
getContext, getName, getOptions, getProvider, initialize, isStarted, restart, setContext, setOptions, setProvider, setStarted |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.openjpa.lib.instrumentation.Instrument |
---|
start, stop |
Field Detail |
---|
public static final long NO_STATS
Constructor Detail |
---|
public AbstractPreparedQueryCacheInstrument()
Method Detail |
---|
public void setConfigId(String cid)
public void setContextRef(String cref)
public String getConfigId()
public String getContextRef()
public void setPreparedQueryCache(PreparedQueryCache qc)
public long getExecutionCount()
PreparedQueryCacheInstrument
getExecutionCount
in interface PreparedQueryCacheInstrument
public long getExecutionCount(String query)
PreparedQueryCacheInstrument
getExecutionCount
in interface PreparedQueryCacheInstrument
public long getTotalExecutionCount()
PreparedQueryCacheInstrument
getTotalExecutionCount
in interface PreparedQueryCacheInstrument
public long getTotalExecutionCount(String query)
PreparedQueryCacheInstrument
getTotalExecutionCount
in interface PreparedQueryCacheInstrument
public long getHitCount()
PreparedQueryCacheInstrument
getHitCount
in interface PreparedQueryCacheInstrument
public long getHitCount(String query)
PreparedQueryCacheInstrument
getHitCount
in interface PreparedQueryCacheInstrument
public long getTotalHitCount()
PreparedQueryCacheInstrument
getTotalHitCount
in interface PreparedQueryCacheInstrument
public long getTotalHitCount(String query)
PreparedQueryCacheInstrument
getTotalHitCount
in interface PreparedQueryCacheInstrument
public void reset()
PreparedQueryCacheInstrument
reset
in interface PreparedQueryCacheInstrument
public Date sinceDate()
PreparedQueryCacheInstrument
sinceDate
in interface PreparedQueryCacheInstrument
public Date startDate()
PreparedQueryCacheInstrument
startDate
in interface PreparedQueryCacheInstrument
public Set<String> queries()
PreparedQueryCacheInstrument
queries
in interface PreparedQueryCacheInstrument
public InstrumentationLevel getLevel()
Instrument
getLevel
in interface Instrument
getLevel
in class AbstractInstrument
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |