Class EhCacheCacheService
- java.lang.Object
-
- org.bonitasoft.engine.cache.ehcache.CommonEhCacheCacheService
-
- org.bonitasoft.engine.cache.ehcache.EhCacheCacheService
-
- All Implemented Interfaces:
CacheService,CommonCacheService,LifecycleService,TenantLifecycleService
@Order(2) @Component @ConditionalOnSingleCandidate(CacheService.class) public class EhCacheCacheService extends CommonEhCacheCacheService implements CacheService
-
-
Field Summary
-
Fields inherited from class org.bonitasoft.engine.cache.ehcache.CommonEhCacheCacheService
cacheConfigurations, cacheManager, logger
-
-
Constructor Summary
Constructors Constructor Description EhCacheCacheService(TechnicalLoggerService logger, java.util.List<CacheConfiguration> cacheConfigurations, CacheConfiguration defaultCacheConfiguration, java.lang.String diskStorePath, long tenantId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetCacheManagerIdentifier()protected java.lang.StringgetCacheManagerName()java.util.List<java.lang.String>getCachesNames()Get the names of all the cachesprotected java.lang.StringgetKeyFromCacheName(java.lang.String cacheName)voidinit()This method performs actions to initialize a TenantLifecycleService This method is called when creating a new tenant and when starting the platform.voidpause()Temporary halt the execution of this service.voidresume()resume the execution the servicevoidstart()Start the servicevoidstop()-
Methods inherited from class org.bonitasoft.engine.cache.ehcache.CommonEhCacheCacheService
buildCacheManagerWithDefaultConfiguration, clear, clearAll, createCache, get, getCacheSize, getEhCacheConfiguration, getKeys, isStopped, remove, shutdownCacheManager, store
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bonitasoft.engine.cache.CommonCacheService
clear, clearAll, get, getCacheSize, getKeys, isStopped, remove, store
-
-
-
-
Constructor Detail
-
EhCacheCacheService
public EhCacheCacheService(TechnicalLoggerService logger, java.util.List<CacheConfiguration> cacheConfigurations, @Qualifier("defaultTenantCacheConfiguration") CacheConfiguration defaultCacheConfiguration, @Value("java.io.tmpdir/tenant.${tenantId}.cache") java.lang.String diskStorePath, @Value("${tenantId}") long tenantId)
-
-
Method Detail
-
getKeyFromCacheName
protected java.lang.String getKeyFromCacheName(java.lang.String cacheName) throws SCacheException- Specified by:
getKeyFromCacheNamein classCommonEhCacheCacheService- Throws:
SCacheException
-
getCacheManagerName
protected java.lang.String getCacheManagerName()
- Specified by:
getCacheManagerNamein classCommonEhCacheCacheService
-
getCachesNames
public java.util.List<java.lang.String> getCachesNames()
Description copied from interface:CommonCacheServiceGet the names of all the caches- Specified by:
getCachesNamesin interfaceCommonCacheService- Returns:
- a list of caches names
-
init
public void init() throws SBonitaExceptionDescription copied from interface:TenantLifecycleServiceThis method performs actions to initialize a TenantLifecycleService This method is called when creating a new tenant and when starting the platform.- Specified by:
initin interfaceTenantLifecycleService- Throws:
SBonitaException
-
start
public void start() throws SCacheExceptionDescription copied from interface:LifecycleServiceStart the service- Specified by:
startin interfaceLifecycleService- Throws:
SCacheException
-
stop
public void stop()
- Specified by:
stopin interfaceLifecycleService
-
pause
public void pause()
Description copied from interface:LifecycleServiceTemporary halt the execution of this service.- Specified by:
pausein interfaceLifecycleService
-
resume
public void resume() throws SCacheExceptionDescription copied from interface:LifecycleServiceresume the execution the service- Specified by:
resumein interfaceLifecycleService- Throws:
SCacheException
-
getCacheManagerIdentifier
protected java.lang.String getCacheManagerIdentifier()
- Specified by:
getCacheManagerIdentifierin classCommonEhCacheCacheService
-
-