final class ConcurrentCacheMBeanImpl extends java.lang.Object implements CacheManagerMBean
Modifier and Type | Field and Description |
---|---|
private ConcurrentCache |
cache |
Constructor and Description |
---|
ConcurrentCacheMBeanImpl(ConcurrentCache cache) |
Modifier and Type | Method and 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)
CacheManagerMBean
setCollectAccessCounts
in interface CacheManagerMBean
collect
- true
if access counts should be collected, or
false
otherwiseCacheManagerMBean.getCollectAccessCounts()
,
CacheManagerMBean.getHitCount()
,
CacheManagerMBean.getMissCount()
,
CacheManagerMBean.getEvictionCount()
public boolean getCollectAccessCounts()
CacheManagerMBean
getCollectAccessCounts
in interface CacheManagerMBean
true
if access counts are enabled,
false
otherwiseCacheManagerMBean.setCollectAccessCounts(boolean)
public long getHitCount()
CacheManagerMBean
getHitCount
in interface CacheManagerMBean
public long getMissCount()
CacheManagerMBean
getMissCount
in interface CacheManagerMBean
public long getEvictionCount()
CacheManagerMBean
getEvictionCount
in interface CacheManagerMBean
public long getMaxEntries()
CacheManagerMBean
getMaxEntries
in interface CacheManagerMBean
public long getAllocatedEntries()
CacheManagerMBean
getAllocatedEntries
in interface CacheManagerMBean
public long getUsedEntries()
CacheManagerMBean
getUsedEntries
in interface CacheManagerMBean
private static void checkPermission()
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.