KickJava   Java API By Example, From Geeks To Geeks.

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


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 /*
30  * PWCFileCacheStats.java
31  *
32  * Created on April 2, 2004, 10:40 AM
33  */

34
35 package com.sun.enterprise.admin.monitor.stats;
36
37 /**
38  *
39  * @author nsegura
40  */

41
42 import javax.management.j2ee.statistics.Stats JavaDoc;
43 import javax.management.j2ee.statistics.CountStatistic JavaDoc;
44
45 /** Provides statistical information on the httpservice file cache */
46 public interface PWCFileCacheStats extends Stats JavaDoc {
47     
48     /**
49      * Returns whether the file cache us enabled. 1 of enabled, 0 otherwise
50      * @return enabled
51      */

52     public CountStatistic JavaDoc getFlagEnabled();
53     
54     /**
55      * The maximum age of a valid cache entry
56      * @return cache entry max age
57      */

58     public CountStatistic JavaDoc getSecondsMaxAge();
59     
60     /**
61      * The number of current cache entries. A single cache entry represents a single URI
62      * @return current cache entries
63      */

64     public CountStatistic JavaDoc getCountEntries();
65     
66     /** The maximum number of cache entries
67      * @return max cache entries
68      */

69     public CountStatistic JavaDoc getMaxEntries();
70     
71     /**
72      * The number of current open cache entries
73      * @return open cache entries
74      */

75     public CountStatistic JavaDoc getCountOpenEntries();
76     
77     /**
78      * The Maximum number of open cache entries
79      * @return Max open cache entries
80      */

81     public CountStatistic JavaDoc getMaxOpenEntries();
82     
83     /**
84      * The Heap space used for cache
85      * @return heap size
86      */

87     public CountStatistic JavaDoc getSizeHeapCache();
88     
89     /**
90      * The Maximum heap space used for cache
91      * @return Max heap size
92      */

93     public CountStatistic JavaDoc getMaxHeapCacheSize();
94     
95     /**
96      * The size of Mapped memory used for caching
97      * @return Mapped memory size
98      */

99     public CountStatistic JavaDoc getSizeMmapCache();
100     
101     /**
102      * The Maximum Memory Map size to be used for caching
103      * @return Max Memory Map size
104      */

105     public CountStatistic JavaDoc getMaxMmapCacheSize();
106     
107     /**
108      * The Number of cache lookup hits
109      * @return cache hits
110      */

111     public CountStatistic JavaDoc getCountHits();
112     
113     /**
114      * The Number of cache lookup misses
115      * @return cache misses
116      */

117     public CountStatistic JavaDoc getCountMisses();
118     
119     /**
120      * The Number of hits on cached file info
121      * @return hits on cached file info
122      */

123     public CountStatistic JavaDoc getCountInfoHits();
124     
125     /**
126      * The Number of misses on cached file info
127      * @return misses on cache file info
128      */

129     public CountStatistic JavaDoc getCountInfoMisses();
130     
131     /**
132      * The Number of hits on cached file content
133      * @return hits on cache file content
134      */

135     public CountStatistic JavaDoc getCountContentHits();
136     
137     /**
138      * The Number of misses on cached file content
139      * @return missed on cached file content
140      */

141     public CountStatistic JavaDoc getCountContentMisses();
142     
143 }
144
Popular Tags