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.CountStatistic;
19: import javax.management.j2ee.statistics.Stats;
20: import javax.management.j2ee.statistics.TimeStatistic;
21:
22: /**
23: * @version $Rev: 503417 $ $Date: 2007-02-04 06:48:10 -0800 (Sun, 04 Feb 2007) $
24: *
25: */
26: public interface WebModuleStats extends Stats {
27: // -----------------------
28: // static data
29: // -----------------------
30:
31: /**
32: * @return The cumulative processing times of requests by all servlets in
33: * this Context
34: */
35: public CountStatistic getProcessingTime();
36:
37: /**
38: * @return The time this context was started.
39: */
40: // public CountStatistic getStartTime();
41: /**
42: * @return The time (in milliseconds) it took to start this context.
43: */
44: public CountStatistic getStartupTime();
45:
46: /**
47: * Scan the TLD contents of all tag library descriptor files (including
48: * those inside the jars that are 'accesible' to this webapp) and register
49: * any application event listeners found there.
50: *
51: * @return
52: */
53: public CountStatistic getTldScanTime();
54:
55: // -----------------------
56: // Transient data
57: // -----------------------
58:
59: /**
60: * Gets the time (in seconds) that an expired session had been alive.
61: * (count, max, total)
62: *
63: * @return Time (count, max, total) that an expired session had been alive.
64: */
65: public TimeStatistic getSessionAliveTime();
66:
67: /**
68: * Returns the total number of sessions created by this manager
69: *
70: * @return Total number of sessions created by this manager
71: */
72: public CountStatistic getSessionCount();
73:
74: /**
75: * Gets the number of currently active sessions.
76: *
77: * @return Number of currently active sessions
78: */
79: public CountStatistic getActiveSessionCount();
80:
81: /**
82: * Gets the number of sessions that have expired.
83: *
84: * @return Number of sessions that have expired
85: */
86: public CountStatistic getExpiredSessionCount();
87:
88: /**
89: * Gets the number of sessions that were not created because the maximum
90: * number of active sessions was reached.
91: *
92: * @return Number of rejected sessions
93: */
94: public CountStatistic getRejectedSessionCount();
95:
96: }
|