01: /*
02: * This software is released under a licence similar to the Apache Software Licence.
03: * See org.logicalcobwebs.proxool.package.html for details.
04: * The latest version is available at http://proxool.sourceforge.net
05: */
06: package org.logicalcobwebs.proxool.admin;
07:
08: /**
09: * 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: Revision history:
36: $Log: StatisticsListenerIF.java,v $
37: Revision 1.2 2003/03/03 11:11:59 billhorsman
38: fixed licence
39:
40: Revision 1.1 2003/02/19 23:36:51 billhorsman
41: renamed monitor package to admin
42:
43: Revision 1.2 2003/02/08 00:35:29 billhorsman
44: doc
45:
46: Revision 1.1 2003/01/31 15:16:12 billhorsman
47: new listener
48:
49: */
|