org.kuali.rice.ksb.cache
Class RiceCacheAdministratorImpl

java.lang.Object
  extended by 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)

Field Summary
protected  RemotedServiceRegistry remotedServiceRegistry
           
 
Fields inherited from interface org.kuali.rice.ksb.cache.RiceCacheAdministrator
FORCE_REGISTRY_REFRESH_KEY, REMOTED_SERVICE_REGISTRY, SERVICE_NAME_KEY
 
Constructor Summary
RiceCacheAdministratorImpl()
           
 
Method Summary
 void flushAll()
           
 void flushEntry(String key)
           
 void flushGroup(String group)
           
protected  com.opensymphony.oscache.general.GeneralCacheAdministrator getCacheAdministrator()
           
 int getCacheCapacity()
           
 Object getFromCache(String key)
           
 Object getFromCache(String key, int refreshPeriod)
           
 Object getFromCache(String key, int refreshPeriod, String cronExpression)
           
 RemotedServiceRegistry getRemotedServiceRegistry()
           
 String getServiceName()
           
 int getSize()
           
 boolean isStarted()
           
protected  Properties loadCacheSettings()
           
 void putInCache(String key, Object content)
           
 void putInCache(String key, Object content, String group)
           
 void putInCache(String key, Object content, String[] groups)
           
 void setCacheCapacity(int capacity)
           
 void setForceRegistryRefresh(boolean forceRegistryRefresh)
           
 void setRemotedServiceRegistry(RemotedServiceRegistry remotedServiceRegistry)
           
 void setServiceName(String serviceName)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

remotedServiceRegistry

protected RemotedServiceRegistry remotedServiceRegistry
Constructor Detail

RiceCacheAdministratorImpl

public RiceCacheAdministratorImpl()
Method Detail

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.