Enhydra 5.1 API

org.enhydra.dods.cache
Interface CacheAdministration

All Known Subinterfaces:
QueryCache
All Known Implementing Classes:
QueryCacheImpl

public interface CacheAdministration

This class contains data and mechanisms needed for caching data objects and queries.


Method Summary
 boolean getCacheReadOnly()
          Returns read-only attribute.
 int getCacheSize()
          Returns size of currently used cache.
 java.lang.String getCacheType()
          Get cache type.
 int getComplexQueryCacheSize()
          Returns size of currently used complex query cache.
 java.lang.String getInitialQueryCache()
          Returns initialQueryCache.
 int getMaxCacheSize()
          Returns maximum cache size.
 int getMaxCacheSize(boolean real)
          Get maximum cache size.
 int getMaxComplexQueryCacheSize()
          Returns maximum size of complex query cache.
 int getMaxComplexQueryCacheSize(boolean real)
          Returns maximum size of complex query cache.
 int getMaxSimpleQueryCacheSize()
          Returns maximum size of simple query cache.
 int getMaxSimpleQueryCacheSize(boolean real)
          Returns maximum size of simple query cache.
 int getSimpleQueryCacheSize()
          Returns size of currently used simple query cache.
 boolean isFull()
          Returns
 void setCacheReadOnly(boolean readOnly)
          Sets read-only attribute.
 void setInitialQueryCache(java.lang.String initQ)
          Sets initialQueryCache attribute.
 void setMaxCacheSize(int maxSize)
          Sets maximum cache size.
 void setMaxComplexQueryCacheSize(int maxSize)
          Sets maximum size of complex query cache.
 void setMaxSimpleQueryCacheSize(int maxSize)
          Sets maximum size of simple query cache.
 

Method Detail

getMaxCacheSize

public int getMaxCacheSize()
Returns maximum cache size.

Returns:
Maximum cache size.

getMaxCacheSize

public int getMaxCacheSize(boolean real)
Get 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 method return real maximum cache size, othervise return appropriate value for statistic.
Returns:
maximum cache size.

getCacheSize

public int getCacheSize()
Returns size of currently used cache.

Returns:
Size of currently used cache.

setMaxCacheSize

public void setMaxCacheSize(int maxSize)
Sets maximum cache size.

Parameters:
maxSize - Maximum cache size.

getMaxSimpleQueryCacheSize

public int getMaxSimpleQueryCacheSize()
Returns maximum size of simple query cache.

Returns:
Maximum size of simple query cache.

getMaxSimpleQueryCacheSize

public int getMaxSimpleQueryCacheSize(boolean real)
Returns maximum size of simple query cache. If the cache is unbounded (the maximum size is negative), the current cache size is returned.

Parameters:
real - If this parameter is true method return real maximum cache size, othervise return appropriate value for statistic.
Returns:
Maximum size of simple query cache.

setMaxSimpleQueryCacheSize

public void setMaxSimpleQueryCacheSize(int maxSize)
Sets maximum size of simple query cache.

Parameters:
maxSize - maximum size of simple query cache.

getSimpleQueryCacheSize

public int getSimpleQueryCacheSize()
Returns size of currently used simple query cache.

Returns:
Size of currently used simple query cache.

getMaxComplexQueryCacheSize

public int getMaxComplexQueryCacheSize()
Returns maximum size of complex query cache.

Returns:
Maximum size of complex query cache.

getMaxComplexQueryCacheSize

public int getMaxComplexQueryCacheSize(boolean real)
Returns maximum size of complex query cache. If the cache is unbounded (the maximum size is negative), the current cache size is returned.

Parameters:
real - If this parameter is true method return real maximum cache size, othervise return appropriate value for statistic.
Returns:
Maximum size of complex query cache.

setMaxComplexQueryCacheSize

public void setMaxComplexQueryCacheSize(int maxSize)
Sets maximum size of complex query cache.

Parameters:
maxSize - maximum size of complex query cache.

getComplexQueryCacheSize

public int getComplexQueryCacheSize()
Returns size of currently used complex query cache.

Returns:
Size of currently used complex query cache.

setCacheReadOnly

public void setCacheReadOnly(boolean readOnly)
Sets read-only attribute.

Parameters:
readOnly - New read-only value.

getCacheReadOnly

public boolean getCacheReadOnly()
Returns read-only attribute.

Returns:
read-only attribute

setInitialQueryCache

public void setInitialQueryCache(java.lang.String initQ)
Sets initialQueryCache attribute.

Parameters:
initQ - New initialQueryCache.

getInitialQueryCache

public java.lang.String getInitialQueryCache()
Returns initialQueryCache.

Returns:
initialQueryCache.

isFull

public boolean isFull()
Returns

Returns:

getCacheType

public java.lang.String getCacheType()
Get cache type.

Returns:
Cache type.

Enhydra 5.1 API