org.logicalcobwebs.proxool.admin
Class StatisticsLogger

java.lang.Object
  extended by org.logicalcobwebs.proxool.admin.StatisticsLogger
All Implemented Interfaces:
StatisticsListenerIF

public class StatisticsLogger
extends java.lang.Object
implements StatisticsListenerIF

Listens to statistics and logs them

Since:
Proxool 0.7
Version:
$Revision: 1.2 $, $Date: 2003/03/03 11:11:59 $
Author:
bill, $Author: billhorsman $ (current maintainer)

Field Summary
private static java.text.DecimalFormat DECIMAL_FORMAT
           
private  Log log
           
private  java.lang.String logLevel
           
private static java.text.DateFormat TIME_FORMAT
           
 
Constructor Summary
StatisticsLogger(Log log, java.lang.String logLevel)
           
 
Method Summary
 void statistics(java.lang.String alias, StatisticsIF statistics)
          A new set of statistics have just been produced
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DECIMAL_FORMAT

private static final java.text.DecimalFormat DECIMAL_FORMAT

TIME_FORMAT

private static final java.text.DateFormat TIME_FORMAT

log

private Log log

logLevel

private java.lang.String logLevel
Constructor Detail

StatisticsLogger

public StatisticsLogger(Log log,
                        java.lang.String logLevel)
Method Detail

statistics

public void statistics(java.lang.String alias,
                       StatisticsIF statistics)
Description copied from interface: StatisticsListenerIF
A new set of statistics have just been produced

Specified by:
statistics in interface StatisticsListenerIF
Parameters:
alias - identifies the pool
statistics - new statistics