to.etc.dbpool.info
Interface IStatisticsListener

All Known Implementing Classes:
InfoCollectorExpenseBased, StatisticsListenerMultiplexer

public interface IStatisticsListener

Listener for statistic database events.

Author:
Frits Jalvingh Created on Jan 28, 2011

Method Summary
 void connectionAllocated()
           
 void executeBatchExecuted(StatementProxy sp, long executeDuration, int[] rc)
           
 void executeExecuted(StatementProxy sp, long updateDuration, java.lang.Boolean result)
          Executed an "execute" command.
 void executePreparedUpdateExecuted(StatementProxy sp, long updateDuration, int rowcount)
           
 void executeUpdateExecuted(StatementProxy sp, long updateDuration, int updatedrowcount)
          An update statement has been executed.
 void finish()
           
 void queryStatementExecuted(StatementProxy sp, long executeDuration, long fetchDuration, int rowCount, boolean prepared)
          A query statement was executed.
 void statementPrepared(StatementProxy sp, long prepareDuration)
          A statement was prepared or created.
 

Method Detail

connectionAllocated

void connectionAllocated()

statementPrepared

void statementPrepared(StatementProxy sp,
                       long prepareDuration)
A statement was prepared or created.

Parameters:
sp -
prepareDuration -

queryStatementExecuted

void queryStatementExecuted(StatementProxy sp,
                            long executeDuration,
                            long fetchDuration,
                            int rowCount,
                            boolean prepared)
A query statement was executed.

Parameters:
sp -
executeDuration -
fetchDuration -
rowCount -
prepared -

executeUpdateExecuted

void executeUpdateExecuted(StatementProxy sp,
                           long updateDuration,
                           int updatedrowcount)
An update statement has been executed.

Parameters:
sp -
updateDuration -
updatedrowcount -

executeExecuted

void executeExecuted(StatementProxy sp,
                     long updateDuration,
                     java.lang.Boolean result)
Executed an "execute" command.

Parameters:
sp -
updateDuration -
result -

executePreparedUpdateExecuted

void executePreparedUpdateExecuted(StatementProxy sp,
                                   long updateDuration,
                                   int rowcount)

executeBatchExecuted

void executeBatchExecuted(StatementProxy sp,
                          long executeDuration,
                          int[] rc)

finish

void finish()