01: /**
02: *
03: * Copyright 2006 The Apache Software Foundation
04: *
05: * Licensed under the Apache License, Version 2.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * 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 Tomcat web connector (http, https)
25: *
26: * @version $Rev: 581936 $ $Date: 2007-10-04 07:46:56 -0700 (Thu, 04 Oct 2007) $
27: */
28: public interface TomcatWebConnectorStats extends WebConnectorStats {
29:
30: /**
31: * Gets the Time statistics (count, total, Max, Min) for requests (includes
32: * figures across all requests since statistics gathering started)
33: */
34: TimeStatistic getRequestTime();
35:
36: /**
37: * Gets the number of errors that have been returned since statistics
38: * gathering started.
39: */
40: CountStatistic getErrorCount();
41:
42: /**
43: * Gets the number of requests being processed concurrently (as well as the
44: * min and max since statistics gathering started).
45: */
46: RangeStatistic getActiveRequestCount();
47:
48: /**
49: * Gets the number of threads currently available (as well as min and max
50: * since statistics gathering started.
51: * current - The number of threads currently in the pool (currentThreadCount)
52: * - the number of threads currently serving requests (currentThreadBusy)
53: * HiMark - The maximum number of unused threads that will be allowed to exist
54: * until the thread pool starts stopping the unnecessary threads(maxSpareThread)
55: * UpperBound - The max number of threads created by the connector (maxThreads)
56: * LowerBound - The number of threads created by the connector in the begining (minSpareThread)
57: */
58: // This could be a container statistics
59: RangeStatistic getSpareThreadCount();
60: }
|