Interface QueryCacheInstrument
-
- All Known Subinterfaces:
QueryCacheJMXInstrumentMBean
- All Known Implementing Classes:
AbstractQueryCacheInstrument,QueryCacheJMXInstrument
public interface QueryCacheInstrumentInterface for providing instrumented data cache metrics and operations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longcount()Returns the number of total entries in the cache.longgetEvictionCount()Returns number of total evictions since last resetlonggetExecutionCount()Returns number of total execution requests since last resetlonggetExecutionCount(String queryKey)Returns number of total execution requests since last reset for the specified string-ified query key.longgetHitCount()Returns number of total read requests that have been found in cache since last reset.longgetHitCount(String queryKey)Returns number of total read requests that have been found in cache since last reset for the specified string-ified query key.longgetTotalEvictionCount()Returns number of total eviction requests since start.longgetTotalExecutionCount()Returns number of total exec requests since start.longgetTotalExecutionCount(String queryKey)Returns number of total exec requests since start for the specified string-ified query key.longgetTotalHitCount()Returns number of total read requests that has been found since start.longgetTotalHitCount(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 the string-ified keys for query results in the cache.voidreset()Resets cache statisticsDatesinceDate()Returns date since cache statistics collection were last reset.DatestartDate()Returns date cache statistics collection started.
-
-
-
Method Detail
-
getTotalExecutionCount
long getTotalExecutionCount()
Returns number of total exec requests since start.
-
getTotalExecutionCount
long getTotalExecutionCount(String queryKey)
Returns number of total exec requests since start for the specified string-ified query key.
-
getExecutionCount
long getExecutionCount()
Returns number of total execution requests since last reset
-
getExecutionCount
long getExecutionCount(String queryKey)
Returns number of total execution requests since last reset for the specified string-ified query key.
-
getHitCount
long getHitCount()
Returns number of total read requests that have been found in cache since last reset.
-
getHitCount
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.
-
getTotalHitCount
long getTotalHitCount()
Returns number of total read requests that has been found since start.
-
getTotalHitCount
long getTotalHitCount(String queryKey)
Returns number of total read requests that has been found since start for the specified string-ified query key.
-
reset
void reset()
Resets cache statistics
-
sinceDate
Date sinceDate()
Returns date since cache statistics collection were last reset.
-
startDate
Date startDate()
Returns date cache statistics collection started.
-
getEvictionCount
long getEvictionCount()
Returns number of total evictions since last reset
-
getTotalEvictionCount
long getTotalEvictionCount()
Returns number of total eviction requests since start.
-
count
long count()
Returns the number of total entries in the cache.- Returns:
- entries
-
-