KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > admin > monitor > stats > PWCRequestStats


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 /*
25  * Copyright 2004-2005 Sun Microsystems, Inc. All rights reserved.
26  * Use is subject to license terms.
27  */

28
29 /*
30  * PWCRequestStats.java
31  *
32  * Created on April 2, 2004, 10:51 AM
33  */

34
35 package com.sun.enterprise.admin.monitor.stats;
36
37 import com.sun.enterprise.admin.monitor.stats.StringStatistic;
38 import javax.management.j2ee.statistics.Stats JavaDoc;
39 import javax.management.j2ee.statistics.CountStatistic JavaDoc;
40
41 /**
42  * Interface representing statistical information about the request bucket
43  */

44 public interface PWCRequestStats extends Stats JavaDoc {
45     
46     /**
47      * Gets the method of the last request serviced.
48      *
49      * @return Method of the last request serviced
50      */

51     public StringStatistic getMethod();
52     
53     /**
54      * Gets the URI of the last request serviced.
55      *
56      * @return URI of the last request serviced
57      */

58     public StringStatistic getUri();
59     
60     /**
61      * Gets the number of requests serviced.
62      *
63      * @return Number of requests serviced
64      */

65     public CountStatistic JavaDoc getCountRequests();
66     
67     /**
68      * Gets the number of bytes received.
69      *
70      * @return Number of bytes received, or 0 if this information is
71      * not available
72      */

73     public CountStatistic JavaDoc getCountBytesReceived();
74     
75     /**
76      * Gets the number of bytes transmitted.
77      *
78      * @return Number of bytes transmitted, or 0 if this information
79      * is not available
80      */

81     public CountStatistic JavaDoc getCountBytesTransmitted();
82     
83     /**
84      * Gets the rate (in bytes per second) at which data was transmitted
85      * over some server-defined interval.
86      *
87      * @return Rate (in bytes per second) at which data was
88      * transmitted over some server-defined interval, or 0 if this
89      * information is not available
90      */

91     public CountStatistic JavaDoc getRateBytesTransmitted();
92     
93     /**
94      * Gets the maximum rate at which data was transmitted over some
95      * server-defined interval.
96      *
97      * @return Maximum rate at which data was transmitted over some
98      * server-defined interval, or 0 if this information is not available.
99      */

100     public CountStatistic JavaDoc getMaxByteTransmissionRate();
101     
102     /**
103      * Gets the number of open connections.
104      *
105      * @return Number of open connections, or 0 if this information
106      * is not available
107      */

108     public CountStatistic JavaDoc getCountOpenConnections();
109     
110     /**
111      * Gets the maximum number of open connections.
112      *
113      * @return Maximum number of open connections, or 0 if this
114      * information is not available
115      */

116     public CountStatistic JavaDoc getMaxOpenConnections();
117     
118     /**
119      * Gets the number of 200-level responses sent.
120      *
121      * @return Number of 200-level responses sent
122      */

123     public CountStatistic JavaDoc getCount2xx();
124     
125     /**
126      * Gets the number of 300-level responses sent.
127      *
128      * @return Number of 300-level responses sent
129      */

130     public CountStatistic JavaDoc getCount3xx();
131     
132     /**
133      * Gets the number of 400-level responses sent.
134      *
135      * @return Number of 400-level responses sent
136      */

137     public CountStatistic JavaDoc getCount4xx();
138     
139     /**
140      * Gets the number of 500-level responses sent.
141      *
142      * @return Number of 500-level responses sent
143      */

144     public CountStatistic JavaDoc getCount5xx();
145     
146     /**
147      * Gets the number of responses sent that were not 200, 300, 400,
148      * or 500 level.
149      *
150      * @return Number of responses sent that were not 200, 300, 400,
151      * or 500 level
152      */

153     public CountStatistic JavaDoc getCountOther();
154     
155     /**
156      * Gets the number of responses with a 200 response code.
157      *
158      * @return Number of responses with a 200 response code
159      */

160     public CountStatistic JavaDoc getCount200();
161     
162     /**
163      * Gets the number of responses with a 302 response code.
164      *
165      * @return Number of responses with a 302 response code
166      */

167     public CountStatistic JavaDoc getCount302();
168     
169     /**
170      * Gets the number of responses with a 304 response code.
171      *
172      * @return Number of responses with a 304 response code
173      */

174     public CountStatistic JavaDoc getCount304();
175     
176     /**
177      * Gets the number of responses with a 400 response code.
178      *
179      * @return Number of responses with a 400 response code
180      */

181     public CountStatistic JavaDoc getCount400();
182     
183     /**
184      * Gets the number of responses with a 401 response code.
185      *
186      * @return Number of responses with a 401 response code
187      */

188     public CountStatistic JavaDoc getCount401();
189     
190     /**
191      * Gets the number of responses with a 403 response code.
192      *
193      * @return Number of responses with a 403 response code
194      */

195     public CountStatistic JavaDoc getCount403();
196     
197     /**
198      * Gets the number of responses with a 404 response code.
199      *
200      * @return Number of responses with a 404 response code
201      */

202     public CountStatistic JavaDoc getCount404();
203     
204     /**
205      * Gets the number of responses with a 503 response code.
206      *
207      * @return Number of responses with a 503 response code
208      */

209     public CountStatistic JavaDoc getCount503();
210     
211 }
212
Popular Tags