| 
 | SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
  |
  +--com.solarmetric.jdbc.AbstractJDBCListener
        |
        +--com.solarmetric.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 JDBCListener
	in the JDBCEventConnectionDecorator 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 | commitMaxTimeThe slowest commit made on a Connection. | 
| static long | commitMinTimeThe fastest commit made on a Connection. | 
| static long | commitsThe total number of commits made on a Connection. | 
| static long | commitTimesThe total time taken on the execution of commits made on all Connections. | 
| static long | executePreparedStatementMaxTimeThe slowest PreparedStatementexecution. | 
| static long | executePreparedStatementMinTimeThe fastest PreparedStatementexecution. | 
| static long | executePreparedStatementsThe total number of PreparedStatements executed. | 
| static long | executePreparedStatementTimesThe total time taken on the execution of PreparedStatements. | 
| static long | executeStatementMaxTimeThe slowest Statementexecutions. | 
| static long | executeStatementMinTimeThe fastest Statementexecutions. | 
| static long | executeStatementsThe total number of Statements that have been executed. | 
| static long | executeStatementTimesThe total time for all Statementexecutions. | 
| static int | maxStatementTrackingThe number of slow statements we will track. | 
| static long | rollbackMaxTimeThe slowest rollback made on a Connection. | 
| static long | rollbackMinTimeThe fastest rollback made on a Connection. | 
| static long | rollbacksThe total number of rollbacks made on a Connection. | 
| static long | rollbackTimesThe total time taken on the execution of rollbacks made on all Connections. | 
| static Map | slowestStatementsA Map of SQLString : time, to track the slowest statements we have seen. | 
| static SortedSet | statementTimesA cache of the time elements in slowestStatements. | 
| Constructor Summary | |
| PerformanceTracker() | |
| Method Summary | |
|  void | afterCommit(JDBCEvent event) | 
|  void | afterExecuteStatement(JDBCEvent event) | 
|  void | afterRollback(JDBCEvent event) | 
| static void | reset()Reset all global statistics to their default values. | 
| static void | setLog(Log log)Set the log to write to. | 
| static String | summarizePerformance() | 
|  long | time(JDBCEvent event) | 
|  String | toString()Summarize the statistics. | 
|  void | trackSlowStatements(String sql,
                    long time) | 
| Methods inherited from class com.solarmetric.jdbc.AbstractJDBCListener | 
| afterConnect, afterCreateStatement, afterPrepareStatement, afterReturn, beforeClose, beforeCommit, beforeCreateStatement, beforeExecuteStatement, beforePrepareStatement, beforeReturn, beforeRollback, eventOccurred | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
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 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 static void setLog(Log log)
public void afterExecuteStatement(JDBCEvent event)
afterExecuteStatement in class AbstractJDBCListenercom.solarmetric.jdbc.JDBCListenerJDBCEvent.AFTER_EXECUTE_STATEMENT
public void trackSlowStatements(String sql,
                                long time)
public void afterCommit(JDBCEvent event)
afterCommit in class AbstractJDBCListenercom.solarmetric.jdbc.JDBCListenerJDBCEvent.AFTER_COMMITpublic void afterRollback(JDBCEvent event)
afterRollback in class AbstractJDBCListenercom.solarmetric.jdbc.JDBCListenerJDBCEvent.AFTER_ROLLBACKpublic final long time(JDBCEvent event)
public static String summarizePerformance()
public String toString()
toString in class Object| 
 | SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||