01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */package org.apache.geronimo.management.geronimo.stats;
17:
18: import javax.management.j2ee.statistics.Stats;
19: import javax.management.j2ee.statistics.RangeStatistic;
20: import javax.management.j2ee.statistics.TimeStatistic;
21: import javax.management.j2ee.statistics.CountStatistic;
22:
23: /**
24: * Statistics exposed by a web container (for the container as a whole, not
25: * a particular servlet/JSP/URL).
26: *
27: * todo: confirm the definitions of the Jetty stats included here; verify these are valid for Tomcat as well
28: *
29: * @version $Revision: 1.0$
30: */
31: public interface WebContainerStats extends Stats {
32:
33: /**
34: * Gets the number of requests being processed concurrently (as well
35: * as the min and max since statistics gathering started).
36: */
37: RangeStatistic getActiveRequestCount();
38:
39: /**
40: * Gets the the number of requests that have been processed since
41: * statistics gathering started.
42: * Gets the length of time taken to process a request (includes
43: * figures across all requests since statistics gathering started)
44: */
45: TimeStatistic getRequestDuration();
46:
47: /**
48: * Gets the count of 1xx responses
49: */
50: CountStatistic getResponses1xx();
51:
52: /**
53: * Gets the count of 2xx responses
54: */
55: CountStatistic getResponses2xx();
56:
57: /**
58: * Gets the count of 3xx responses
59: */
60: CountStatistic getResponses3xx();
61:
62: /**
63: * Gets the count of 4xx responses
64: */
65: CountStatistic getResponses4xx();
66:
67: /**
68: * Gets the count of 5xx responses
69: */
70: CountStatistic getResponses5xx();
71:
72: /**
73: * Gets the time duration that stats have been active.
74: */
75: CountStatistic getStatsOnMs();
76:
77: }
|