|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.cache.CacheManager
public class CacheManager
Cache framework manager implementation.
Constructor Summary | |
---|---|
CacheManager()
|
Method Summary | |
---|---|
void |
addCacheConfig(SessionConfig sessionConfig,
ICacheConfig cacheConfig,
ITransaction transaction)
Adds a cacheConfig to persistence. |
void |
adjustCacheCapacity(String cacheId)
Adjusts the cache capacity by adjusting it and sending a message to the cluster for it to be adjusted. |
ICacheConfig |
createCacheConfig(String id)
Creates an ICacheConfig transient instance. |
void |
deleteCacheConfig(SessionConfig sessionConfig,
ICacheConfig cacheConfig,
ITransaction transaction)
Deletes a cacheConfig from persistence. |
int |
getCacheCapacity(String cacheId)
Returns the capacity to be used for the specified cache. |
ICacheConfig |
getCacheConfig(SessionConfig sessionConfig,
String cacheConfigId,
ITransaction transaction)
Returns a persistent cacheConfig instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CacheManager()
Method Detail |
---|
public void adjustCacheCapacity(String cacheId)
cacheId
- the cache id.newCapacity
- the new capacity.public int getCacheCapacity(String cacheId)
ICacheManager
getCacheCapacity
in interface ICacheManager
cacheId
- the cache's identifier.
public ICacheConfig createCacheConfig(String id) throws PortalException
ICacheManager
ICacheConfig
transient instance.
createCacheConfig
in interface ICacheManager
id
- the id for the instance to be created.
PortalException
ICacheManager.addCacheConfig(SessionConfig, ICacheConfig, ITransaction)
public void addCacheConfig(SessionConfig sessionConfig, ICacheConfig cacheConfig, ITransaction transaction) throws PortalException
ICacheManager
addCacheConfig
in interface ICacheManager
sessionConfig
- the user session information.cacheConfig
- the transient cacheConfig instance to be persisted.transaction
- the transaction for persistence access.
PortalException
public ICacheConfig getCacheConfig(SessionConfig sessionConfig, String cacheConfigId, ITransaction transaction) throws PortalException
ICacheManager
getCacheConfig
in interface ICacheManager
sessionConfig
- the user session information.cacheConfigId
- the cacheConfig's identifier.transaction
- the transaction for persistence access.
PortalObjectNotFoundException
- if no cacheConfig with such id was found.
PortalException
public void deleteCacheConfig(SessionConfig sessionConfig, ICacheConfig cacheConfig, ITransaction transaction) throws PortalException
ICacheManager
deleteCacheConfig
in interface ICacheManager
sessionConfig
- the user session information.cacheConfig
- the persistent cacheConfig instance to be deleted.transaction
- the transaction for persistence access.
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |