|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.infrared.agent.jdbcstats.JDBCStatisticRepository
This is the repository for storing the SQL statistics.
| Constructor Summary | |
JDBCStatisticRepository()
|
|
| Method Summary | |
SqlStatistics[] |
getCopyOfSqlStatistics()
|
Long |
getId(String sql)
Returns the id associated with a sql string, if the sql is not already in the map it will add an entry to the map |
Map |
getIdToSqlMapCopy()
|
double |
getPrepareExecuteRatio()
|
String |
getSql(Long id)
|
long |
getTotalTimeInJDBCLayer()
|
void |
incrementNoOfExecutes()
|
void |
incrementNoOfPrepares()
|
IdMapper |
merge(JDBCStatisticRepository other)
|
void |
recordExecuteError(Long id,
long time,
boolean prepared)
Record a failed execute |
void |
recordExecuteSql(Long id,
long time,
boolean prepared)
Record a call to execute a statement |
void |
recordFetchComplete(Long id,
long noOfRowsFetched,
long timeTakenForFetch)
|
void |
recordPrepareSql(Long id,
long time)
Record a call to prepare a sql statement |
void |
reset()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JDBCStatisticRepository()
| Method Detail |
public void recordPrepareSql(Long id,
long time)
id - - id of the sql querytime - - time spent in preparing
public void recordExecuteSql(Long id,
long time,
boolean prepared)
id - - id of the sql querytime - - time spent in executing the queryprepared - - was it a prepared statement or plain statement
public void recordExecuteError(Long id,
long time,
boolean prepared)
id - - id of the sql querytime - - time spent in executing the queryprepared - - was it a prepared statement or plain statement
public void recordFetchComplete(Long id,
long noOfRowsFetched,
long timeTakenForFetch)
public Long getId(String sql)
sql -
public void incrementNoOfExecutes()
public void incrementNoOfPrepares()
public double getPrepareExecuteRatio()
public long getTotalTimeInJDBCLayer()
public SqlStatistics[] getCopyOfSqlStatistics()
public String getSql(Long id)
public void reset()
public IdMapper merge(JDBCStatisticRepository other)
public Map getIdToSqlMapCopy()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||