Class CacheManagerRegistrar
java.lang.Object
com.atlassian.jira.component.pico.registrar.CacheManagerRegistrar
Registers the
CacheManager
with the Pico container.- Since:
- 6.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Deprecated.This property is ignored since Jira 8.14.0.static final String
The name of the system property which if set provides the URL of the Ehcache XML configuration file (overriding the built-in ehcache.xml file).static final String
The name of the system property which if set to "true" enables the use of ehcache statistics by default.static final String
The name of the system property which if set to "true" enables JMX monitoring of atlassian-cache (which MBeans are available depends upon the atlassian-cache implementation).static final String
If set to true, every value stored in the cache will be checked for serializability.static final String
Decorates every single cache such that every operation (whether get or remove) takes at least the specified number of milliseconds.static final String
The name of the system property which if set to "true" enables the use of memory-cache statistics by default.static final String
The name of the system property which if set to "true" forces the use of Ehcache.static final String
If set, non-simple keys from all caches and values from fully-replicated caches are recorded to this file. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
registerCacheManager
(ComponentContainer container, MBeanServer mBeanServer) Registers the CacheManager with the given container.static void
shutDownCacheManager
(ComponentContainer container, MBeanServer mBeanServer)
-
Field Details
-
EHCACHE_CONFIGURATION
The name of the system property which if set provides the URL of the Ehcache XML configuration file (overriding the built-in ehcache.xml file). If this URL begins with "/", it will be resolved relative to the classpath.- See Also:
-
ENABLE_JMX
The name of the system property which if set to "true" enables JMX monitoring of atlassian-cache (which MBeans are available depends upon the atlassian-cache implementation).- See Also:
-
FORCE_EHCACHE
The name of the system property which if set to "true" forces the use of Ehcache.- See Also:
-
ENABLE_STATISTICS
The name of the system property which if set to "true" enables the use of memory-cache statistics by default.- See Also:
-
ENABLE_EHCACHE_STATISTICS
The name of the system property which if set to "true" enables the use of ehcache statistics by default.- See Also:
-
ENABLE_SLOMO
Decorates every single cache such that every operation (whether get or remove) takes at least the specified number of milliseconds. Non-positive values disable this. Values larger than a few milliseconds would probably make the cache slower than just going to the database, so there probably isn't much point in that. Consider using something in the neighborhood of5
to10
.- See Also:
-
ENABLE_SERIALIZATION_CHECK
If set to true, every value stored in the cache will be checked for serializability. This incurs a performance penalty.- Since:
- 7.2.0
- See Also:
-
SERIALIZATION_RECORDING_FILE
If set, non-simple keys from all caches and values from fully-replicated caches are recorded to this file. This incurs a performance penalty.- Since:
- 7.4.0
- See Also:
-
DISABLE_DEFERRED_CACHE_REPLICATION
Deprecated.This property is ignored since Jira 8.14.0. and can be removed in Jira 9.0If set to true deferred replication of remote cache will be disabled. Valid only for EhCache.- See Also:
-
-
Constructor Details
-
CacheManagerRegistrar
public CacheManagerRegistrar()
-
-
Method Details
-
registerCacheManager
Registers the CacheManager with the given container.- Parameters:
container
- the container to receive the CacheManager (required)mBeanServer
- the JMX server with which to register any MBeans (ignored if null)
-
shutDownCacheManager
-