1 23 24 25 30 31 package com.sun.appserv.util.cache; 32 33 36 public class Constants { 37 public final static String STAT_DEFAULT = "default"; 38 39 public final static int DEFAULT_MAX_ENTRIES = 8192; 41 42 public final static long DEFAULT_MAX_CACHE_SIZE = Long.MAX_VALUE; 44 45 public final static int KB = 1024; 47 public final static int MB = (KB * KB); 48 49 public final static String STAT_BASECACHE_MAX_ENTRIES="cache.BaseCache.stat_maxEntries"; 50 public final static String STAT_BASECACHE_THRESHOLD="cache.BaseCache.stat_threshold"; 51 public final static String STAT_BASECACHE_TABLE_SIZE="cache.BaseCache.stat_tableSize"; 52 public final static String STAT_BASECACHE_ENTRY_COUNT="cache.BaseCache.stat_entryCount"; 53 public final static String STAT_BASECACHE_HIT_COUNT="cache.BaseCache.stat_hitCount"; 54 public final static String STAT_BASECACHE_MISS_COUNT="cache.BaseCache.stat_missCount"; 55 public final static String STAT_BASECACHE_REMOVAL_COUNT="cache.BaseCache.stat_removalCount"; 56 public final static String STAT_BASECACHE_REFRESH_COUNT="cache.BaseCache.stat_refreshCount"; 57 public final static String STAT_BASECACHE_OVERFLOW_COUNT="cache.BaseCache.stat_overflowCount"; 58 public final static String STAT_BASECACHE_ADD_COUNT="cache.BaseCache.stat_addCount"; 59 60 public final static String STAT_LRUCACHE_LIST_LENGTH="cache.LruCache.stat_lruListLength"; 61 public final static String STAT_LRUCACHE_TRIM_COUNT="cache.LruCache.stat_trimCount"; 62 63 public final static String STAT_MULTILRUCACHE_SEGMENT_SIZE="cache.MultiLruCache.stat_segmentSize"; 64 public final static String STAT_MULTILRUCACHE_SEGMENT_LIST_LENGTH="cache.MultiLruCache.stat_segmentListLength"; 65 public final static String STAT_MULTILRUCACHE_TRIM_COUNT="cache.MultiLruCache.stat_trimCount"; 66 67 public final static String STAT_BOUNDEDMULTILRUCACHE_CURRENT_SIZE="cache.BoundedMultiLruCache.stat_currentSize"; 68 public final static String STAT_BOUNDEDMULTILRUCACHE_MAX_SIZE="cache.BoundedMultiLruCache.stat_maxSize"; 69 } 70 | Popular Tags |