Package com.kheops.util
Class KDataCacheMonitoringInfo
java.lang.Object
com.kheops.util.KDataCacheMonitoringInfo
The KDataCacheMonitoringInfo class is used to store monitoring info
 for a KAbstractDataCache instance.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionlongThe number of elements in the cache.longThe current size used.longThe successful retrieval data count.longThe maximum size of the cache, -1 if unlimited.longThe number retrieval attempts.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondoubleThis method returns the successful retrieval data count over the number of retrieval attempts.
- 
Field Details- 
currentSizepublic long currentSizeThe current size used.
- 
maximumSizepublic long maximumSizeThe maximum size of the cache, -1 if unlimited.
- 
hitspublic long hitsThe successful retrieval data count.
- 
missespublic long missesThe number retrieval attempts.
- 
countpublic long countThe number of elements in the cache.
 
- 
- 
Constructor Details- 
KDataCacheMonitoringInfopublic KDataCacheMonitoringInfo()
 
- 
- 
Method Details- 
getEfficiencypublic double getEfficiency()This method returns the successful retrieval data count over the number of retrieval attempts. It enables to get statistic of the retrieve method.- Returns:
- the efficiency ratio
 
 
-