org.logicalcobwebs.proxool.admin
Class CompositeStatisticsListener

java.lang.Object
  extended by org.logicalcobwebs.proxool.util.AbstractListenerContainer
      extended by org.logicalcobwebs.proxool.admin.CompositeStatisticsListener
All Implemented Interfaces:
StatisticsListenerIF, ListenerContainerIF

public class CompositeStatisticsListener
extends AbstractListenerContainer
implements StatisticsListenerIF

A StatisticsListenerIF that keeps a list of StatisticsListenerIFs and notifies them in a thread safe manner. It also implements ListenerContainerIF which provides methods for adding and removing listeners.

Since:
Proxool 0.7
Version:
$Revision: 1.4 $, $Date: 2004/03/16 08:48:32 $
Author:
Christian Nedregaard (christian_nedregaard@email.com), $Author: brenuart $ (current maintainer)

Field Summary
(package private) static Log LOG
           
 
Constructor Summary
CompositeStatisticsListener()
           
 
Method Summary
 void statistics(java.lang.String alias, StatisticsIF statistics)
          A new set of statistics have just been produced
 
Methods inherited from class org.logicalcobwebs.proxool.util.AbstractListenerContainer
addListener, getListeners, isEmpty, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

static final Log LOG
Constructor Detail

CompositeStatisticsListener

public CompositeStatisticsListener()
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
See Also:
StatisticsListenerIF.statistics(String, StatisticsIF)