org.bonitasoft.engine.cache.ehcache
public abstract class CommonEhCacheCacheService extends Object implements org.bonitasoft.engine.cache.CommonCacheService
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,net.sf.ehcache.config.CacheConfiguration> |
cacheConfigurations |
protected net.sf.ehcache.CacheManager |
cacheManager |
protected org.bonitasoft.engine.log.technical.TechnicalLoggerService |
logger |
protected org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor |
sessionAccessor |
| Constructor and Description |
|---|
CommonEhCacheCacheService(org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor sessionAccessor,
org.bonitasoft.engine.cache.CacheConfigurations cacheConfigurations) |
CommonEhCacheCacheService(org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor sessionAccessor,
org.bonitasoft.engine.cache.CacheConfigurations cacheConfigurations,
URL configFile) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
clear(String cacheName) |
void |
clearAll() |
protected net.sf.ehcache.Cache |
createCache(String cacheName,
String internalCacheName) |
void |
destroy() |
Object |
get(String cacheName,
Object key) |
int |
getCacheSize(String cacheName) |
protected net.sf.ehcache.config.CacheConfiguration |
getEhCacheConfiguration(org.bonitasoft.engine.cache.CacheConfiguration cacheConfig) |
protected abstract String |
getKeyFromCacheName(String cacheName) |
List<Object> |
getKeys(String cacheName) |
void |
pause() |
boolean |
remove(String cacheName,
Object key) |
void |
resume() |
void |
start() |
void |
stop() |
void |
store(String cacheName,
Serializable key,
Object value) |
protected net.sf.ehcache.CacheManager cacheManager
protected final org.bonitasoft.engine.log.technical.TechnicalLoggerService logger
protected final org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor sessionAccessor
public CommonEhCacheCacheService(org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor sessionAccessor,
org.bonitasoft.engine.cache.CacheConfigurations cacheConfigurations)
public CommonEhCacheCacheService(org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor sessionAccessor,
org.bonitasoft.engine.cache.CacheConfigurations cacheConfigurations,
URL configFile)
protected net.sf.ehcache.config.CacheConfiguration getEhCacheConfiguration(org.bonitasoft.engine.cache.CacheConfiguration cacheConfig)
protected net.sf.ehcache.Cache createCache(String cacheName, String internalCacheName) throws org.bonitasoft.engine.cache.SCacheException
org.bonitasoft.engine.cache.SCacheExceptionpublic void store(String cacheName, Serializable key, Object value) throws org.bonitasoft.engine.cache.SCacheException
store in interface org.bonitasoft.engine.cache.CommonCacheServiceorg.bonitasoft.engine.cache.SCacheExceptionprotected abstract String getKeyFromCacheName(String cacheName) throws org.bonitasoft.engine.cache.SCacheException
org.bonitasoft.engine.cache.SCacheExceptionpublic Object get(String cacheName, Object key) throws org.bonitasoft.engine.cache.SCacheException
get in interface org.bonitasoft.engine.cache.CommonCacheServiceorg.bonitasoft.engine.cache.SCacheExceptionpublic boolean clear(String cacheName) throws org.bonitasoft.engine.cache.SCacheException
clear in interface org.bonitasoft.engine.cache.CommonCacheServiceorg.bonitasoft.engine.cache.SCacheExceptionpublic int getCacheSize(String cacheName) throws org.bonitasoft.engine.cache.SCacheException
getCacheSize in interface org.bonitasoft.engine.cache.CommonCacheServiceorg.bonitasoft.engine.cache.SCacheExceptionpublic void clearAll()
throws org.bonitasoft.engine.cache.SCacheException
clearAll in interface org.bonitasoft.engine.cache.CommonCacheServiceorg.bonitasoft.engine.cache.SCacheExceptionpublic boolean remove(String cacheName, Object key) throws org.bonitasoft.engine.cache.SCacheException
remove in interface org.bonitasoft.engine.cache.CommonCacheServiceorg.bonitasoft.engine.cache.SCacheExceptionpublic List<Object> getKeys(String cacheName) throws org.bonitasoft.engine.cache.SCacheException
getKeys in interface org.bonitasoft.engine.cache.CommonCacheServiceorg.bonitasoft.engine.cache.SCacheExceptionpublic void destroy()
public void start()
start in interface org.bonitasoft.engine.commons.LifecycleServicepublic void stop()
stop in interface org.bonitasoft.engine.commons.LifecycleServicepublic void pause()
pause in interface org.bonitasoft.engine.commons.LifecycleServicepublic void resume()
resume in interface org.bonitasoft.engine.commons.LifecycleServiceCopyright © 2014 Bonitasoft S.A.. All rights reserved.