Class CacheManagerConfiguration
java.lang.Object
com.atlassian.jira.com.rproxy.goskope.component.spring.registrar.CacheManagerConfiguration
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
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 TypeMethodDescriptioncom.atlassian.cache.CacheManager
cacheManager
(CacheManagerConfiguration.LazyLoadedCacheManagerProvider lazyLoadedCacheManagerProvider, JiraProperties jiraProperties, SerializationChecker serializationChecker, CacheStats cacheStats) com.atlassian.cache.CacheSettingsDefaultsProvider
cacheSettingsDefaultsProvider
(JiraProperties jiraProperties, ClusterNodeProperties clusterNodeProperties) ehCacheCompactor
(RawCacheManagerProvider rawEhCacheManagerProvider, JiraProperties jiraProperties, ClusterNodeProperties clusterNodeProperties) rawEhCacheManager
(JiraProperties jiraProperties, ClusterNodeProperties clusterNodeProperties, EhCacheConfigurationFactory ehCacheConfigurationFactory) static void
shutDownCacheManager
(com.atlassian.cache.CacheManager cacheManagerToShutDown, CacheManagerConfiguration.LazyLoadedCacheManagerProvider lazyLoadedCacheManagerProvider) unwrappedEhCacheManager
(RawCacheManagerProvider rawEhCacheManagerProvider, com.atlassian.cache.CacheSettingsDefaultsProvider defaultSettingsProvider, JiraProperties jiraProperties, com.atlassian.cache.CacheSettingsDefaultsProvider cacheSettingsDefaultsProvider, ClusterNodeProperties clusterNodeProperties, MBeanServer platformMBeanServer) com.atlassian.vcache.internal.core.service.AbstractVCacheService
vCacheService
(CacheManagerConfiguration.VCacheServiceCreationBeans vCacheServiceCreationBeans) vCacheServiceCreationBeans
(JiraProperties jiraProperties, ClusterNodeProperties clusterNodeProperties, CacheManagerConfiguration.LazyLoadedCacheManagerProvider lazyLoadedCacheManagerProvider)
-
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:
-
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:
-
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:
-
-
Constructor Details
-
CacheManagerConfiguration
public CacheManagerConfiguration()
-
-
Method Details
-
ehCacheConfigurationFactory
-
cacheSettingsDefaultsProvider
@Bean public com.atlassian.cache.CacheSettingsDefaultsProvider cacheSettingsDefaultsProvider(JiraProperties jiraProperties, ClusterNodeProperties clusterNodeProperties) -
rawEhCacheManager
@Bean public RawCacheManagerProvider rawEhCacheManager(JiraProperties jiraProperties, ClusterNodeProperties clusterNodeProperties, EhCacheConfigurationFactory ehCacheConfigurationFactory) -
unwrappedEhCacheManager
@Bean public CacheManagerConfiguration.LazyLoadedCacheManagerProvider unwrappedEhCacheManager(RawCacheManagerProvider rawEhCacheManagerProvider, com.atlassian.cache.CacheSettingsDefaultsProvider defaultSettingsProvider, JiraProperties jiraProperties, com.atlassian.cache.CacheSettingsDefaultsProvider cacheSettingsDefaultsProvider, ClusterNodeProperties clusterNodeProperties, MBeanServer platformMBeanServer) -
ehCacheCompactor
@Bean public CacheCompactor ehCacheCompactor(RawCacheManagerProvider rawEhCacheManagerProvider, JiraProperties jiraProperties, ClusterNodeProperties clusterNodeProperties) -
vCacheServiceCreationBeans
@Bean public CacheManagerConfiguration.VCacheServiceCreationBeans vCacheServiceCreationBeans(JiraProperties jiraProperties, ClusterNodeProperties clusterNodeProperties, CacheManagerConfiguration.LazyLoadedCacheManagerProvider lazyLoadedCacheManagerProvider) -
vCacheService
@Bean public com.atlassian.vcache.internal.core.service.AbstractVCacheService vCacheService(CacheManagerConfiguration.VCacheServiceCreationBeans vCacheServiceCreationBeans) -
cacheStats
-
serializationChecker
-
cacheManager
@Bean public com.atlassian.cache.CacheManager cacheManager(CacheManagerConfiguration.LazyLoadedCacheManagerProvider lazyLoadedCacheManagerProvider, JiraProperties jiraProperties, SerializationChecker serializationChecker, CacheStats cacheStats) -
shutDownCacheManager
public static void shutDownCacheManager(com.atlassian.cache.CacheManager cacheManagerToShutDown, CacheManagerConfiguration.LazyLoadedCacheManagerProvider lazyLoadedCacheManagerProvider)
-