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, setStarted
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
start, stop
public 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()
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
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.