KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > appserv > util > cache > Constants


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 /**
26  * Copyright 2000-2001 by iPlanet/Sun Microsystems, Inc.,
27  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
28  * All rights reserved.
29  */

30  
31 package com.sun.appserv.util.cache;
32
33 /**
34  * define all cache related constants
35  */

36 public class Constants {
37     public final static String JavaDoc STAT_DEFAULT = "default";
38
39     // default maximum number of entries in the cache
40
public final static int DEFAULT_MAX_ENTRIES = 8192;
41
42     // default maximum size in bytes of the cache
43
public final static long DEFAULT_MAX_CACHE_SIZE = Long.MAX_VALUE;
44
45     // maxSize specified in bytes, KB or MB
46
public final static int KB = 1024;
47     public final static int MB = (KB * KB);
48
49     public final static String JavaDoc STAT_BASECACHE_MAX_ENTRIES="cache.BaseCache.stat_maxEntries";
50     public final static String JavaDoc STAT_BASECACHE_THRESHOLD="cache.BaseCache.stat_threshold";
51     public final static String JavaDoc STAT_BASECACHE_TABLE_SIZE="cache.BaseCache.stat_tableSize";
52     public final static String JavaDoc STAT_BASECACHE_ENTRY_COUNT="cache.BaseCache.stat_entryCount";
53     public final static String JavaDoc STAT_BASECACHE_HIT_COUNT="cache.BaseCache.stat_hitCount";
54     public final static String JavaDoc STAT_BASECACHE_MISS_COUNT="cache.BaseCache.stat_missCount";
55     public final static String JavaDoc STAT_BASECACHE_REMOVAL_COUNT="cache.BaseCache.stat_removalCount";
56     public final static String JavaDoc STAT_BASECACHE_REFRESH_COUNT="cache.BaseCache.stat_refreshCount";
57     public final static String JavaDoc STAT_BASECACHE_OVERFLOW_COUNT="cache.BaseCache.stat_overflowCount";
58     public final static String JavaDoc STAT_BASECACHE_ADD_COUNT="cache.BaseCache.stat_addCount";
59
60     public final static String JavaDoc STAT_LRUCACHE_LIST_LENGTH="cache.LruCache.stat_lruListLength";
61     public final static String JavaDoc STAT_LRUCACHE_TRIM_COUNT="cache.LruCache.stat_trimCount";
62
63     public final static String JavaDoc STAT_MULTILRUCACHE_SEGMENT_SIZE="cache.MultiLruCache.stat_segmentSize";
64     public final static String JavaDoc STAT_MULTILRUCACHE_SEGMENT_LIST_LENGTH="cache.MultiLruCache.stat_segmentListLength";
65     public final static String JavaDoc STAT_MULTILRUCACHE_TRIM_COUNT="cache.MultiLruCache.stat_trimCount";
66
67     public final static String JavaDoc STAT_BOUNDEDMULTILRUCACHE_CURRENT_SIZE="cache.BoundedMultiLruCache.stat_currentSize";
68     public final static String JavaDoc STAT_BOUNDEDMULTILRUCACHE_MAX_SIZE="cache.BoundedMultiLruCache.stat_maxSize";
69 }
70
Popular Tags