KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

41 import javax.management.j2ee.statistics.Stats JavaDoc;
42 import javax.management.j2ee.statistics.CountStatistic JavaDoc;
43
44 /**
45  * The DNS Cache caches IP addresses and DNS names. The server’s DNS cache is
46  * disabled by default. A single cache entry represents a single IP address or DNS
47  * name lookup
48  */

49 public interface PWCDnsStats extends Stats JavaDoc {
50     
51     /**
52      * Indicates whether the DNS cache is enabled or disable. Default is disabled.
53      * @return DNS cache enabled?
54      */

55     public CountStatistic JavaDoc getFlagCacheEnabled();
56     
57     /**
58      * The number of current cache entries
59      * @return current cache entries
60      */

61     public CountStatistic JavaDoc getCountCacheEntries();
62     
63     /**
64      * The maximum number of cache entries
65      * @return max cache entries
66      */

67     public CountStatistic JavaDoc getMaxCacheEntries();
68     
69     /**
70      * The number of cache hits
71      * @return cache hits
72      */

73     public CountStatistic JavaDoc getCountCacheHits();
74     
75     /**
76      * The number of cache misses
77      * @return cache misses
78      */

79     public CountStatistic JavaDoc getCountCacheMisses();
80     
81     /**
82      * Returns whether asynchronic lookup is enabled. 1 if true, 0 otherwise
83      * @return enabled
84      */

85     public CountStatistic JavaDoc getFlagAsyncEnabled();
86     
87     /**
88      * The total number of asynchronic name lookups
89      * @return asyn name lookups
90      */

91     public CountStatistic JavaDoc getCountAsyncNameLookups();
92     
93     /**
94      * The total number of asynchronic address lookups
95      * @return asyn address lookups
96      */

97     public CountStatistic JavaDoc getCountAsyncAddrLookups();
98     
99     /**
100      * The number of asynchronic lookups in progress
101      * @return async lookups in progress
102      */

103     public CountStatistic JavaDoc getCountAsyncLookupsInProgress();
104     
105 }
106
Popular Tags