public abstract class AbstractPreparedQueryCacheInstrument extends AbstractInstrument implements PreparedQueryCacheInstrument
| Modifier and Type | Field and Description |
|---|---|
static long |
NO_STATS |
| Constructor and Description |
|---|
AbstractPreparedQueryCacheInstrument() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getContext, getName, getOptions, getProvider, initialize, isStarted, restart, setContext, setOptions, setProvider, setStartedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstart, stoppublic static final long NO_STATS
public AbstractPreparedQueryCacheInstrument()
public void setConfigId(String cid)
public void setContextRef(String cref)
public String getConfigId()
public String getContextRef()
public void setPreparedQueryCache(PreparedQueryCache qc)
public long getExecutionCount()
PreparedQueryCacheInstrumentgetExecutionCount in interface PreparedQueryCacheInstrumentpublic long getExecutionCount(String query)
PreparedQueryCacheInstrumentgetExecutionCount in interface PreparedQueryCacheInstrumentpublic long getTotalExecutionCount()
PreparedQueryCacheInstrumentgetTotalExecutionCount in interface PreparedQueryCacheInstrumentpublic long getTotalExecutionCount(String query)
PreparedQueryCacheInstrumentgetTotalExecutionCount in interface PreparedQueryCacheInstrumentpublic long getHitCount()
PreparedQueryCacheInstrumentgetHitCount in interface PreparedQueryCacheInstrumentpublic long getHitCount(String query)
PreparedQueryCacheInstrumentgetHitCount in interface PreparedQueryCacheInstrumentpublic long getTotalHitCount()
PreparedQueryCacheInstrumentgetTotalHitCount in interface PreparedQueryCacheInstrumentpublic long getTotalHitCount(String query)
PreparedQueryCacheInstrumentgetTotalHitCount in interface PreparedQueryCacheInstrumentpublic void reset()
PreparedQueryCacheInstrumentreset in interface PreparedQueryCacheInstrumentpublic Date sinceDate()
PreparedQueryCacheInstrumentsinceDate in interface PreparedQueryCacheInstrumentpublic Date startDate()
PreparedQueryCacheInstrumentstartDate in interface PreparedQueryCacheInstrumentpublic Set<String> queries()
PreparedQueryCacheInstrumentqueries in interface PreparedQueryCacheInstrumentpublic InstrumentationLevel getLevel()
InstrumentgetLevel in interface InstrumentgetLevel in class AbstractInstrumentCopyright © 2006–2022 Apache Software Foundation. All rights reserved.