|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.swarmcache.CacheConfiguration
A class that contains the configuration information to be fed in to a new CacheFactory
.
Field Summary | |
static java.lang.String |
DEFAULT_CHANNEL_PROPERTIES_POST
The second half of the default channel properties. |
static java.lang.String |
DEFAULT_CHANNEL_PROPERTIES_PRE
The first half of the default channel properties. |
static int |
DEFAULT_LRU_CACHE_SIZE
The default LRU cache size. |
static java.lang.String |
DEFAULT_MULTICAST_IP
The default multicast IP to be used by the cache manager. |
static java.lang.String |
TYPE_AUTO
The Automatic cache type. |
static java.lang.String |
TYPE_HYBRID
The Hybrid cache type. |
static java.lang.String |
TYPE_LRU
The LRU cache type. |
static java.lang.String |
TYPE_TIMER
The Timer cache type. |
Constructor Summary | |
CacheConfiguration()
|
Method Summary | |
java.lang.String |
getCacheType()
Gets the underlying cache type to use on each server. |
java.lang.String |
getChannelProperties()
Gets the JavaGroups channel properties. |
java.lang.String |
getLRUCacheSize()
Gets the capacity of the LRU cache. |
java.lang.String |
getMulticastIP()
Gets the multicast IP address for the JavaGroup. |
void |
setCacheType(java.lang.String v)
Sets the underlying cache type to use on each server. |
void |
setChannelProperties(java.lang.String v)
Sets the JavaGroup channel properties. |
void |
setLRUCacheSize(java.lang.String v)
Sets the capacity of the LRU cache. |
void |
setMulticastIP(java.lang.String v)
Sets the multicast IP address for the JavaGroup. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DEFAULT_CHANNEL_PROPERTIES_PRE
UDP(mcast_addr=*.*.*.*;mcast_port=45566;ip_ttl=32;mcast_send_buf_size=150000;mcast_recv_buf_size=80000):PING(timeout=2000;num_initial_members=3):MERGE2(min_interval=5000;max_interval=10000):FD_SOCK:VERIFY_SUSPECT(timeout=1500):pbcast.NAKACK(gc_lag=50;retransmit_timeout=300,600,1200,2400,4800):UNICAST(timeout=5000):pbcast.STABLE(desired_avg_gossip=20000):FRAG(frag_size=8096;down_thread=false;up_thread=false):pbcast.GMS(join_timeout=5000;join_retry_timeout=2000;shun=false;print_local_addr=true)Where
*.*.*.*
is the specified multicast IP, which defaults to 231.12.21.132
.
public static final java.lang.String DEFAULT_CHANNEL_PROPERTIES_POST
UDP(mcast_addr=*.*.*.*;mcast_port=45566;ip_ttl=32;mcast_send_buf_size=150000;mcast_recv_buf_size=80000):PING(timeout=2000;num_initial_members=3):MERGE2(min_interval=5000;max_interval=10000):FD_SOCK:VERIFY_SUSPECT(timeout=1500):pbcast.NAKACK(gc_lag=50;retransmit_timeout=300,600,1200,2400,4800):UNICAST(timeout=5000):pbcast.STABLE(desired_avg_gossip=20000):FRAG(frag_size=8096;down_thread=false;up_thread=false):pbcast.GMS(join_timeout=5000;join_retry_timeout=2000;shun=false;print_local_addr=true)Where
*.*.*.*
is the specified multicast IP, which defaults to 231.12.21.132
.
public static final java.lang.String DEFAULT_MULTICAST_IP
231.12.21.132
.
public static final int DEFAULT_LRU_CACHE_SIZE
10000
.
public static final java.lang.String TYPE_LRU
public static final java.lang.String TYPE_AUTO
public static final java.lang.String TYPE_TIMER
public static final java.lang.String TYPE_HYBRID
Constructor Detail |
public CacheConfiguration()
Method Detail |
public java.lang.String getChannelProperties()
public void setChannelProperties(java.lang.String v)
public java.lang.String getMulticastIP()
public void setMulticastIP(java.lang.String v)
public java.lang.String getCacheType()
public void setCacheType(java.lang.String v)
public java.lang.String getLRUCacheSize()
public void setLRUCacheSize(java.lang.String v)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |