to.etc.dbpool.info
Class StatisticsListenerMultiplexer

java.lang.Object
  extended by to.etc.dbpool.info.StatisticsListenerMultiplexer
All Implemented Interfaces:
IStatisticsListener

public class StatisticsListenerMultiplexer
extends java.lang.Object
implements IStatisticsListener

Multiplexer for all listeners to stats

Author:
Frits Jalvingh Created on Jan 28, 2011

Constructor Summary
StatisticsListenerMultiplexer()
           
 
Method Summary
 void addCollector(java.lang.String key, IStatisticsListener ic)
           
 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.
 IStatisticsListener removeCollector(java.lang.String key)
           
 void statementPrepared(StatementProxy sp, long prepareDuration)
          A statement was prepared or created.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticsListenerMultiplexer

public StatisticsListenerMultiplexer()
Method Detail

addCollector

public void addCollector(java.lang.String key,
                         IStatisticsListener ic)

removeCollector

public IStatisticsListener removeCollector(java.lang.String key)

connectionAllocated

public void connectionAllocated()
Specified by:
connectionAllocated in interface IStatisticsListener

statementPrepared

public void statementPrepared(StatementProxy sp,
                              long prepareDuration)
Description copied from interface: IStatisticsListener
A statement was prepared or created.

Specified by:
statementPrepared in interface IStatisticsListener

queryStatementExecuted

public void queryStatementExecuted(StatementProxy sp,
                                   long executeDuration,
                                   long fetchDuration,
                                   int rowCount,
                                   boolean prepared)
Description copied from interface: IStatisticsListener
A query statement was executed.

Specified by:
queryStatementExecuted in interface IStatisticsListener

executeUpdateExecuted

public void executeUpdateExecuted(StatementProxy sp,
                                  long updateDuration,
                                  int updatedrowcount)
Description copied from interface: IStatisticsListener
An update statement has been executed.

Specified by:
executeUpdateExecuted in interface IStatisticsListener

executeExecuted

public void executeExecuted(StatementProxy sp,
                            long updateDuration,
                            java.lang.Boolean result)
Description copied from interface: IStatisticsListener
Executed an "execute" command.

Specified by:
executeExecuted in interface IStatisticsListener

executePreparedUpdateExecuted

public void executePreparedUpdateExecuted(StatementProxy sp,
                                          long updateDuration,
                                          int rowcount)
Specified by:
executePreparedUpdateExecuted in interface IStatisticsListener

executeBatchExecuted

public void executeBatchExecuted(StatementProxy sp,
                                 long executeDuration,
                                 int[] rc)
Specified by:
executeBatchExecuted in interface IStatisticsListener

finish

public void finish()
Specified by:
finish in interface IStatisticsListener