|
DODS 7.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.dods.cache.ConfigurationAdministration
public abstract class 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()
Checks if cache is full or not and updates apropriate internal variables. |
abstract int |
getAsynchLoadPriority()
Returns priority of asynchronous cache initialization. |
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 int |
getMaxExecuteTimeCacheInit()
Returns the max time for which the query is not printed in application's log file durung the cache initialization. |
abstract int |
getQueryTimeLimitCacheInit()
Returns max number of milliseconds for which the query for cache initialization should be executed and the resulset read from ResultSet. |
abstract int |
getQueryTimeoutCacheInit()
Returns max number of seconds for which the query for cache initialization should be executed. |
abstract double |
getReserveFactor()
Returns reserveFactor. |
abstract int |
getSimpleCacheRowCountLimit()
Returns max number of rows in the table for which is simple cache still used. |
abstract Statistics |
getStatistics()
Returns statistics of used table (and of the caches, if exist). |
abstract int |
getSynchLoadRowCountLimit()
Returns the max number of rows in the table for which the synchronous cache load is performed if defined by configuration. |
abstract TableConfiguration |
getTableConfiguration()
Returns object TableConfiguration. |
abstract boolean |
isComplete()
Returns information if data object (or DataStruct object) cache if "complete". |
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(Config tableConfig,
Config cacheConfig,
java.lang.String dbName)
|
abstract void |
refreshStatistics()
Refreshes statistics. |
protected abstract void |
setAsynchLoadPriority(int priority)
Sets priority of asynchronous cache initialization. |
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 |
setMaxExecuteTimeCacheInit(int maxExeTime)
Sets the max time for which the query is not printed in application's log file durung the cache initialization. |
protected abstract void |
setQueryTimeLimitCacheInit(int timeLimit)
Sets max number of milliseconds for which the query for cache initialization should be executed and the resulset read from ResultSet. |
protected abstract void |
setQueryTimeoutCacheInit(int timeout)
Sets max number of seconds for which the query for cache initialization should be executed. |
protected abstract void |
setReserveFactor(double res)
Sets reserveFactor. |
protected abstract void |
setSimpleCacheRowCountLimit(int rowCount)
Sets the max number of rows in the table for which is simple cache still used. |
protected abstract void |
setSynchLoadRowCountLimit(int rowCount)
Sets the max number of rows in the table for which the synchronous cache load is performed if defined by configuration. |
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 boolean isComplete()
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 int getAsynchLoadPriority()
protected abstract void setAsynchLoadPriority(int priority)
priority
- priority of asynchronous cache initialization.public abstract int getSimpleCacheRowCountLimit()
protected abstract void setSimpleCacheRowCountLimit(int rowCount)
rowCount
- max number of rows in the table for which is simple cache still used.public abstract int getSynchLoadRowCountLimit()
protected abstract void setSynchLoadRowCountLimit(int rowCount)
rowCount
- the max number of rows in the table for which the synchronous cache
load is performed if defined by configuration.public abstract int getMaxExecuteTimeCacheInit()
protected abstract void setMaxExecuteTimeCacheInit(int maxExeTime)
maxExeTime
- new value for max execution time for the cache
initialization.public abstract int getQueryTimeLimitCacheInit()
protected abstract void setQueryTimeLimitCacheInit(int timeLimit)
timeLimit
- new value for time limit for cache initialization.public abstract int getQueryTimeoutCacheInit()
protected abstract void setQueryTimeoutCacheInit(int timeout)
timeout
- new value for query timeout for cache initialization.public abstract void readConfiguration(Config tableConfig, Config cacheConfig, java.lang.String dbName) throws CacheObjectException
CacheObjectException
|
DODS 7.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |