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 Summary
Modifier and TypeFieldDescriptionlong
The number of elements in the cache.long
The current size used.long
The successful retrieval data count.long
The maximum size of the cache, -1 if unlimited.long
The number retrieval attempts. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
This method returns the successful retrieval data count over the number of retrieval attempts.
-
Field Details
-
currentSize
public long currentSizeThe current size used. -
maximumSize
public long maximumSizeThe maximum size of the cache, -1 if unlimited. -
hits
public long hitsThe successful retrieval data count. -
misses
public long missesThe number retrieval attempts. -
count
public long countThe number of elements in the cache.
-
-
Constructor Details
-
KDataCacheMonitoringInfo
public KDataCacheMonitoringInfo()
-
-
Method Details
-
getEfficiency
public 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
-