KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > logicalcobwebs > proxool > admin > StatisticsIF


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 import java.util.Date JavaDoc;
9
10 /**
11  * Provides statistical performance information for a period ot
12  * time.
13  *
14  * @version $Revision: 1.2 $, $Date: 2003/03/03 11:11:59 $
15  * @author bill
16  * @author $Author: billhorsman $ (current maintainer)
17  * @since Proxool 0.7
18  */

19 public interface StatisticsIF {
20
21     /**
22      * The length of time this sample represents,
23      * @return period (milliseconds)
24      */

25     long getPeriod();
26
27     /**
28      * The average time that each connection spent active.
29      * @return averageActiveTime (milliseconds)
30      */

31     double getAverageActiveTime();
32
33     /**
34      * The average number of active connections,
35      * @return averageActiveCount
36      */

37     double getAverageActiveCount();
38
39     /**
40      * The number of connections served during this sample.
41      * @return servedCount
42      */

43     long getServedCount();
44
45     /**
46      * The number of connections refused during this sample.
47      * @return refusedCount
48      */

49     long getRefusedCount();
50
51     /**
52      * When this sample started.
53      * @return startDate
54      * @see #getStopDate
55      * @see #getPeriod
56      */

57     Date JavaDoc getStartDate();
58
59     /**
60      * When this sample stopped
61      * @return stopDate
62      * @see #getStartDate
63      * @see #getPeriod
64      */

65     Date JavaDoc getStopDate();
66
67     /**
68      * The rate at which we have served connections
69      * @return servedPerSecond
70      */

71     double getServedPerSecond();
72
73     /**
74      * The rate at which we have refused connections
75      * @return refusedPerSecond
76      */

77     double getRefusedPerSecond();
78
79 }
80
81
82 /*
83  Revision history:
84  $Log: StatisticsIF.java,v $
85  Revision 1.2 2003/03/03 11:11:59 billhorsman
86  fixed licence
87
88  Revision 1.1 2003/02/19 23:36:51 billhorsman
89  renamed monitor package to admin
90
91  Revision 1.3 2003/01/31 16:53:23 billhorsman
92  checkstyle
93
94  Revision 1.2 2003/01/31 16:38:54 billhorsman
95  doc (and removing public modifier for classes where possible)
96
97  Revision 1.1 2003/01/31 11:35:57 billhorsman
98  improvements to servlet (including connection details)
99
100  Revision 1.1 2003/01/30 17:20:12 billhorsman
101  fixes, improvements and doc
102
103  */
Popular Tags