EAF 7.6 API

org.enhydra.dods.cache
Class CacheAdministration

java.lang.Object
  extended by org.enhydra.dods.cache.CacheAdministration

public abstract class CacheAdministration
extends java.lang.Object

CacheAdministration handles configuration settings about cache (data object (or DataStruct object), simple query or complex query cache).

Version:
2.0 15.06.2003.
Author:
Tanja Jovanovic, Nenad Vico, Zorica Suvajdzin

Constructor Summary
CacheAdministration()
           
 
Method Summary
abstract  void disable()
          Disables cache.
abstract  void enable()
          Enables cache.
abstract  int getCacheSize()
          Returns current size of the cache (number of elements in the cache).
abstract  int getMaxCacheSize()
          Returns maximum cache size.
abstract  int getMaxCacheSize(boolean real)
          Returns maximum cache size.
abstract  void refresh()
          Refreshes cache.
protected abstract  void setMaxCacheSize(int maxSize)
          Sets maximum cache size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheAdministration

public CacheAdministration()
Method Detail

getMaxCacheSize

public abstract int getMaxCacheSize()
Returns maximum cache size.

Returns:
Maximum cache size.

getMaxCacheSize

public abstract int getMaxCacheSize(boolean real)
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 maximum cache size, otherwise returns appropriate value for statistics.
Returns:
Maximum cache size.

getCacheSize

public abstract int getCacheSize()
Returns current size of the cache (number of elements in the cache).

Returns:
Size of currently used data object cache.

setMaxCacheSize

protected abstract void setMaxCacheSize(int maxSize)
                                 throws CacheObjectException
Sets maximum cache size.

Parameters:
maxSize - Maximum cache size.
Throws:
CacheObjectException

refresh

public abstract void refresh()
Refreshes cache.


disable

public abstract void disable()
Disables cache.


enable

public abstract void enable()
Enables cache.


EAF 7.6 API