org.kuali.rice.ksb.cache
Class RiceCacheAdministratorImpl
java.lang.Object
org.kuali.rice.ksb.cache.RiceCacheAdministratorImpl
- All Implemented Interfaces:
- Lifecycle, RiceCacheAdministrator
public class RiceCacheAdministratorImpl
- extends Object
- implements RiceCacheAdministrator
Default implementation of the RiceCacheAdministrator
.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
remotedServiceRegistry
protected RemotedServiceRegistry remotedServiceRegistry
RiceCacheAdministratorImpl
public RiceCacheAdministratorImpl()
getRemotedServiceRegistry
public RemotedServiceRegistry getRemotedServiceRegistry()
- Returns:
- the remotedServiceRegistry
setRemotedServiceRegistry
public void setRemotedServiceRegistry(RemotedServiceRegistry remotedServiceRegistry)
- Parameters:
remotedServiceRegistry
- the remotedServiceRegistry to set
isStarted
public boolean isStarted()
- Specified by:
isStarted
in interface Lifecycle
getFromCache
public Object getFromCache(String key)
- Specified by:
getFromCache
in interface RiceCacheAdministrator
getFromCache
public Object getFromCache(String key,
int refreshPeriod)
- Specified by:
getFromCache
in interface RiceCacheAdministrator
getFromCache
public Object getFromCache(String key,
int refreshPeriod,
String cronExpression)
- Specified by:
getFromCache
in interface RiceCacheAdministrator
putInCache
public void putInCache(String key,
Object content,
String[] groups)
- Specified by:
putInCache
in interface RiceCacheAdministrator
putInCache
public void putInCache(String key,
Object content)
- Specified by:
putInCache
in interface RiceCacheAdministrator
flushEntry
public void flushEntry(String key)
- Specified by:
flushEntry
in interface RiceCacheAdministrator
flushGroup
public void flushGroup(String group)
- Specified by:
flushGroup
in interface RiceCacheAdministrator
flushAll
public void flushAll()
- Specified by:
flushAll
in interface RiceCacheAdministrator
setCacheCapacity
public void setCacheCapacity(int capacity)
- Specified by:
setCacheCapacity
in interface RiceCacheAdministrator
getCacheCapacity
public int getCacheCapacity()
getSize
public int getSize()
start
public void start()
throws Exception
- Specified by:
start
in interface Lifecycle
- Throws:
Exception
loadCacheSettings
protected Properties loadCacheSettings()
stop
public void stop()
throws Exception
- Specified by:
stop
in interface Lifecycle
- Throws:
Exception
putInCache
public void putInCache(String key,
Object content,
String group)
- Specified by:
putInCache
in interface RiceCacheAdministrator
getCacheAdministrator
protected com.opensymphony.oscache.general.GeneralCacheAdministrator getCacheAdministrator()
setForceRegistryRefresh
public void setForceRegistryRefresh(boolean forceRegistryRefresh)
- Specified by:
setForceRegistryRefresh
in interface RiceCacheAdministrator
getServiceName
public String getServiceName()
setServiceName
public void setServiceName(String serviceName)
Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.