|
DODS 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.dods.statistics.TableStatistics
This class provides information about table and its statistics.
Field Summary | |
protected int |
averageQueryByOIdTime
Average time for executing non-oid queries in milliseconds . |
protected int |
averageQueryTime
Average time for executing non-oid queries in milliseconds . |
protected int |
complexQueryNum
Number of complex queries performed on the table. |
protected int |
deleteNum
Number of delete statement performed on table. |
protected int |
insertNum
Number of insert statement performed on table. |
protected int |
lazyLoadingNum
Number of lazy loadings performed on table. |
protected int |
queryByOIdNum
Total number of queries by oid performed on the table. |
protected int |
queryNum
Total number of queries performed on the table. |
protected int |
simpleQueryNum
Number of simple queries performed on the table. |
protected java.util.Date |
startTime
Time when statistics started. |
protected java.util.Date |
stopTime
Time when statistics has been stopped. |
protected java.lang.String |
tableName
Name of the table. |
protected int |
updateNum
Number of update statement performed on table. |
Constructor Summary | |
TableStatistics(java.lang.String name)
Constructor which initialize start time of the statistics. |
Method Summary | |
java.lang.String |
getCacheType()
Returns cache type. |
int |
getComplexQueryNum()
Returns number of complex queries performed on the table. |
int |
getDeleteNum()
Returns number of delete statement performed on table. |
int |
getDMLNum()
Returns number of DML operation performed on table. |
int |
getInsertNum()
Returns number of insert statement performed on table. |
int |
getLazyLoadingNum()
Returns number of lazy loadings performed on table. |
int |
getQueryAverageTime()
Returns average time for executing non-oid query. |
int |
getQueryByOIdAverageTime()
Returns average time for executing oid query. |
int |
getQueryByOIdNum()
Returns total number of queries by oid performed on the table. |
int |
getQueryNum()
Returns total number of queries performed on the table. |
int |
getSimpleQueryNum()
Returns number of simple queries performed on the table. |
java.util.Date |
getStartTime()
Returns time when statistics started. |
java.util.Date |
getStopTime()
Returns time when statistics has been stopped. |
java.lang.String |
getTableName()
Returns table name. |
int |
getUpdateNum()
Returns number of update statement performed on table. |
void |
incrementComplexQueryNum()
Increases number of complex queries performed on the table for one. |
void |
incrementDeleteNum()
Increases number of delete statement performed on table. |
void |
incrementInsertNum()
Increases number of insert statement performed on table. |
void |
incrementLazyLoadingNum()
Increases number of lazy loadings performed on table for one. |
void |
incrementQueryByOIdNum()
Increases total number of queries by oid performed on the table for one. |
void |
incrementQueryNum()
Increases total number of queries performed on the table for one. |
void |
incrementSimpleQueryNum()
Increases number of simple queries performed on the table for one. |
void |
incrementUpdateNum()
Increases number of update statement performed on table. |
void |
setCacheType(java.lang.String type)
Sets cache type. |
void |
setComplexQueryNum(int complexQueryNum)
Sets number of complex queries performed on the table. |
void |
setDeleteNum(int deleteNum)
Sets number of delete statement performed on table. |
void |
setInsertNum(int insertNum)
Sets number of insert statement performed on table. |
void |
setLazyLoadingNum(int lazyLoadingNum)
Sets number of lazy loadings performed on table. |
void |
setQueryByOIdNum(int queryByOIdNum)
Sets total number of queries by oid performed on the table. |
void |
setQueryNum(int queryNum)
Sets total number of queries performed on the table. |
void |
setSimpleQueryNum(int simpleQueryNum)
Sets number of simple queries performed on the table. |
void |
setStartTime(java.util.Date startTime)
Sets time when statistics started. |
void |
setStopTime(java.util.Date stopTime)
Sets time when statistics has been stopped. |
void |
setTableName(java.lang.String name)
Sets table name. |
void |
setUpdateNum(int updateNum)
Sets number of update statement performed on table. |
void |
show()
Shows content of this class. |
void |
stopTime()
Sets stop time to current time. |
void |
updateQueryAverageTime(int newTime)
Updates average time for executing non-oid queries. |
void |
updateQueryByOIdAverageTime(int newTime,
int no)
Updates average time for executing OId queries and inctrement 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 java.lang.String tableName
protected int queryNum
protected int queryByOIdNum
protected int simpleQueryNum
protected int complexQueryNum
protected int insertNum
protected int updateNum
protected int deleteNum
protected int lazyLoadingNum
protected java.util.Date startTime
protected java.util.Date stopTime
protected int averageQueryTime
protected int averageQueryByOIdTime
Constructor Detail |
public TableStatistics(java.lang.String name)
Method Detail |
public java.lang.String getTableName()
getTableName
in interface Statistics
public void setTableName(java.lang.String name)
setTableName
in interface Statistics
name
- table name.public int getQueryNum()
getQueryNum
in interface Statistics
public void setQueryNum(int queryNum)
setQueryNum
in interface Statistics
queryNum
- total number of queries performed on the table.public void incrementQueryNum()
incrementQueryNum
in interface Statistics
public int getQueryByOIdNum()
getQueryByOIdNum
in interface Statistics
public void setQueryByOIdNum(int queryByOIdNum)
setQueryByOIdNum
in interface Statistics
public void incrementQueryByOIdNum()
incrementQueryByOIdNum
in interface Statistics
public int getSimpleQueryNum()
public void setSimpleQueryNum(int simpleQueryNum)
simpleQueryNum
- number of simple queries performed on the table.public void incrementSimpleQueryNum()
public int getComplexQueryNum()
public void setComplexQueryNum(int complexQueryNum)
complexQueryNum
- number of complex queries performed on the table.public void incrementComplexQueryNum()
public int getInsertNum()
getInsertNum
in interface Statistics
public void setInsertNum(int insertNum)
setInsertNum
in interface Statistics
insertNum
- number of insert performed statement performed on tables.public void incrementInsertNum()
incrementInsertNum
in interface Statistics
public int getUpdateNum()
getUpdateNum
in interface Statistics
public void setUpdateNum(int updateNum)
setUpdateNum
in interface Statistics
updateNum
- number of update performed statement performed on table.public void incrementUpdateNum()
incrementUpdateNum
in interface Statistics
public int getDeleteNum()
getDeleteNum
in interface Statistics
public void setDeleteNum(int deleteNum)
setDeleteNum
in interface Statistics
deleteNum
- number of delete performed statement performed on 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 lazyLoadingNum)
setLazyLoadingNum
in interface Statistics
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 statistics started.public java.util.Date getStopTime()
getStopTime
in interface Statistics
public void setStopTime(java.util.Date stopTime)
setStopTime
in interface Statistics
public void stopTime()
stopTime
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
.
updateQueryByOIdAverageTime
in interface Statistics
newTime
- new query time in miliseconds for no queries by OId.no
- number of queries by OId.public java.lang.String getCacheType()
getCacheType
in interface Statistics
public void setCacheType(java.lang.String type)
setCacheType
in interface Statistics
type
- cache typepublic void show()
|
DODS 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |