KickJava   Java API By Example, From Geeks To Geeks.

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


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 package com.sun.enterprise.admin.monitor.stats;
30 import javax.management.j2ee.statistics.Stats JavaDoc;
31 import javax.management.j2ee.statistics.RangeStatistic JavaDoc;
32 import javax.management.j2ee.statistics.CountStatistic JavaDoc;
33 import com.sun.enterprise.admin.monitor.stats.AverageRangeStatistic;
34
35 /**
36  *
37  * @since 8.1
38  */

39 public interface StatefulSessionStoreStats extends Stats JavaDoc {
40     
41     /**
42      * Returns the number of passivated/checkpointed sessions in the
43      * store
44      * @return RangeStatistic
45      */

46     public RangeStatistic JavaDoc getCurrentSize();
47     
48     /**
49      * Returns the total number of sessions activated from the store
50      * @return CountStatistic
51      */

52     public CountStatistic JavaDoc getActivationCount();
53     
54     /**
55      * Returns the total number of sessions successfully activated
56      * from the store
57      * @return CountStatistic
58      */

59     public CountStatistic JavaDoc getActivationSuccessCount();
60     
61     /**
62      * Returns the total number of sessions that could not be activated
63      * from the store
64      * @return CountStatistic
65      */

66     public CountStatistic JavaDoc getActivationErrorCount();
67     
68     /**
69      * Returns the total number of sessions passivated using this store
70      * @return CountStatistic
71      */

72     public CountStatistic JavaDoc getPassivationCount();
73     
74     /**
75      * Returns the total number of sessions passivated successfully
76      * using this store
77      * @return CountStatistic
78      */

79     public CountStatistic JavaDoc getPassivationSuccessCount();
80     
81     /**
82      * Returns the total number of sessions that could not be passivated
83      * using the store
84      * @return CountStatistic
85      */

86     public CountStatistic JavaDoc getPassivationErrorCount();
87     
88     /**
89      * Returns the total number of expired sessions that were removed by
90      * the store
91      * @return CountStatistic
92      */

93     public CountStatistic JavaDoc getExpiredSessionCount();
94     
95     /**
96      * Returns the total number of bytes passivated by this store
97      * @return AverageRangeStatistic
98      */

99     public AverageRangeStatistic getPassivatedBeanSize();
100     
101     /**
102      * Returns the time spent on passivating beans to the store
103      * @return AverageRangeStatistic
104      */

105     public AverageRangeStatistic getPassivationTime();
106     
107     /**
108      * Returns the total number of bytes activated by this store
109      * @return AverageRangeStatistic
110      */

111     public AverageRangeStatistic getActivatedBeanSize();
112     
113     /**
114      * Returns the time spent on activating beans from the store
115      * @return AverageRangeStatistic
116      */

117     public AverageRangeStatistic getActivationTime();
118     
119 }
120
Popular Tags