CacheManagerMBeanfinal class ConcurrentCacheMBeanImpl extends java.lang.Object implements CacheManagerMBean
| Modifier and Type | Field | Description |
|---|---|---|
private ConcurrentCache |
cache |
| Constructor | Description |
|---|---|
ConcurrentCacheMBeanImpl(ConcurrentCache cache) |
| Modifier and Type | Method | Description |
|---|---|---|
private static void |
checkPermission() |
|
long |
getAllocatedEntries() |
Get the number of entries currently allocated in the cache.
|
boolean |
getCollectAccessCounts() |
Check if collection of cache access counts is enabled.
|
long |
getEvictionCount() |
Get the number of cached objects that have been evicted from the
cache in order to make room for other objects.
|
long |
getHitCount() |
Get the number of cache accesses where the requested object was
already in the cache.
|
long |
getMaxEntries() |
Get the maximum number of entries that could be held by this cache.
|
long |
getMissCount() |
Get the number of cache accesses where the requested object was
not already in the cache.
|
long |
getUsedEntries() |
Get the number of objects that are currently in the cache.
|
void |
setCollectAccessCounts(boolean collect) |
Enable or disable collection of cache access counts.
|
private final ConcurrentCache cache
ConcurrentCacheMBeanImpl(ConcurrentCache cache)
public void setCollectAccessCounts(boolean collect)
CacheManagerMBeansetCollectAccessCounts in interface CacheManagerMBeancollect - true if access counts should be collected, or
false otherwiseCacheManagerMBean.getCollectAccessCounts(),
CacheManagerMBean.getHitCount(),
CacheManagerMBean.getMissCount(),
CacheManagerMBean.getEvictionCount()public boolean getCollectAccessCounts()
CacheManagerMBeangetCollectAccessCounts in interface CacheManagerMBeantrue if access counts are enabled,
false otherwiseCacheManagerMBean.setCollectAccessCounts(boolean)public long getHitCount()
CacheManagerMBeangetHitCount in interface CacheManagerMBeanpublic long getMissCount()
CacheManagerMBeangetMissCount in interface CacheManagerMBeanpublic long getEvictionCount()
CacheManagerMBeangetEvictionCount in interface CacheManagerMBeanpublic long getMaxEntries()
CacheManagerMBeangetMaxEntries in interface CacheManagerMBeanpublic long getAllocatedEntries()
CacheManagerMBeangetAllocatedEntries in interface CacheManagerMBeanpublic long getUsedEntries()
CacheManagerMBeangetUsedEntries in interface CacheManagerMBeanprivate static void checkPermission()
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.