Package org.cache2k.extra.jmx
Class CacheControlMXBeanImpl
- java.lang.Object
-
- org.cache2k.extra.jmx.CacheControlMXBeanImpl
-
- All Implemented Interfaces:
CacheControlMXBean
public class CacheControlMXBeanImpl extends Object implements CacheControlMXBean
Use the implementation from core and decorate with the JMX bean interface.- Author:
- Jens Wilke
-
-
Constructor Summary
Constructors Constructor Description CacheControlMXBeanImpl(org.cache2k.core.common.BaseCacheControl cacheControl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
changeCapacity(long entryCountOrWeight)
void
clear()
long
getCapacityLimit()
Date
getClearedTime()
Date
getCreatedTime()
long
getEntryCapacity()
String
getImplementation()
String
getKeyType()
String
getManagerName()
long
getMaximumWeight()
String
getName()
long
getSize()
long
getTotalWeight()
String
getValueType()
boolean
isLoaderPresent()
boolean
isStatisticsEnabled()
boolean
isWeigherPresent()
-
-
-
Method Detail
-
getKeyType
public String getKeyType()
- Specified by:
getKeyType
in interfaceCacheControlMXBean
- See Also:
CacheInfo.getKeyType()
-
getValueType
public String getValueType()
- Specified by:
getValueType
in interfaceCacheControlMXBean
- See Also:
CacheInfo.getValueType()
-
getName
public String getName()
- Specified by:
getName
in interfaceCacheControlMXBean
- See Also:
CacheInfo.getName()
-
getManagerName
public String getManagerName()
- Specified by:
getManagerName
in interfaceCacheControlMXBean
- See Also:
CacheInfo.getManagerName()
-
getSize
public long getSize()
- Specified by:
getSize
in interfaceCacheControlMXBean
- See Also:
CacheInfo.getSize()
-
getEntryCapacity
public long getEntryCapacity()
- Specified by:
getEntryCapacity
in interfaceCacheControlMXBean
- See Also:
CacheInfo.getEntryCapacity()
-
getCapacityLimit
public long getCapacityLimit()
- Specified by:
getCapacityLimit
in interfaceCacheControlMXBean
- See Also:
CacheInfo.getCapacityLimit()
-
getMaximumWeight
public long getMaximumWeight()
- Specified by:
getMaximumWeight
in interfaceCacheControlMXBean
- See Also:
CacheInfo.getMaximumWeight()
-
getTotalWeight
public long getTotalWeight()
- Specified by:
getTotalWeight
in interfaceCacheControlMXBean
- See Also:
CacheInfo.getTotalWeight()
-
getCreatedTime
public Date getCreatedTime()
- Specified by:
getCreatedTime
in interfaceCacheControlMXBean
- See Also:
CacheInfo.getCreatedTime()
-
getClearedTime
public Date getClearedTime()
- Specified by:
getClearedTime
in interfaceCacheControlMXBean
- See Also:
CacheInfo.getClearedTime()
-
getImplementation
public String getImplementation()
- Specified by:
getImplementation
in interfaceCacheControlMXBean
- See Also:
CacheInfo.getImplementation()
-
isLoaderPresent
public boolean isLoaderPresent()
- Specified by:
isLoaderPresent
in interfaceCacheControlMXBean
- See Also:
CacheInfo.isLoaderPresent()
-
isWeigherPresent
public boolean isWeigherPresent()
- Specified by:
isWeigherPresent
in interfaceCacheControlMXBean
- See Also:
CacheInfo.isWeigherPresent()
-
isStatisticsEnabled
public boolean isStatisticsEnabled()
- Specified by:
isStatisticsEnabled
in interfaceCacheControlMXBean
- See Also:
CacheInfo.isStatisticsEnabled()
-
clear
public void clear()
- Specified by:
clear
in interfaceCacheControlMXBean
- See Also:
CacheOperation.clear()
-
changeCapacity
public void changeCapacity(long entryCountOrWeight)
- Specified by:
changeCapacity
in interfaceCacheControlMXBean
-
-