|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.management.CacheConfiguration
public class CacheConfiguration
A JMX MBean implementation and decorator to net.sf.ehcache.CacheConfiguration
Constructor Summary | |
---|---|
CacheConfiguration(Ehcache cache)
Constructs using a backing CacheConfiguration |
Method Summary | |
---|---|
long |
getDiskExpiryThreadIntervalSeconds()
Accessor |
int |
getDiskSpoolBufferSizeMB()
Accessor |
long |
getMaxBytesLocalDisk()
Maximum number of bytes that may be stored in the local disk store. |
long |
getMaxBytesLocalHeap()
Maximum number of bytes that may be stored in local heap memory store. |
long |
getMaxBytesLocalOffHeap()
Maximum number of bytes that may be stored in local off-heap memory store. |
int |
getMaxElementsInMemory()
Deprecated. use getMaxEntriesLocalHeap() |
int |
getMaxElementsOnDisk()
Deprecated. use getMaxEntriesLocalDisk() |
long |
getMaxEntriesLocalDisk()
Maximum number of entries that may be stored in the local disk store. |
long |
getMaxEntriesLocalHeap()
Maximum number of entries that may be stored in local heap memory store. |
long |
getMaxMemoryOffHeapInBytes()
Deprecated. use getMaxBytesLocalOffHeap() |
String |
getMemoryStoreEvictionPolicy()
Accessor |
String |
getName()
Accessor |
String |
getTerracottaConsistency()
Accessor |
long |
getTimeToIdleSeconds()
Accessor |
long |
getTimeToLiveSeconds()
Accessor |
boolean |
isDiskPersistent()
Accessor |
boolean |
isEternal()
Accessor |
boolean |
isLoggingEnabled()
Accessor |
boolean |
isOverflowToDisk()
Accessor |
boolean |
isOverflowToOffHeap()
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)
Deprecated. use setMaxEntriesLocalHeap(long) |
void |
setMaxElementsOnDisk(int maxElements)
Deprecated. use setMaxEntriesLocalDisk(long) |
void |
setMaxEntriesLocalDisk(long maxEntries)
Maximum number of entries that may be stores in the local disk store. |
void |
setMaxEntriesLocalHeap(long maxEntries)
Maximum number of entries that may be stored in local heap memory store. |
void |
setMemoryStoreEvictionPolicy(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 |
---|
public CacheConfiguration(Ehcache cache)
cache
- Method Detail |
---|
public String getName()
getName
in interface CacheConfigurationMBean
public boolean isLoggingEnabled()
isLoggingEnabled
in interface CacheConfigurationMBean
public void setLoggingEnabled(boolean enable)
setLoggingEnabled
in interface CacheConfigurationMBean
enable
- @Deprecated public int getMaxElementsInMemory()
getMaxEntriesLocalHeap()
getMaxElementsInMemory
in interface CacheConfigurationMBean
@Deprecated public void setMaxElementsInMemory(int maxElements)
setMaxEntriesLocalHeap(long)
setMaxElementsInMemory
in interface CacheConfigurationMBean
maxElements
- @Deprecated public int getMaxElementsOnDisk()
getMaxEntriesLocalDisk()
getMaxElementsOnDisk
in interface CacheConfigurationMBean
@Deprecated public void setMaxElementsOnDisk(int maxElements)
setMaxEntriesLocalDisk(long)
setMaxElementsOnDisk
in interface CacheConfigurationMBean
maxElements
- public String getMemoryStoreEvictionPolicy()
getMemoryStoreEvictionPolicy
in interface CacheConfigurationMBean
public void setMemoryStoreEvictionPolicy(String memoryStoreEvictionPolicy)
setMemoryStoreEvictionPolicy
in interface CacheConfigurationMBean
memoryStoreEvictionPolicy
- public boolean isEternal()
isEternal
in interface CacheConfigurationMBean
public void setEternal(boolean eternal)
setEternal
in interface CacheConfigurationMBean
eternal
- public long getTimeToIdleSeconds()
getTimeToIdleSeconds
in interface CacheConfigurationMBean
public void setTimeToIdleSeconds(long tti)
setTimeToIdleSeconds
in interface CacheConfigurationMBean
tti
- public long getTimeToLiveSeconds()
getTimeToLiveSeconds
in interface CacheConfigurationMBean
public void setTimeToLiveSeconds(long ttl)
setTimeToLiveSeconds
in interface CacheConfigurationMBean
ttl
- public boolean isOverflowToDisk()
isOverflowToDisk
in interface CacheConfigurationMBean
public void setOverflowToDisk(boolean overflowToDisk)
setOverflowToDisk
in interface CacheConfigurationMBean
overflowToDisk
- public boolean isDiskPersistent()
isDiskPersistent
in interface CacheConfigurationMBean
public void setDiskPersistent(boolean diskPersistent)
setDiskPersistent
in interface CacheConfigurationMBean
diskPersistent
- public int getDiskSpoolBufferSizeMB()
getDiskSpoolBufferSizeMB
in interface CacheConfigurationMBean
public void setDiskSpoolBufferSizeMB(int diskSpoolBufferSizeMB)
setDiskSpoolBufferSizeMB
in interface CacheConfigurationMBean
diskSpoolBufferSizeMB
- public long getDiskExpiryThreadIntervalSeconds()
getDiskExpiryThreadIntervalSeconds
in interface CacheConfigurationMBean
public final void setDiskExpiryThreadIntervalSeconds(long diskExpiryThreadIntervalSeconds)
setDiskExpiryThreadIntervalSeconds
in interface CacheConfigurationMBean
diskExpiryThreadIntervalSeconds
- public boolean isTerracottaClustered()
isTerracottaClustered
in interface CacheConfigurationMBean
public String getTerracottaConsistency()
getTerracottaConsistency
in interface CacheConfigurationMBean
public boolean isOverflowToOffHeap()
isOverflowToOffHeap
in interface CacheConfigurationMBean
@Deprecated public long getMaxMemoryOffHeapInBytes()
getMaxBytesLocalOffHeap()
getMaxMemoryOffHeapInBytes
in interface CacheConfigurationMBean
public long getMaxEntriesLocalDisk()
getMaxEntriesLocalDisk
in interface CacheConfigurationMBean
public long getMaxEntriesLocalHeap()
getMaxEntriesLocalHeap
in interface CacheConfigurationMBean
public void setMaxEntriesLocalDisk(long maxEntries)
setMaxEntriesLocalDisk
in interface CacheConfigurationMBean
public void setMaxEntriesLocalHeap(long maxEntries)
setMaxEntriesLocalHeap
in interface CacheConfigurationMBean
public long getMaxBytesLocalDisk()
getMaxBytesLocalDisk
in interface CacheConfigurationMBean
public long getMaxBytesLocalHeap()
getMaxBytesLocalHeap
in interface CacheConfigurationMBean
public long getMaxBytesLocalOffHeap()
getMaxBytesLocalOffHeap
in interface CacheConfigurationMBean
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |