|
DODS 6.5 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.dods.cache.ConfigurationAdministration
This interface contains part of caches' (data object (or DataStruct object) and query) mechanisms needed for cache administration.
Constructor Summary | |
ConfigurationAdministration()
|
Method Summary | |
abstract void |
checkFull()
Returns information if data object (or DataStruct object) cache if "full". |
abstract CacheAdministration |
getCacheAdministration(int cacheType)
Returns CacheAdministration for data object (or DataStruct object) cache, simple, or complex query cache. |
abstract double |
getCachePercentage()
Read cache configuration from application's configuration file. |
abstract java.lang.String |
getCacheType()
Returns data object (or DataStruct object) cache type. |
abstract int |
getInitialCacheFetchSize()
|
abstract int |
getInitialDSCacheSize()
|
abstract java.lang.String |
getInitialQueryCache()
Returns initialQueryCache. |
abstract int |
getLevelOfCaching()
Returns caching level. |
abstract double |
getReserveFactor()
Returns reserveFactor. |
abstract Statistics |
getStatistics()
Returns statistics of used table (and of the caches, if exist). |
abstract TableConfiguration |
getTableConfiguration()
Returns object TableConfiguration. |
abstract boolean |
isDisabled()
Returns information whether caching is disabled. |
abstract boolean |
isFull()
Returns information if data object (or DataStruct object) cache if "full". |
abstract void |
readConfiguration(com.lutris.util.Config tableConfig,
com.lutris.util.Config cacheConfig,
java.lang.String dbName)
|
abstract void |
refreshStatistics()
Refreshes statistics. |
protected abstract void |
setCachePercentage(double cp)
|
abstract void |
setInitialCacheFetchSize(int i)
|
abstract void |
setInitialDSCacheSize(int i)
|
protected abstract void |
setInitialQueryCache(java.lang.String initQ)
Sets initialQueryCache attribute. |
protected abstract void |
setReserveFactor(double res)
Sets reserveFactor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConfigurationAdministration()
Method Detail |
public abstract CacheAdministration getCacheAdministration(int cacheType)
cacheType
- 0 - for data object (or DataStruct object),
1 for simple query and 2 for complex query cache.public abstract java.lang.String getInitialQueryCache()
protected abstract void setInitialQueryCache(java.lang.String initQ)
initQ
- New value of initialQueryCache attribute.public abstract Statistics getStatistics()
public abstract void refreshStatistics()
public abstract void checkFull()
public abstract boolean isFull()
public abstract java.lang.String getCacheType()
public abstract int getLevelOfCaching()
public abstract TableConfiguration getTableConfiguration()
public abstract double getReserveFactor()
num
is number
of needed results, then it is used
num
+ DEFAULT_RESERVE_FACTOR * num
of
objects for estimating what is quicker: go to database for all object that
are not in the cache, or run again query on database.
This value is given in percents, as number between 0 and 1
(0.25 means 25%).
For example, if DEFAULT_RESERVE_FACTOR is 0.5, and wanted number of
results is 50, the estimation will be done on 75 (50 + 0.5 * 50) objects.
protected abstract void setReserveFactor(double res)
num
is number
of needed results, then it is used
num
+ DEFAULT_RESERVE_FACTOR * num
of
objects for estimating what is quicker: go to database for all object that
are not in the cache, or run again query on database.
This value is given in percents, as number between 0 and 1
(0.25 means 25%).
For example, if DEFAULT_RESERVE_FACTOR is 0.5, and wanted number of
results is 50, the estimation will be done on 75 (50 + 0.5 * 50) objects.
res
- New reserveFactor.public abstract boolean isDisabled()
public abstract double getCachePercentage()
protected abstract void setCachePercentage(double cp)
public abstract int getInitialCacheFetchSize()
public abstract int getInitialDSCacheSize()
public abstract void setInitialCacheFetchSize(int i)
i
- public abstract void setInitialDSCacheSize(int i)
i
- public abstract void readConfiguration(com.lutris.util.Config tableConfig, com.lutris.util.Config cacheConfig, java.lang.String dbName) throws CacheObjectException
CacheObjectException
|
DODS 6.5 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |