org.logicalcobwebs.proxool.admin
Class CompositeStatisticsListener

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

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.3 $, $Date: 2003/03/10 15:26:51 $
Author:
Christian Nedregaard (christian_nedregaard@email.com), $Author: billhorsman $ (current maintainer)

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, isEmpty, removeListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)