|
DODS 7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.enhydra.dods.statistics.TableStatistics
public class TableStatistics
This class provides information about table and its statistics.
| Field Summary | |
|---|---|
protected int |
averageQueryByOIdTime
Average time for executing queries by oid in milliseconds. |
protected int |
averageQueryTime
Average time for executing non-oid queries in milliseconds. |
protected int |
deleteNum
Number of delete statements performed on the table. |
protected int |
insertNum
Number of insert statements performed on the table. |
protected int |
lazyLoadingNum
Number of lazy loadings performed on the table. |
protected int |
queryByOIdNum
Total number of queries by oid performed on the table. |
protected int |
queryNum
Total number of non-oid queries performed on the table. |
protected java.util.Date |
startTime
Time when the statistics was started. |
protected java.util.Date |
stopTime
Time when the statistics was stopped. |
protected int |
updateNum
Number of update statements performed on the table. |
| Fields inherited from interface org.enhydra.dods.statistics.Statistics |
|---|
CACHE_STATISTICS, QUERY_CACHE_STATISTICS, TABLE_STATISTICS |
| Constructor Summary | |
|---|---|
TableStatistics()
Constructor(). |
|
| Method Summary | |
|---|---|
void |
clear()
Clears statistics. |
void |
clears()
Clears statistics. |
CacheStatistics |
getCacheStatistics(int type)
Returns query statistics for table without 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 oid query. |
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. |
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 statemenst 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int insertNum
protected int updateNum
protected int deleteNum
protected int lazyLoadingNum
protected java.util.Date startTime
protected java.util.Date stopTime
protected int queryNum
protected int queryByOIdNum
protected int averageQueryTime
protected int averageQueryByOIdTime
| Constructor Detail |
|---|
public TableStatistics()
| Method Detail |
|---|
public int getStatisticsType()
getStatisticsType in interface Statisticspublic int getInsertNum()
getInsertNum in interface Statisticspublic void setInsertNum(int newInsertNum)
setInsertNum in interface StatisticsnewInsertNum - New number of insert statements performed on the
table.public void incrementInsertNum()
incrementInsertNum in interface Statisticspublic int getUpdateNum()
getUpdateNum in interface Statisticspublic void setUpdateNum(int newUpdateNum)
setUpdateNum in interface StatisticsnewUpdateNum - New number of update statements performed on the
table.public void incrementUpdateNum()
incrementUpdateNum in interface Statisticspublic int getDeleteNum()
getDeleteNum in interface Statisticspublic void setDeleteNum(int newDeleteNum)
setDeleteNum in interface StatisticsnewDeleteNum - New number of delete statements performed on the
table.public void incrementDeleteNum()
incrementDeleteNum in interface Statisticspublic int getDMLNum()
getDMLNum in interface Statisticspublic int getLazyLoadingNum()
getLazyLoadingNum in interface Statisticspublic void setLazyLoadingNum(int newLazyLoadingNum)
setLazyLoadingNum in interface StatisticsnewLazyLoadingNum - New number of lazy loadings performed on the
table.public void incrementLazyLoadingNum()
incrementLazyLoadingNum in interface Statisticspublic java.util.Date getStartTime()
getStartTime in interface Statisticspublic void setStartTime(java.util.Date startTime)
setStartTime in interface StatisticsstartTime - Time when the statistics starts.public java.util.Date getStopTime()
getStopTime in interface Statisticspublic void setStopTime(java.util.Date stopTime)
setStopTime in interface StatisticsstopTime - time when the statistics was stops.public void stopTime()
stopTime in interface Statisticspublic int getQueryNum()
getQueryNum in interface Statisticspublic void setQueryNum(int newQueryNum)
setQueryNum in interface StatisticsnewQueryNum - New total number of non-oid queries performed on
the table.public void incrementQueryNum()
incrementQueryNum in interface Statisticspublic int getQueryByOIdNum()
getQueryByOIdNum in interface Statisticspublic void setQueryByOIdNum(int newQueryByOIdNum)
setQueryByOIdNum in interface StatisticsnewQueryByOIdNum - New total number of queries by oid performed on
the table.public void incrementQueryByOIdNum()
incrementQueryByOIdNum in interface Statisticspublic int getQueryAverageTime()
getQueryAverageTime in interface Statisticspublic void updateQueryAverageTime(int newTime)
updateQueryAverageTime in interface StatisticsnewTime - New query time in miliseconds.public int getQueryByOIdAverageTime()
getQueryByOIdAverageTime in interface Statistics
public void updateQueryByOIdAverageTime(int newTime,
int no)
no.
Query by oid is query which "where" clause contains request for DO with
specified oid.
updateQueryByOIdAverageTime in interface StatisticsnewTime - New query time in miliseconds for no queries by OId.no - Number of queries by OId.public void clears()
public void clear()
clear in interface Statisticspublic CacheStatistics getCacheStatistics(int type)
getCacheStatistics in interface Statisticstype - 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.
|
DODS 7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||