| java.lang.Object org.enhydra.dods.cache.CacheAdministration
CacheAdministration | abstract public class CacheAdministration (Code) | | CacheAdministration handles configuration settings about cache
(data object (or DataStruct object), simple query or complex query cache).
author: Tanja Jovanovic author: Nenad Vico author: Zorica Suvajdzin version: 2.0 15.06.2003. |
Method Summary | |
abstract public void | disable() Disables cache. | abstract public void | enable() Enables cache. | abstract public int | getCacheSize() Returns current size of the cache (number of elements in the cache). | abstract public int | getMaxCacheSize() Returns maximum cache size. | abstract public int | getMaxCacheSize(boolean real) Returns maximum cache size. | abstract public void | refresh() Refreshes cache. | abstract protected void | setMaxCacheSize(int maxSize) Sets maximum cache size. |
disable | abstract public void disable()(Code) | | Disables cache.
|
enable | abstract public void enable()(Code) | | Enables cache.
|
getCacheSize | abstract public int getCacheSize()(Code) | | Returns current size of the cache (number of elements in the cache).
Size of currently used data object cache. |
getMaxCacheSize | abstract public int getMaxCacheSize()(Code) | | Returns maximum cache size.
Maximum cache size. |
getMaxCacheSize | abstract public int getMaxCacheSize(boolean real)(Code) | | Returns maximum cache size. If the cache is unbounded (the maximum size
is negative), the current cache size is returned.
Parameters: real - If this parameter is true, this method returns real maximumcache size, otherwise returns appropriate value for statistics. Maximum cache size. |
refresh | abstract public void refresh()(Code) | | Refreshes cache.
|
setMaxCacheSize | abstract protected void setMaxCacheSize(int maxSize) throws CacheObjectException(Code) | | Sets maximum cache size.
Parameters: maxSize - Maximum cache size. |
|
|