Top Description Methods
net.sf.ehcache.management

public Interface CacheConfigurationMBean

Known Direct Implementers
net.sf.ehcache.management.CacheConfiguration

A JMX MBean interface for the configuration of a cache
Author
Greg Luck
Since
1.3
Version
$Id: CacheConfigurationMBean.java 5594 2012-05-07 16:04:31Z cdennis $

Method Summary

Modifier and TypeMethod and Description
public long
public int
public long
getMaxBytesLocalDisk()

Configured maximum number of bytes for the local disk store.

public long
getMaxBytesLocalHeap()

Configured maximum number of bytes for the local memory heap.

public long
getMaxBytesLocalOffHeap()

Configured maximum number of bytes for the local off-heap memory.

public int
public int
public long
getMaxEntriesLocalDisk()

Configured maximum number of entries for the local disk store.

public long
getMaxEntriesLocalHeap()

Configured maximum number of entries for the local memory heap.

public long
public String

Returns:

a String representation of the policy
getMemoryStoreEvictionPolicy
()

Accessor

public String
getName()

Accessor

public String
public long
public long
public boolean
isDiskPersistent()

Accessor

public boolean
isEternal()

Accessor

public boolean
isLoggingEnabled()

Accessor

public boolean
isOverflowToDisk()

Accessor

public boolean
public boolean
public void
setDiskExpiryThreadIntervalSeconds(long seconds)

setDiskExpiryThreadIntervalSeconds

public void
setDiskPersistent(boolean diskPersistent)

setDiskPersistent

public void
setDiskSpoolBufferSizeMB(int diskSpoolBufferSizeMB)

setDiskSpoolBufferSizeMB

public void
setEternal(boolean eternal)

setEternal

public void
setLoggingEnabled(boolean loggingEnabled)

setLoggingEnabled

public void
setMaxElementsInMemory(int maxElements)

setMaxElementsInMemory
public void
setMaxElementsOnDisk(int maxElements)

setMaxElementsOnDisk
public void
setMaxEntriesLocalDisk(long maxEntries)

Configured maximum number of entries for the local disk store.

public void
setMaxEntriesLocalHeap(long maxEntries)

Configured maximum number of entries for the local memory heap.

public void
setMemoryStoreEvictionPolicy(String policy)

setMemoryStoreEvictionPolicy

public void
setOverflowToDisk(boolean overflow)

setOverflowToDisk

public void
setTimeToIdleSeconds(long tti)

setTimeToIdleSeconds

public void
setTimeToLiveSeconds(long ttl)

setTimeToLiveSeconds

Method Detail

getDiskExpiryThreadIntervalSecondsback to summary
public long getDiskExpiryThreadIntervalSeconds()

Accessor

getDiskSpoolBufferSizeMBback to summary
public int getDiskSpoolBufferSizeMB()

Accessor

getMaxBytesLocalDiskback to summary
public long getMaxBytesLocalDisk()

Configured maximum number of bytes for the local disk store.

getMaxBytesLocalHeapback to summary
public long getMaxBytesLocalHeap()

Configured maximum number of bytes for the local memory heap.

getMaxBytesLocalOffHeapback to summary
public long getMaxBytesLocalOffHeap()

Configured maximum number of bytes for the local off-heap memory.

getMaxElementsInMemoryback to summary
public int getMaxElementsInMemory()

Deprecated

use getMaxEntriesLocalHeap()

Accessor

Annotations
@Deprecated
getMaxElementsOnDiskback to summary
public int getMaxElementsOnDisk()

Deprecated

use getMaxEntriesLocalDisk()

Accessor

Annotations
@Deprecated
getMaxEntriesLocalDiskback to summary
public long getMaxEntriesLocalDisk()

Configured maximum number of entries for the local disk store.

getMaxEntriesLocalHeapback to summary
public long getMaxEntriesLocalHeap()

Configured maximum number of entries for the local memory heap.

getMaxMemoryOffHeapInBytesback to summary
public long getMaxMemoryOffHeapInBytes()

Accessor

Annotations
@Deprecated
getMemoryStoreEvictionPolicyback to summary
public String getMemoryStoreEvictionPolicy()

Accessor

Returns:String

a String representation of the policy

getNameback to summary
public String getName()

Accessor

getTerracottaConsistencyback to summary
public String getTerracottaConsistency()

Accessor

getTimeToIdleSecondsback to summary
public long getTimeToIdleSeconds()

Accessor

getTimeToLiveSecondsback to summary
public long getTimeToLiveSeconds()

Accessor

isDiskPersistentback to summary
public boolean isDiskPersistent()

Accessor

isEternalback to summary
public boolean isEternal()

Accessor

isLoggingEnabledback to summary
public boolean isLoggingEnabled()

Accessor

isOverflowToDiskback to summary
public boolean isOverflowToDisk()

Accessor

isOverflowToOffHeapback to summary
public boolean isOverflowToOffHeap()

Accessor

isTerracottaClusteredback to summary
public boolean isTerracottaClustered()

Accessor

setDiskExpiryThreadIntervalSecondsback to summary
public void setDiskExpiryThreadIntervalSeconds(long seconds)

setDiskExpiryThreadIntervalSeconds

setDiskPersistentback to summary
public void setDiskPersistent(boolean diskPersistent)

setDiskPersistent

setDiskSpoolBufferSizeMBback to summary
public void setDiskSpoolBufferSizeMB(int diskSpoolBufferSizeMB)

setDiskSpoolBufferSizeMB

setEternalback to summary
public void setEternal(boolean eternal)

setEternal

setLoggingEnabledback to summary
public void setLoggingEnabled(boolean loggingEnabled)

setLoggingEnabled

setMaxElementsInMemoryback to summary
public void setMaxElementsInMemory(int maxElements)

setMaxElementsInMemory

Annotations
@Deprecated
setMaxElementsOnDiskback to summary
public void setMaxElementsOnDisk(int maxElements)

setMaxElementsOnDisk

Annotations
@Deprecated
setMaxEntriesLocalDiskback to summary
public void setMaxEntriesLocalDisk(long maxEntries)

Configured maximum number of entries for the local disk store.

setMaxEntriesLocalHeapback to summary
public void setMaxEntriesLocalHeap(long maxEntries)

Configured maximum number of entries for the local memory heap.

setMemoryStoreEvictionPolicyback to summary
public void setMemoryStoreEvictionPolicy(String policy)

setMemoryStoreEvictionPolicy

setOverflowToDiskback to summary
public void setOverflowToDisk(boolean overflow)

setOverflowToDisk

setTimeToIdleSecondsback to summary
public void setTimeToIdleSeconds(long tti)

setTimeToIdleSeconds

setTimeToLiveSecondsback to summary
public void setTimeToLiveSeconds(long ttl)

setTimeToLiveSeconds