|
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.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 Statistics
public int getInsertNum()
getInsertNum
in interface Statistics
public void setInsertNum(int newInsertNum)
setInsertNum
in interface Statistics
newInsertNum
- New number of insert statements performed on the
table.public void incrementInsertNum()
incrementInsertNum
in interface Statistics
public int getUpdateNum()
getUpdateNum
in interface Statistics
public void setUpdateNum(int newUpdateNum)
setUpdateNum
in interface Statistics
newUpdateNum
- New number of update statements performed on the
table.public void incrementUpdateNum()
incrementUpdateNum
in interface Statistics
public int getDeleteNum()
getDeleteNum
in interface Statistics
public void setDeleteNum(int newDeleteNum)
setDeleteNum
in interface Statistics
newDeleteNum
- New number of delete statements performed on the
table.public void incrementDeleteNum()
incrementDeleteNum
in interface Statistics
public int getDMLNum()
getDMLNum
in interface Statistics
public int getLazyLoadingNum()
getLazyLoadingNum
in interface Statistics
public void setLazyLoadingNum(int newLazyLoadingNum)
setLazyLoadingNum
in interface Statistics
newLazyLoadingNum
- New number of lazy loadings performed on the
table.public void incrementLazyLoadingNum()
incrementLazyLoadingNum
in interface Statistics
public java.util.Date getStartTime()
getStartTime
in interface Statistics
public void setStartTime(java.util.Date startTime)
setStartTime
in interface Statistics
startTime
- Time when the statistics starts.public java.util.Date getStopTime()
getStopTime
in interface Statistics
public void setStopTime(java.util.Date stopTime)
setStopTime
in interface Statistics
stopTime
- time when the statistics was stops.public void stopTime()
stopTime
in interface Statistics
public int getQueryNum()
getQueryNum
in interface Statistics
public void setQueryNum(int newQueryNum)
setQueryNum
in interface Statistics
newQueryNum
- New total number of non-oid queries performed on
the table.public void incrementQueryNum()
incrementQueryNum
in interface Statistics
public int getQueryByOIdNum()
getQueryByOIdNum
in interface Statistics
public void setQueryByOIdNum(int newQueryByOIdNum)
setQueryByOIdNum
in interface Statistics
newQueryByOIdNum
- New total number of queries by oid performed on
the table.public void incrementQueryByOIdNum()
incrementQueryByOIdNum
in interface Statistics
public int getQueryAverageTime()
getQueryAverageTime
in interface Statistics
public void updateQueryAverageTime(int newTime)
updateQueryAverageTime
in interface Statistics
newTime
- 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 Statistics
newTime
- 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 Statistics
public CacheStatistics getCacheStatistics(int type)
getCacheStatistics
in interface Statistics
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.
|
DODS 7.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |