|
SolarMetric Kodo JDO 2.4.3 generated on March 27 2003 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.solarmetric.kodo.impl.jdbc.AbstractSQLExecutionListener
|
+--com.solarmetric.kodo.impl.jdbc.PerformanceTracker
A global tracker of performance-related statistics. All the performance-related statistics are available as public static variables which can be accessed directly by an application.
A PerformanceTracker must be added as a SQLExecutionListener
in the SQLExecutionManager in order to be used. Performance
statistics are logged whenever a commit occurs. A summary of
performance statistics can be obtained by invoking the static
summarizePerformance() method at any time.
| Field Summary | |
|---|---|
static long |
commitMaxTime
The slowest commit made on a Connection. |
static long |
commitMinTime
The fastest commit made on a Connection. |
static long |
commits
The total number of commits made on a Connection. |
static long |
commitTimes
The total time taken on the execution of commits made on all Connections. |
static long |
connectionMaxTime
The slowest Connection to be opened. |
static long |
connectionMinTime
The fastest Connection to be opened. |
static long |
connections
The total number of Connections opened. |
static long |
connectionTimes
The total time taken on the opening of all Connections. |
static long |
executePreparedStatementMaxTime
The slowest PreparedStatement execution. |
static long |
executePreparedStatementMinTime
The fastest PreparedStatement execution. |
static long |
executePreparedStatements
The total number of PreparedStatements executed. |
static long |
executePreparedStatementTimes
The total time taken on the execution of PreparedStatements. |
static long |
executeStatementMaxTime
The slowest Statement executions. |
static long |
executeStatementMinTime
The fastest Statement executions. |
static long |
executeStatements
The total number of Statements that have been executed. |
static long |
executeStatementTimes
The total time for all Statement executions. |
static int |
maxStatementTracking
The number of slow statements we will track. |
static String |
PERFORMANCE_LOG
|
static long |
resultSetMaxTime
The slowest ResultSet that have been closed. |
static long |
resultSetMinTime
The fastest ResultSet that has been closed. |
static long |
resultSets
The total number of ResultSets that have been closed. |
static long |
resultSetTimes
The total time taken on the closing of all ResultSets. |
static long |
rollbackMaxTime
The slowest rollback made on a Connection. |
static long |
rollbackMinTime
The fastest rollback made on a Connection. |
static long |
rollbacks
The total number of rollbacks made on a Connection. |
static long |
rollbackTimes
The total time taken on the execution of rollbacks made on all Connections. |
static Map |
slowestStatements
A Map of SQLString : time, to track the slowest statements we have seen. |
static SortedSet |
statementTimes
A cache of the time elements in slowestStatements. |
| Constructor Summary | |
|---|---|
PerformanceTracker()
|
|
| Methods inherited from class com.solarmetric.kodo.impl.jdbc.AbstractSQLExecutionListener |
|---|
eventOccured |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.solarmetric.kodo.impl.jdbc.SQLExecutionListener |
|---|
eventOccured |
| Field Detail |
public static final String PERFORMANCE_LOG
public static long executeStatements
Statements that have been executed.public static long executeStatementTimes
Statement executions.public static long executeStatementMinTime
Statement executions.public static long executeStatementMaxTime
Statement executions.public static long executePreparedStatements
PreparedStatements executed.public static long executePreparedStatementTimes
PreparedStatements.public static long executePreparedStatementMinTime
PreparedStatement execution.public static long executePreparedStatementMaxTime
PreparedStatement execution.public static long resultSets
ResultSets that have been closed.public static long resultSetTimes
ResultSets.public static long resultSetMinTime
ResultSet that has been closed.public static long resultSetMaxTime
ResultSet that have been closed.public static long connections
Connections opened.public static long connectionTimes
Connections.public static long connectionMinTime
Connection to be opened.public static long connectionMaxTime
Connection to be opened.public static long commits
Connection.public static long commitTimes
Connections.public static long commitMinTime
Connection.public static long commitMaxTime
Connection.public static long rollbacks
Connection.public static long rollbackTimes
Connections.public static long rollbackMinTime
Connection.public static long rollbackMaxTime
Connection.public static int maxStatementTracking
public static Map slowestStatements
public static SortedSet statementTimes
slowestStatements.| Constructor Detail |
public PerformanceTracker()
| Method Detail |
public static void reset()
public void preparingStatement(SQLExecutionEvent event,
SQLBuffer[] buf)
preparingStatement in class AbstractSQLExecutionListenerSQLExecutionEvent.PREPARING_STATEMENT
public void creatingStatement(SQLExecutionEvent event,
SQLBuffer[] buf)
creatingStatement in class AbstractSQLExecutionListenerSQLExecutionEvent.CREATING_STATEMENT
public void beforeExecuteStatement(SQLExecutionEvent event,
Statement stmnt)
beforeExecuteStatement in class AbstractSQLExecutionListenerSQLExecutionEvent.BEFORE_EXECUTE_STATEMENT
public void afterExecuteStatement(SQLExecutionEvent event,
Statement stmnt)
afterExecuteStatement in class AbstractSQLExecutionListenerSQLExecutionEvent.AFTER_EXECUTE_STATEMENT
public void trackSlowStatements(SQLBuffer[] buffer,
long time)
public void trackSlowStatements(SQLBuffer buffer,
long time)
public void beforeCommit(SQLExecutionEvent event,
Connection c)
beforeCommit in class AbstractSQLExecutionListenerSQLExecutionEvent.BEFORE_COMMIT
public void afterCommit(SQLExecutionEvent event,
Connection c)
afterCommit in class AbstractSQLExecutionListenerSQLExecutionEvent.AFTER_COMMIT
public void beforeRollback(SQLExecutionEvent event,
Connection c)
beforeRollback in class AbstractSQLExecutionListenerSQLExecutionEvent.BEFORE_ROLLBACK
public void afterRollback(SQLExecutionEvent event,
Connection c)
afterRollback in class AbstractSQLExecutionListenerSQLExecutionEvent.AFTER_ROLLBACK
public void beforeClose(SQLExecutionEvent event,
Connection c)
beforeClose in class AbstractSQLExecutionListenerSQLExecutionEvent.BEFORE_CLOSE
public void afterClose(SQLExecutionEvent event,
Connection c)
afterClose in class AbstractSQLExecutionListenerSQLExecutionEvent.AFTER_CLOSEpublic void beforeConnect(SQLExecutionEvent event)
beforeConnect in class AbstractSQLExecutionListenerSQLExecutionEvent.BEFORE_CONNECT
public void afterConnect(SQLExecutionEvent event,
Connection c)
afterConnect in class AbstractSQLExecutionListenerSQLExecutionEvent.AFTER_CONNECT
public void beforeCloseResultSet(SQLExecutionEvent event,
ResultSet rs)
beforeCloseResultSet in class AbstractSQLExecutionListenerSQLExecutionEvent.BEFORE_CLOSE_RESULTSET
public void afterCloseResultSet(SQLExecutionEvent event,
ResultSet rs)
afterCloseResultSet in class AbstractSQLExecutionListenerSQLExecutionEvent.AFTER_CLOSE_RESULTSETpublic final long time(SQLExecutionEvent event)
public static String summarizePerformance()
public String toString()
toString in class Object
|
SolarMetric Kodo JDO 2.4.3 generated on March 27 2003 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||