public interface DataCacheInstrument
Modifier and Type | Method and Description |
---|---|
void |
cache(String className,
boolean enable)
This method is used to enable/disable caching for the specified className.
|
void |
clear()
Clears all data from the DataCache.
|
void |
collectStatistics(boolean enable) |
String |
getCacheName()
Returns the name of the cache
|
Map<String,long[]> |
getCacheStatistics()
Returns the CacheStatistics for the cache.
|
long |
getHitCount()
Returns the hit count since cache statistics were last reset
|
long |
getHitCount(String className)
Gets number of total read requests that has been found in cache for the given class since last reset.
|
long |
getReadCount()
Returns the read count since cache statistics were last reset
|
long |
getReadCount(String className)
Gets number of total read requests for the given class since last reset.
|
Boolean |
getStatisticsEnabled()
Returns true if cache statistics are currently being calculated.
|
long |
getTotalHitCount()
Returns the total hits since start.
|
long |
getTotalHitCount(String className)
Gets number of total read requests that has been found in cache for the given class since start.
|
long |
getTotalReadCount()
Returns the total reads since start.
|
long |
getTotalReadCount(String className)
Gets number of total read requests for the given class since start.
|
long |
getTotalWriteCount()
Returns the total writes since start.
|
long |
getTotalWriteCount(String className)
Gets number of total write requests for the given class since start.
|
long |
getWriteCount()
Returns the write count since cache statistics were last reset
|
long |
getWriteCount(String className)
Gets number of total write requests for the given class since last reset.
|
Map<String,Boolean> |
listKnownTypes()
Returns the names of classes that are known to the cache and whether or not they are currently being cached.
|
void |
reset()
Resets cache statistics
|
Date |
sinceDate()
Returns date since cache statistics collection were last reset.
|
Date |
startDate()
Returns date cache statistics collection started.
|
long getReadCount(String className)
long getHitCount(String className)
long getWriteCount(String className)
long getTotalReadCount(String className)
long getTotalHitCount(String className)
long getTotalWriteCount(String className)
String getCacheName()
long getHitCount()
long getReadCount()
long getTotalHitCount()
long getTotalReadCount()
long getTotalWriteCount()
long getWriteCount()
void reset()
Date sinceDate()
Date startDate()
Map<String,Boolean> listKnownTypes()
Boolean getStatisticsEnabled()
void collectStatistics(boolean enable)
enable
- - If true, the cache will start collecting statistics. Else cache statistics will not be collected.void cache(String className, boolean enable)
Map<String,long[]> getCacheStatistics()
void clear()
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.