KickJava   Java API By Example, From Geeks To Geeks.

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


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 package com.sun.appserv.management.monitor.statistics;
24
25 import javax.management.j2ee.statistics.Stats JavaDoc;
26 import javax.management.j2ee.statistics.CountStatistic JavaDoc;
27
28 /**
29     @see com.sun.appserv.management.monitor.FileCacheMonitor
30  */

31 public interface FileCacheStats extends Stats JavaDoc
32 {
33     /**
34      */

35     public CountStatistic JavaDoc getCountContentHits();
36     
37     /**
38         @return the number of current cache entries.
39                  A single cache entry represents a single URI
40      */

41     public CountStatistic JavaDoc getCountEntries();
42     
43     /**
44         @return the maximum entries in the <code>fileCache</code>
45      */

46     public CountStatistic JavaDoc getMaxEntries();
47     
48     /**
49         @return maximum number of current open cache entries
50      */

51     public CountStatistic JavaDoc getMaxOpenEntries();
52     
53     /**
54         @return number of current open cache entries
55      */

56     public CountStatistic JavaDoc getCountOpenEntries();
57     
58     
59     /**
60         @return number of hits on cached file info
61      */

62     public CountStatistic JavaDoc getCountInfoHits();
63     
64     /**
65         @return number of misses on cached file info
66      */

67     public CountStatistic JavaDoc getCountInfoMisses();
68     
69     /**
70         @return number of cache lookup misses
71      */

72     public CountStatistic JavaDoc getCountMisses();
73     
74     /**
75         @return Number of cache lookup hits
76      */

77     public CountStatistic JavaDoc getCountHits();
78     
79     /**
80      */

81     public CountStatistic JavaDoc getCountContentMisses();
82     
83     /**
84      */

85     public CountStatistic JavaDoc getSecondsMaxAge();
86     
87     /**
88         @return is the FileCache enabled.
89      */

90     public CountStatistic JavaDoc getFlagEnabled();
91     
92     /**
93      */

94     public CountStatistic JavaDoc getMaxMmapCacheSize();
95     
96     /**
97      */

98     public CountStatistic JavaDoc getSizeMmapCache();
99     
100     /**
101         @return the heap space used for cache
102      */

103     public CountStatistic JavaDoc getSizeHeapCache();
104     
105     /**
106         @return the maximum heap space used for cache
107      */

108     public CountStatistic JavaDoc getMaxHeapCacheSize();
109 }
110
Popular Tags