KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > logicalcobwebs > proxool > StateListenerIF


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;
7
8 /**
9  * Monitors the state of the pool so you can see whether it is
10  * quiet, busy, overloaded, or down.
11  *
12  * <pre>
13  * String alias = "myPool";
14  * StateListenerIF myStateListener = new MyStateListener();
15  * ProxoolFacade.{@link ProxoolFacade#addStateListener addStateListenerIF}(alias, myStateListener);
16  * </pre>
17  *
18  * @version $Revision: 1.5 $, $Date: 2003/03/03 11:11:58 $
19  * @author billhorsman
20  * @author $Author: billhorsman $ (current maintainer)
21  */

22 public interface StateListenerIF {
23
24     public final int STATE_QUIET = 0;
25
26     public final int STATE_BUSY = 1;
27
28     public final int STATE_OVERLOADED = 2;
29
30     public final int STATE_DOWN = 3;
31
32     void upStateChanged(int upState);
33 }
34
35 /*
36  Revision history:
37  $Log: StateListenerIF.java,v $
38  Revision 1.5 2003/03/03 11:11:58 billhorsman
39  fixed licence
40
41  Revision 1.4 2003/02/08 00:35:30 billhorsman
42  doc
43
44  Revision 1.3 2002/12/15 19:21:42 chr32
45  Changed @linkplain to @link (to preserve JavaDoc for 1.2/1.3 users).
46
47  Revision 1.2 2002/10/25 16:00:27 billhorsman
48  added better class javadoc
49
50  Revision 1.1.1.1 2002/09/13 08:13:30 billhorsman
51  new
52
53  Revision 1.5 2002/07/10 16:14:47 billhorsman
54  widespread layout changes and move constants into ProxoolConstants
55
56  Revision 1.4 2002/06/28 11:19:47 billhorsman
57  improved doc
58
59  Revision 1.3 2002/06/28 11:15:41 billhorsman
60  didn't really need ListenerIF
61
62 */

63
Popular Tags