|
EAF 7.6 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Statistics
This interface provides information about table and its statistics.
Field Summary | |
---|---|
static int |
CACHE_STATISTICS
When there is only data object cache (there are no query caches), statistics is CACHE_STATISTICS (contains information about tables and data object cache). |
static int |
QUERY_CACHE_STATISTICS
When there are both data object and query caches, statistics is QUERY_CACHE_STATISTICS (contains information about tables, data object and query caches). |
static int |
TABLE_STATISTICS
When there are no caches (data object and query caches), statistics is TABLE_STATISTICS (contains only information about tables). |
Method Summary | |
---|---|
void |
clear()
Clears DO, simple query and complex query statistics. |
CacheStatistics |
getCacheStatistics(int type)
Returns query statistics for : DO (data object) cache when cache has value 0 (value rg.enhydra.dods.cache.CacheConstants.DATA_CACHE) simple query cache when cache has value 1 (value org.enhydra.dods.cache.CacheConstants.SIMPLE_QUERY_CACHE) complex query cache when cache has value 2 (org.enhydra.dods.cache.CacheConstants.COMPLEX_QUERY_CACHE) |
int |
getDeleteNum()
Returns number of delete statements performed on the table. |
int |
getDMLNum()
Returns number of DML operations (inserts, updates and deletes) performed on the table. |
int |
getInsertNum()
Returns number of insert statements performed on the table. |
int |
getLazyLoadingNum()
Returns number of lazy loadings performed on the table. |
int |
getQueryAverageTime()
Returns average time needed for executing non-oid query. |
int |
getQueryByOIdAverageTime()
Returns average time needed for executing query by oid. |
int |
getQueryByOIdNum()
Returns total number of queries by oid performed on the table. |
int |
getQueryNum()
Returns total number of non-oid queries performed on the table. |
java.util.Date |
getStartTime()
Returns time when the statistics was started. |
int |
getStatisticsType()
Returns type of the statistics (TABLE_STATISTICS, CACHE_STATISTICS, or QUERY_CACHE_STATISTICS). |
java.util.Date |
getStopTime()
Returns time when the statistics was stopped. |
int |
getUpdateNum()
Returns number of update statements performed on the table. |
void |
incrementDeleteNum()
Increases number of delete statements performed on table. |
void |
incrementInsertNum()
Increases number of insert statements performed on the table. |
void |
incrementLazyLoadingNum()
Increases number of lazy loadings performed on the table for one. |
void |
incrementQueryByOIdNum()
Increases total number of queries by oid performed on the table for one. |
void |
incrementQueryNum()
Increases total number of non-oid queries performed on the table. |
void |
incrementUpdateNum()
Increases number of update statements performed on the table. |
void |
setDeleteNum(int newDeleteNum)
Sets number of delete statements performed on the table. |
void |
setInsertNum(int newInsertNum)
Sets number of insert statements performed on the table. |
void |
setLazyLoadingNum(int newLazyLoadingNum)
Sets number of lazy loadings performed on the table. |
void |
setQueryByOIdNum(int newQueryByOIdNum)
Sets total number of queries by oid performed on the table. |
void |
setQueryNum(int newQueryNum)
Sets total number of non-oid queries performed on the table. |
void |
setStartTime(java.util.Date startTime)
Sets time when the statistics starts. |
void |
setStopTime(java.util.Date stopTime)
Sets time when the statistics stops. |
void |
setUpdateNum(int newUpdateNum)
Sets number of update statements performed on the table. |
void |
stopTime()
Sets stop time to current time. |
void |
updateQueryAverageTime(int newTime)
Updates average time needed for executing non-oid queries. |
void |
updateQueryByOIdAverageTime(int newTime,
int no)
Updates average time for executing OId queries and increments number of them by paramether no . |
Field Detail |
---|
static final int TABLE_STATISTICS
static final int CACHE_STATISTICS
static final int QUERY_CACHE_STATISTICS
Method Detail |
---|
int getStatisticsType()
int getInsertNum()
void setInsertNum(int newInsertNum)
newInsertNum
- New number of insert statements performed on the
table.void incrementInsertNum()
int getUpdateNum()
void setUpdateNum(int newUpdateNum)
newUpdateNum
- New number of update statements performed on the
table.void incrementUpdateNum()
int getDeleteNum()
void setDeleteNum(int newDeleteNum)
newDeleteNum
- New number of delete statements performed on the
table.void incrementDeleteNum()
int getDMLNum()
int getLazyLoadingNum()
void setLazyLoadingNum(int newLazyLoadingNum)
newLazyLoadingNum
- New number of lazy loadings performed on the
table.void incrementLazyLoadingNum()
java.util.Date getStartTime()
void setStartTime(java.util.Date startTime)
startTime
- Time when the statistics starts.java.util.Date getStopTime()
void setStopTime(java.util.Date stopTime)
stopTime
- time when the statistics stops.void stopTime()
int getQueryNum()
void setQueryNum(int newQueryNum)
newQueryNum
- New total number of non-oid queries performed on
the table.void incrementQueryNum()
int getQueryByOIdNum()
void setQueryByOIdNum(int newQueryByOIdNum)
newQueryByOIdNum
- New total number of queries by oid performed on
the table.void incrementQueryByOIdNum()
int getQueryAverageTime()
void updateQueryAverageTime(int newTime)
newTime
- New query time in miliseconds.int getQueryByOIdAverageTime()
void updateQueryByOIdAverageTime(int newTime, int no)
no
.
Query by oid is query which "where" clause contains request for DO with
specified oid.
newTime
- New query time in miliseconds for no queries by OId.no
- Number of queries by OId.void clear()
CacheStatistics getCacheStatistics(int type)
type
- Value 0 (org.enhydra.dods.cache.CacheConstants.DATA_CACHE)
for DO (data object) cache,
value 1 (org.enhydra.dods.cache.CacheConstants.SIMPLE_QUERY_CACHE) for
simple query cache and value 2
(org.enhydra.dods.cache.CacheConstants.COMPLEX_QUERY_CACHE) for complex
query cache.
|
EAF 7.6 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |