1 /* 2 * This software is released under a licence similar to the Apache Software Licence. 3 * See org.logicalcobwebs.proxool.package.html for details. 4 * The latest version is available at http://proxool.sourceforge.net 5 */ 6 package org.logicalcobwebs.proxool.admin; 7 8 /** 9 * Listen for new {@link StatisticsIF statistics} as they are produced. 10 * The frequency with which they occur is defined in the 11 * {@link org.logicalcobwebs.proxool.ConnectionPoolDefinitionIF#getStatistics configuration}. 12 * 13 * <pre> 14 * String alias = "myPool"; 15 * StatisticsListenerIF myStatisticsListener = new MyStatisticsListener(); 16 * ProxoolFacade.{@link org.logicalcobwebs.proxool.ProxoolFacade#addStatisticsListener addStatisticsListener}(alias, myStatisticsListener); 17 * </pre> 18 19 * @version $Revision: 1.2 $, $Date: 2003/03/03 11:11:59 $ 20 * @author bill 21 * @author $Author: billhorsman $ (current maintainer) 22 * @since Proxool 0.7 23 */ 24 public interface StatisticsListenerIF { 25 26 /** 27 * A new set of statistics have just been produced 28 * @param alias identifies the pool 29 * @param statistics new statistics 30 */ 31 void statistics(String alias, StatisticsIF statistics); 32 } 33 34 35 /* 36 Revision history: 37 $Log: StatisticsListenerIF.java,v $ 38 Revision 1.2 2003/03/03 11:11:59 billhorsman 39 fixed licence 40 41 Revision 1.1 2003/02/19 23:36:51 billhorsman 42 renamed monitor package to admin 43 44 Revision 1.2 2003/02/08 00:35:29 billhorsman 45 doc 46 47 Revision 1.1 2003/01/31 15:16:12 billhorsman 48 new listener 49 50 */