Class CacheManagerConfiguration
java.lang.Object
com.atlassian.jira.com.rproxy.goskope.component.spring.registrar.CacheManagerConfiguration
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.This property is ignored since Jira 8.14.0.static final StringThe 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 StringThe name of the system property which if set to "true" enables the use of ehcache statistics by default.static final StringThe 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 StringIf set to true, every value stored in the cache will be checked for serializability.static final StringDecorates every single cache such that every operation (whether get or remove) takes at least the specified number of milliseconds.static final StringThe name of the system property which if set to "true" enables the use of memory-cache statistics by default.static final StringThe name of the system property which if set to "true" forces the use of Ehcache.static final StringIf 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.CacheManagercacheManager(CacheManagerConfiguration.LazyLoadedCacheManagerProvider lazyLoadedCacheManagerProvider, JiraProperties jiraProperties, SerializationChecker serializationChecker, CacheStats cacheStats) com.atlassian.cache.CacheSettingsDefaultsProvidercacheSettingsDefaultsProvider(JiraProperties jiraProperties, ClusterNodeProperties clusterNodeProperties) ehCacheCompactor(RawCacheManagerProvider rawEhCacheManagerProvider, JiraProperties jiraProperties, ClusterNodeProperties clusterNodeProperties) rawEhCacheManager(JiraProperties jiraProperties, ClusterNodeProperties clusterNodeProperties, EhCacheConfigurationFactory ehCacheConfigurationFactory) static voidshutDownCacheManager(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.AbstractVCacheServicevCacheService(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 of5to10.- 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)
-