Package wt.cache
Interface GuavaCacheMonitorMBean
- All Superinterfaces:
ICacheManagerMBean,SelfEmailingMBean
Guava cache instrumentation interface
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAsInjectionTarget(boolean invokeSave) Add as an injection target to the appropriate Loader MBean to allow configuration to be preserved; returns false if injection target already existed in Loader
Supported API: trueintConfigured maximum cache size; -1 implies unlimited
Supported API: trueintInterval in seconds at which cache cleanup is performed; non-positive values disable periodic explicit cleanup
Supported API: truegetSpec()Cache configuration specification
Supported API: truevoidsetCleanupIntervalSeconds(int cleanupIntervalSeconds) Interval in seconds at which cache cleanup is performed; non-positive values disable periodic explicit cleanup
Supported API: trueMethods inherited from interface wt.cache.ICacheManagerMBean
getCacheEntryCount, getCacheHits, getCacheMisses, getCacheOverflows, getName, getRestartNumber, getUptime, logMethods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean
emailThisMBean
-
Method Details
-
getCacheSize
int getCacheSize()Configured maximum cache size; -1 implies unlimited
Supported API: true- Specified by:
getCacheSizein interfaceICacheManagerMBean
-
getSpec
String getSpec()Cache configuration specification
Supported API: true -
getCleanupIntervalSeconds
int getCleanupIntervalSeconds()Interval in seconds at which cache cleanup is performed; non-positive values disable periodic explicit cleanup
Supported API: true -
setCleanupIntervalSeconds
void setCleanupIntervalSeconds(int cleanupIntervalSeconds) Interval in seconds at which cache cleanup is performed; non-positive values disable periodic explicit cleanup
Supported API: true -
addAsInjectionTarget
@MBeanOperationImpact(1) boolean addAsInjectionTarget(boolean invokeSave) throws InstanceNotFoundException, IOException, URISyntaxException Add as an injection target to the appropriate Loader MBean to allow configuration to be preserved; returns false if injection target already existed in Loader
Supported API: true- Parameters:
invokeSave- Whether to invoke save() operation on the loader as well- Throws:
InstanceNotFoundExceptionIOExceptionURISyntaxException
-