ehcache

net.sf.ehcache.management
Class CacheConfiguration

java.lang.Object
  extended by net.sf.ehcache.management.CacheConfiguration
All Implemented Interfaces:
java.io.Serializable, CacheConfigurationMBean

public class CacheConfiguration
extends java.lang.Object
implements CacheConfigurationMBean, java.io.Serializable

A JMX MBean implementation and decorator to net.sf.ehcache.CacheConfiguration

Since:
1.3
Version:
$Id: CacheConfiguration.java 1718 2010-01-23 00:20:28Z gkeim $
Author:
Greg Luck
See Also:
Serialized Form

Constructor Summary
CacheConfiguration(Ehcache cache)
          Constructs using a backing CacheConfiguration
 
Method Summary
 long getDiskExpiryThreadIntervalSeconds()
          Accessor
 int getDiskSpoolBufferSizeMB()
          Accessor
 int getMaxElementsInMemory()
          Accessor
 int getMaxElementsOnDisk()
          Accessor
 java.lang.String getMemoryStoreEvictionPolicy()
          Accessor
 java.lang.String getName()
          Accessor
 long getTimeToIdleSeconds()
          Accessor
 long getTimeToLiveSeconds()
          Accessor
 boolean isDiskPersistent()
          Accessor
 boolean isEternal()
          Accessor
 boolean isLoggingEnabled()
          Accessor
 boolean isOverflowToDisk()
          Accessor
 boolean isTerracottaClustered()
          Accessor
 void setDiskExpiryThreadIntervalSeconds(long diskExpiryThreadIntervalSeconds)
          setDiskExpiryThreadIntervalSeconds
 void setDiskPersistent(boolean diskPersistent)
          setDiskPersistent
 void setDiskSpoolBufferSizeMB(int diskSpoolBufferSizeMB)
          setDiskSpoolBufferSizeMB
 void setEternal(boolean eternal)
          setEternal
 void setLoggingEnabled(boolean enable)
          setLoggingEnabled
 void setMaxElementsInMemory(int maxElements)
          setMaxElementsInMemory
 void setMaxElementsOnDisk(int maxElements)
          setMaxElementsOnDisk
 void setMemoryStoreEvictionPolicy(java.lang.String memoryStoreEvictionPolicy)
          setMemoryStoreEvictionPolicy
 void setOverflowToDisk(boolean overflowToDisk)
          setOverflowToDisk
 void setTimeToIdleSeconds(long tti)
          setTimeToIdleSeconds
 void setTimeToLiveSeconds(long ttl)
          setTimeToLiveSeconds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheConfiguration

public CacheConfiguration(Ehcache cache)
Constructs using a backing CacheConfiguration

Parameters:
cache -
Method Detail

getName

public java.lang.String getName()
Accessor

Specified by:
getName in interface CacheConfigurationMBean

isLoggingEnabled

public boolean isLoggingEnabled()
Accessor

Specified by:
isLoggingEnabled in interface CacheConfigurationMBean

setLoggingEnabled

public void setLoggingEnabled(boolean enable)
setLoggingEnabled

Specified by:
setLoggingEnabled in interface CacheConfigurationMBean
Parameters:
enable -

getMaxElementsInMemory

public int getMaxElementsInMemory()
Accessor

Specified by:
getMaxElementsInMemory in interface CacheConfigurationMBean

setMaxElementsInMemory

public void setMaxElementsInMemory(int maxElements)
setMaxElementsInMemory

Specified by:
setMaxElementsInMemory in interface CacheConfigurationMBean
Parameters:
maxElements -

getMaxElementsOnDisk

public int getMaxElementsOnDisk()
Accessor

Specified by:
getMaxElementsOnDisk in interface CacheConfigurationMBean

setMaxElementsOnDisk

public void setMaxElementsOnDisk(int maxElements)
setMaxElementsOnDisk

Specified by:
setMaxElementsOnDisk in interface CacheConfigurationMBean
Parameters:
maxElements -

getMemoryStoreEvictionPolicy

public java.lang.String getMemoryStoreEvictionPolicy()
Accessor

Specified by:
getMemoryStoreEvictionPolicy in interface CacheConfigurationMBean
Returns:
a String representation of the policy

setMemoryStoreEvictionPolicy

public void setMemoryStoreEvictionPolicy(java.lang.String memoryStoreEvictionPolicy)
setMemoryStoreEvictionPolicy

Specified by:
setMemoryStoreEvictionPolicy in interface CacheConfigurationMBean
Parameters:
memoryStoreEvictionPolicy -

isEternal

public boolean isEternal()
Accessor

Specified by:
isEternal in interface CacheConfigurationMBean

setEternal

public void setEternal(boolean eternal)
setEternal

Specified by:
setEternal in interface CacheConfigurationMBean
Parameters:
eternal -

getTimeToIdleSeconds

public long getTimeToIdleSeconds()
Accessor

Specified by:
getTimeToIdleSeconds in interface CacheConfigurationMBean

setTimeToIdleSeconds

public void setTimeToIdleSeconds(long tti)
setTimeToIdleSeconds

Specified by:
setTimeToIdleSeconds in interface CacheConfigurationMBean
Parameters:
tti -

getTimeToLiveSeconds

public long getTimeToLiveSeconds()
Accessor

Specified by:
getTimeToLiveSeconds in interface CacheConfigurationMBean

setTimeToLiveSeconds

public void setTimeToLiveSeconds(long ttl)
setTimeToLiveSeconds

Specified by:
setTimeToLiveSeconds in interface CacheConfigurationMBean
Parameters:
ttl -

isOverflowToDisk

public boolean isOverflowToDisk()
Accessor

Specified by:
isOverflowToDisk in interface CacheConfigurationMBean

setOverflowToDisk

public void setOverflowToDisk(boolean overflowToDisk)
setOverflowToDisk

Specified by:
setOverflowToDisk in interface CacheConfigurationMBean
Parameters:
overflowToDisk -

isDiskPersistent

public boolean isDiskPersistent()
Accessor

Specified by:
isDiskPersistent in interface CacheConfigurationMBean

setDiskPersistent

public void setDiskPersistent(boolean diskPersistent)
setDiskPersistent

Specified by:
setDiskPersistent in interface CacheConfigurationMBean
Parameters:
diskPersistent -

getDiskSpoolBufferSizeMB

public int getDiskSpoolBufferSizeMB()
Accessor

Specified by:
getDiskSpoolBufferSizeMB in interface CacheConfigurationMBean

setDiskSpoolBufferSizeMB

public void setDiskSpoolBufferSizeMB(int diskSpoolBufferSizeMB)
setDiskSpoolBufferSizeMB

Specified by:
setDiskSpoolBufferSizeMB in interface CacheConfigurationMBean
Parameters:
diskSpoolBufferSizeMB -

getDiskExpiryThreadIntervalSeconds

public long getDiskExpiryThreadIntervalSeconds()
Accessor

Specified by:
getDiskExpiryThreadIntervalSeconds in interface CacheConfigurationMBean

setDiskExpiryThreadIntervalSeconds

public final void setDiskExpiryThreadIntervalSeconds(long diskExpiryThreadIntervalSeconds)
setDiskExpiryThreadIntervalSeconds

Specified by:
setDiskExpiryThreadIntervalSeconds in interface CacheConfigurationMBean
Parameters:
diskExpiryThreadIntervalSeconds -

isTerracottaClustered

public boolean isTerracottaClustered()
Accessor

Specified by:
isTerracottaClustered in interface CacheConfigurationMBean

ehcache

true