Package wt.cache
Class MainCacheManager
java.lang.Object
javax.management.StandardMBean
wt.jmx.core.StandardMBean
wt.jmx.core.SelfAwareMBean
wt.cache.MainCacheManager
- All Implemented Interfaces:
DynamicMBean,MBeanRegistration,NotificationBroadcaster,NotificationEmitter,MainCacheManagerMBean,BaseObjectNamed,SelfEmailingMBean
- Direct Known Subclasses:
MasterICacheManager
public class MainCacheManager
extends SelfAwareMBean
implements MainCacheManagerMBean, NotificationEmitter
Implements the MainCacheManagerMBean management interface in the straight-forward way.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) voidClears all entries from all ICacheManagerClassic-managed caches.The logger level (valid values are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF).intNumber of cache MBeans, irrespective of sub-type
Supported API: trueString[][]Provide a set of name/value pairs for use as a suffix in creating a new ObjectName for an MBean instance based on an existing ObjectName used as a context / namespace prefix.intInterval between periodic oversized check in days; periodic check performed only if positive and CheckOversized is true
Supported API: truebooleanWhether to periodically run the oversized check; periodic check performed only if true and OversizedCheckInterval is positivevoidvoidremoveNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) voidForces every ICacheManagerClassic-managed cache to run it's oversized check and logs/sends JMX notifications of oversized caches.voidsetCheckOversized(boolean checkOversized) Whether to periodically run the oversized check; periodic check performed only if true and OversizedCheckInterval is positive
Supported API: truevoidsetLoggerLevel(String level) The logger level (valid values are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF).voidsetOversizedCheckInterval(int oversizedCheckInterval) Interval between periodic oversized check in days; periodic check performed only if positive and CheckOversized is true
Supported API: trueMethods inherited from class wt.jmx.core.SelfAwareMBean
deregister, destroy, getBaseObjectName, getObjectName, getObjectNameOnPreRegister, getOwnerMBean, getSelfAwareMBean, init, isInited, isRegistered, isStarted, onDestroy, onInit, postDeregister, postRegister, preDeregister, preRegister, register, register, register, resetObjectName, setOwnerMBean, start, stopMethods inherited from class wt.jmx.core.StandardMBean
cacheMBeanInfo, cacheMBeanInfoInInstance, createMBeanInfo, emailThisMBean, getAttributes, getCachedInstanceMBeanInfo, getCachedMBeanInfo, getDescription, getDescription, getDescription, getDescription, getImpact, getMBeanInfo, getParameterName, setAttributesMethods inherited from class javax.management.StandardMBean
getAttribute, getClassName, getConstructors, getDescription, getDescription, getDescription, getImplementation, getImplementationClass, getMBeanInterface, getParameterName, invoke, setAttribute, setImplementationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean
emailThisMBean
-
Method Details
-
getObjectNameSuffix
Description copied from class:SelfAwareMBeanProvide a set of name/value pairs for use as a suffix in creating a new ObjectName for an MBean instance based on an existing ObjectName used as a context / namespace prefix.
Supported API: true- Specified by:
getObjectNameSuffixin classSelfAwareMBean- Returns:
- See Also:
-
addNotificationListener
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) - Specified by:
addNotificationListenerin interfaceNotificationBroadcaster- Parameters:
listener-filter-handback-- See Also:
-
getNotificationInfo
- Specified by:
getNotificationInfoin interfaceNotificationBroadcaster- Returns:
- See Also:
-
removeNotificationListener
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException - Specified by:
removeNotificationListenerin interfaceNotificationBroadcaster- Parameters:
listener-- Throws:
ListenerNotFoundException- See Also:
-
removeNotificationListener
public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException - Specified by:
removeNotificationListenerin interfaceNotificationEmitter- Parameters:
listener-filter-handback-- Throws:
ListenerNotFoundException- See Also:
-
runOversizedCheck
public void runOversizedCheck()Description copied from interface:MainCacheManagerMBeanForces every ICacheManagerClassic-managed cache to run it's oversized check and logs/sends JMX notifications of oversized caches.
Supported API: true- Specified by:
runOversizedCheckin interfaceMainCacheManagerMBean- See Also:
-
clearAllCaches
public void clearAllCaches()Description copied from interface:MainCacheManagerMBeanClears all entries from all ICacheManagerClassic-managed caches.Warning: Running this operation on an in-use system can cause significant disruptions.
Supported API: true- Specified by:
clearAllCachesin interfaceMainCacheManagerMBean- See Also:
-
getOversizedCheckInterval
public int getOversizedCheckInterval()Description copied from interface:MainCacheManagerMBeanInterval between periodic oversized check in days; periodic check performed only if positive and CheckOversized is true
Supported API: true- Specified by:
getOversizedCheckIntervalin interfaceMainCacheManagerMBean- Returns:
- See Also:
-
setOversizedCheckInterval
public void setOversizedCheckInterval(int oversizedCheckInterval) Description copied from interface:MainCacheManagerMBeanInterval between periodic oversized check in days; periodic check performed only if positive and CheckOversized is true
Supported API: true- Specified by:
setOversizedCheckIntervalin interfaceMainCacheManagerMBean- Parameters:
oversizedCheckInterval-- See Also:
-
isCheckOversized
public boolean isCheckOversized()Description copied from interface:MainCacheManagerMBeanWhether to periodically run the oversized check; periodic check performed only if true and OversizedCheckInterval is positive- Specified by:
isCheckOversizedin interfaceMainCacheManagerMBean- Returns:
- See Also:
-
setCheckOversized
public void setCheckOversized(boolean checkOversized) Description copied from interface:MainCacheManagerMBeanWhether to periodically run the oversized check; periodic check performed only if true and OversizedCheckInterval is positive
Supported API: true- Specified by:
setCheckOversizedin interfaceMainCacheManagerMBean- Parameters:
checkOversized-- See Also:
-
getNumCaches
public int getNumCaches()Description copied from interface:MainCacheManagerMBeanNumber of cache MBeans, irrespective of sub-type
Supported API: true- Specified by:
getNumCachesin interfaceMainCacheManagerMBean- Returns:
- See Also:
-
getLoggerLevel
Description copied from interface:MainCacheManagerMBeanThe logger level (valid values are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF).
Supported API: true- Specified by:
getLoggerLevelin interfaceMainCacheManagerMBean- Returns:
- See Also:
-
setLoggerLevel
Description copied from interface:MainCacheManagerMBeanThe logger level (valid values are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF).
Supported API: true- Specified by:
setLoggerLevelin interfaceMainCacheManagerMBean- Parameters:
level-- See Also:
-