SolarMetric Kodo JDO 3.3.5 generated on August 31 2005

kodo.datacache
Class DataCacheManager

java.lang.Object
  |
  +--kodo.datacache.DataCacheManager
All Implemented Interfaces:
com.solarmetric.util.Closeable

public class DataCacheManager
extends Object
implements com.solarmetric.util.Closeable

This type manages the system's data and query caches. You can retrieve the data cache manager from the JDOConfiguration.


Constructor Summary
DataCacheManager(JDOConfiguration conf)
          Constructor; supply system configuration.
 
Method Summary
 void close()
          Close all caches.
 DataCache getDataCache()
          Return the default data cache.
 DataCache getDataCache(String name)
          Return the named data cache, creating it if needed.
 DataCache getDataCache(String name, boolean create)
          Return the named data cache.
 String[] getDataCacheNames()
          Return a list of the names of all datacache created so far.
 DataCacheScheduler getDataCacheScheduler()
          Return the runnable which schedules evictions.
 kodo.datacache.DataCachePCDataGenerator getPCDataGenerator()
          Return the PCData generator if configured.
 QueryCache getQueryCache()
          Return the system query cache.
 boolean isCachingEnabled()
          Whether we're using an L2 cache.
 void stopDataCacheScheduler()
          Stops the eviction scheduler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataCacheManager

public DataCacheManager(JDOConfiguration conf)
Constructor; supply system configuration.
Method Detail

isCachingEnabled

public boolean isCachingEnabled()
Whether we're using an L2 cache.

getDataCache

public DataCache getDataCache()
Return the default data cache.

getDataCache

public DataCache getDataCache(String name)
Return the named data cache, creating it if needed.

getDataCache

public DataCache getDataCache(String name,
                              boolean create)
Return the named data cache. If the given name is null, the default data cache is returned.
Parameters:
create - if true, the cache will be created if it does not already exist

getDataCacheNames

public String[] getDataCacheNames()
Return a list of the names of all datacache created so far.

getQueryCache

public QueryCache getQueryCache()
Return the system query cache.

getPCDataGenerator

public kodo.datacache.DataCachePCDataGenerator getPCDataGenerator()
Return the PCData generator if configured.

getDataCacheScheduler

public DataCacheScheduler getDataCacheScheduler()
Return the runnable which schedules evictions.

stopDataCacheScheduler

public void stopDataCacheScheduler()
Stops the eviction scheduler

close

public void close()
Close all caches.
Specified by:
close in interface com.solarmetric.util.Closeable

SolarMetric Kodo JDO 3.3.5 generated on August 31 2005

Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.