net.sf.swarmcache
Class CacheConfigurationManager

java.lang.Object
  |
  +--net.sf.swarmcache.CacheConfigurationManager

public class CacheConfigurationManager
extends java.lang.Object

CacheConfigurationManager holds a static CacheConfiguration for use throughout a system. It tries to load configuration properties from a file named 'swarmcache.properties' in the classpath, and uses the defaults if that file does not exist.

Author:
Jason Carreira

Field Summary
static java.lang.String SWARMCACHE_CACHE_TYPE
           
static java.lang.String SWARMCACHE_CHANNEL_PROPS
           
static java.lang.String SWARMCACHE_LRU_SIZE
           
static java.lang.String SWARMCACHE_MULTICAST_IP
           
static java.lang.String SWARMCACHE_PROP_FILE_NAME
           
 
Method Summary
static CacheConfiguration getConfig()
           
static CacheConfiguration getConfig(java.util.Properties props)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SWARMCACHE_PROP_FILE_NAME

public static final java.lang.String SWARMCACHE_PROP_FILE_NAME
See Also:
Constant Field Values

SWARMCACHE_CHANNEL_PROPS

public static final java.lang.String SWARMCACHE_CHANNEL_PROPS
See Also:
Constant Field Values

SWARMCACHE_MULTICAST_IP

public static final java.lang.String SWARMCACHE_MULTICAST_IP
See Also:
Constant Field Values

SWARMCACHE_CACHE_TYPE

public static final java.lang.String SWARMCACHE_CACHE_TYPE
See Also:
Constant Field Values

SWARMCACHE_LRU_SIZE

public static final java.lang.String SWARMCACHE_LRU_SIZE
See Also:
Constant Field Values
Method Detail

getConfig

public static CacheConfiguration getConfig()

getConfig

public static CacheConfiguration getConfig(java.util.Properties props)