KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > appserv > management > monitor > statistics > WebModuleVirtualServerStats


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 package com.sun.appserv.management.monitor.statistics;
25
26 import javax.management.j2ee.statistics.Stats JavaDoc;
27 import javax.management.j2ee.statistics.CountStatistic JavaDoc;
28 import javax.management.j2ee.statistics.RangeStatistic JavaDoc;
29 import com.sun.appserv.management.j2ee.statistics.StringStatistic;
30
31 /**
32     <b>Enterprise Edition only; not supported in PE/Glassfish.</b>
33     @see com.sun.appserv.management.monitor.WebModuleVirtualServerMonitor
34  */

35 public interface WebModuleVirtualServerStats extends Stats JavaDoc
36 {
37     public RangeStatistic JavaDoc getSessionSize();
38     public RangeStatistic JavaDoc getContainerLatency();
39     public RangeStatistic JavaDoc getSessionPersistTime();
40     public CountStatistic JavaDoc getCachedSessionsCurrent();
41     
42     /**
43      * Gets the total number of rejected sessions for the web
44      * module associated with this WebModuleStats.
45      *
46      * <p>This is the number of sessions that were not created because the
47      * maximum allowed number of sessions were active.
48      *.
49      * @return Total number of rejected sessions
50      */

51     public CountStatistic JavaDoc getRejectedSessionsTotal();
52     
53     /**
54      * Gets the total number of expired sessions for the web
55      * module associated with this WebModuleStats.
56      *.
57      * @return Total number of expired sessions
58      */

59     public CountStatistic JavaDoc getExpiredSessionsTotal();
60     
61     /**
62      * Gets the maximum number of concurrently active sessions for the web
63      * module associated with this WebModuleStats.
64      *
65      * @return Maximum number of concurrently active sessions
66      */

67     public CountStatistic JavaDoc getActiveSessionsHigh();
68     
69     /**
70      * Gets the number of currently active sessions for the web
71      * module associated with this WebModuleStats.
72      *.
73      * @return Number of currently active sessions
74      */

75     public CountStatistic JavaDoc getActiveSessionsCurrent();
76     
77     /**
78      * Gets the total number of sessions that have been created for the web
79      * module associated with this WebModuleStats.
80      *.
81      * @return Total number of sessions created
82      */

83     public CountStatistic JavaDoc getSessionsTotal();
84     
85     /**
86      * Gets the number of JSPs that have been loaded in the web module
87      * associated with this WebModuleStats.
88      *.
89      * @return Number of JSPs that have been loaded
90      */

91     public CountStatistic JavaDoc getJSPCount();
92     
93
94     /**
95      * Gets the number of JSPs that have been reloaded in the web module
96      * associated with this WebModuleStats
97      *.
98      * @return Number of JSPs that have been reloaded
99      */

100     public CountStatistic JavaDoc getJSPReloadCount();
101     
102     /**
103      * Gets the number of errors that were triggered by JSP invocations.
104      *.
105      * @return Number of errors triggered by JSP invocations
106      */

107     public CountStatistic JavaDoc getJSPErrorCount();
108     
109     /**
110      */

111     public CountStatistic JavaDoc getPassivatedSessionsCurrent();
112     
113     /**
114      * Gets the cumulative processing times of all servlets in the web module
115      * associated with this WebModuleStats.
116      *
117      * @return Cumulative processing times of all servlets in the web module
118      * associated with this WebModuleStats
119      */

120     public CountStatistic JavaDoc getServletProcessingTimes();
121     
122     /**
123      * Returns comma-separated list of all sessions currently active in the web
124      * module associated with this WebModuleStats.
125      *
126      * @return Comma-separated list of all sessions currently active in the
127      * web module associated with this WebModuleStats
128      */

129     public StringStatistic getSessions();
130 }
131
Popular Tags