Method Summary |
|
public void | clear() Clears DO, simple query and complex query statistics. |
public 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)
Parameters: 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) forsimple query cache and value 2(org.enhydra.dods.cache.CacheConstants.COMPLEX_QUERY_CACHE) for complexquery cache. |
public int | getDMLNum() Returns number of DML operations (inserts, updates and deletes) performed
on the table. |
public int | getDeleteNum() Returns number of delete statements performed on the table. |
public int | getInsertNum() Returns number of insert statements performed on the table. |
public int | getLazyLoadingNum() Returns number of lazy loadings performed on the table. |
public int | getQueryAverageTime() Returns average time needed for executing non-oid query.
Query by oid is query which "where" clause contains request for DO with
specified oid. |
public int | getQueryByOIdAverageTime() Returns average time needed for executing query by oid. |
public int | getQueryByOIdNum() Returns total number of queries by oid performed on the table. |
public int | getQueryNum() Returns total number of non-oid queries performed on the table.
Query by oid is query which "where" clause contains request for DO with
specified oid. |
public Date | getStartTime() Returns time when the statistics was started. |
public int | getStatisticsType() Returns type of the statistics (TABLE_STATISTICS, CACHE_STATISTICS, or
QUERY_CACHE_STATISTICS). |
public Date | getStopTime() Returns time when the statistics was stopped. |
public int | getUpdateNum() Returns number of update statements performed on the table. |
public void | incrementDeleteNum() Increases number of delete statements performed on table. |
public void | incrementInsertNum() Increases number of insert statements performed on the table. |
public void | incrementLazyLoadingNum() Increases number of lazy loadings performed on the table for one. |
public void | incrementQueryByOIdNum() Increases total number of queries by oid performed on the table for one. |
public void | incrementQueryNum() Increases total number of non-oid queries performed on the table.
Query by oid is query which "where" clause contains request for DO with
specified oid. |
public void | incrementUpdateNum() Increases number of update statements performed on the table. |
public void | setDeleteNum(int newDeleteNum) Sets number of delete statements performed on the table. |
public void | setInsertNum(int newInsertNum) Sets number of insert statements performed on the table. |
public void | setLazyLoadingNum(int newLazyLoadingNum) Sets number of lazy loadings performed on the table. |
public void | setQueryByOIdNum(int newQueryByOIdNum) Sets total number of queries by oid performed on the table. |
public void | setQueryNum(int newQueryNum) Sets total number of non-oid queries performed on the table.
Query by oid is query which "where" clause contains request for DO with
specified oid. |
public void | setStartTime(Date startTime) Sets time when the statistics starts. |
public void | setStopTime(Date stopTime) Sets time when the statistics stops. |
public void | setUpdateNum(int newUpdateNum) Sets number of update statements performed on the table. |
public void | stopTime() Sets stop time to current time. |
public void | updateQueryAverageTime(int newTime) Updates average time needed for executing non-oid queries.
Query by oid is query which "where" clause contains request for DO with
specified oid. |
public void | updateQueryByOIdAverageTime(int newTime, int no) Updates average time for executing OId queries and increments number
of them by paramether no . |