public abstract class AbstractQueryCacheInstrument extends AbstractInstrument implements QueryCacheInstrument
Modifier and Type | Field and Description |
---|---|
static long |
NO_STATS
Value indicating that cache statistics are not available.
|
Constructor and Description |
---|
AbstractQueryCacheInstrument() |
Modifier and Type | Method and Description |
---|---|
long |
count()
Returns the number of total entries in the cache.
|
String |
getConfigId() |
String |
getContextRef() |
long |
getEvictionCount()
Returns number of total evictions since last reset
|
long |
getExecutionCount()
Returns number of total execution requests since last reset
|
long |
getExecutionCount(String queryKey)
Returns number of total execution requests since last reset for
the specified string-ified query key.
|
long |
getHitCount()
Returns number of total read requests that have been found in cache since
last reset.
|
long |
getHitCount(String queryKey)
Returns number of total read requests that have been found in cache since
last reset for the specified string-ified query key.
|
InstrumentationLevel |
getLevel()
Gets the instrumentation level of this instrument.
|
long |
getTotalEvictionCount()
Returns number of total eviction requests since start.
|
long |
getTotalExecutionCount()
Returns number of total exec requests since start.
|
long |
getTotalExecutionCount(String queryKey)
Returns number of total exec requests since start for
the specified string-ified query key.
|
long |
getTotalHitCount()
Returns number of total read requests that has been found since start.
|
long |
getTotalHitCount(String queryKey)
Returns number of total read requests that has been found since start for
the specified string-ified query key.
|
Set<String> |
queryKeys()
Returns all query keys currently tracked in the cache.
|
void |
reset()
Resets cache statistics
|
void |
setConfigId(String cid) |
void |
setContextRef(String cref) |
void |
setPreparedQueryCache(QueryCache qc) |
void |
setQueryCache(QueryCache 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 void setQueryCache(QueryCache qc)
public void setConfigId(String cid)
public void setContextRef(String cref)
public String getConfigId()
public String getContextRef()
public void setPreparedQueryCache(QueryCache qc)
public long getExecutionCount()
QueryCacheInstrument
getExecutionCount
in interface QueryCacheInstrument
public long getExecutionCount(String queryKey)
QueryCacheInstrument
getExecutionCount
in interface QueryCacheInstrument
public long getTotalExecutionCount()
QueryCacheInstrument
getTotalExecutionCount
in interface QueryCacheInstrument
public long getTotalExecutionCount(String queryKey)
QueryCacheInstrument
getTotalExecutionCount
in interface QueryCacheInstrument
public long getHitCount()
QueryCacheInstrument
getHitCount
in interface QueryCacheInstrument
public long getHitCount(String queryKey)
QueryCacheInstrument
getHitCount
in interface QueryCacheInstrument
public long getTotalHitCount()
QueryCacheInstrument
getTotalHitCount
in interface QueryCacheInstrument
public long getTotalHitCount(String queryKey)
QueryCacheInstrument
getTotalHitCount
in interface QueryCacheInstrument
public void reset()
QueryCacheInstrument
reset
in interface QueryCacheInstrument
public Date sinceDate()
QueryCacheInstrument
sinceDate
in interface QueryCacheInstrument
public Date startDate()
QueryCacheInstrument
startDate
in interface QueryCacheInstrument
public long getEvictionCount()
getEvictionCount
in interface QueryCacheInstrument
public long getTotalEvictionCount()
getTotalEvictionCount
in interface QueryCacheInstrument
public Set<String> queryKeys()
queryKeys
in interface QueryCacheInstrument
public long count()
QueryCacheInstrument
count
in interface QueryCacheInstrument
public InstrumentationLevel getLevel()
Instrument
getLevel
in interface Instrument
getLevel
in class AbstractInstrument
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.