ehcache

net.sf.ehcache.management
Interface CacheConfigurationMBean

All Known Implementing Classes:
CacheConfiguration

public interface CacheConfigurationMBean

A JMX MBean interface for the configuration of a cache

Since:
1.3
Version:
$Id: CacheConfigurationMBean.java 5594 2012-05-07 16:04:31Z cdennis $
Author:
Greg Luck

Method Summary
 long getDiskExpiryThreadIntervalSeconds()
          Accessor
 int getDiskSpoolBufferSizeMB()
          Accessor
 long getMaxBytesLocalDisk()
          Configured maximum number of bytes for the local disk store.
 long getMaxBytesLocalHeap()
          Configured maximum number of bytes for the local memory heap.
 long getMaxBytesLocalOffHeap()
          Configured maximum number of bytes for the local off-heap memory.
 int getMaxElementsInMemory()
          Deprecated. use getMaxEntriesLocalHeap()
 int getMaxElementsOnDisk()
          Deprecated. use getMaxEntriesLocalDisk()
 long getMaxEntriesLocalDisk()
          Configured maximum number of entries for the local disk store.
 long getMaxEntriesLocalHeap()
          Configured maximum number of entries for the local memory heap.
 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 seconds)
          setDiskExpiryThreadIntervalSeconds
 void setDiskPersistent(boolean diskPersistent)
          setDiskPersistent
 void setDiskSpoolBufferSizeMB(int diskSpoolBufferSizeMB)
          setDiskSpoolBufferSizeMB
 void setEternal(boolean eternal)
          setEternal
 void setLoggingEnabled(boolean loggingEnabled)
          setLoggingEnabled
 void setMaxElementsInMemory(int maxElements)
          Deprecated. use setMaxEntriesLocalHeap(long)
 void setMaxElementsOnDisk(int maxElements)
          Deprecated. use setMaxEntriesLocalDisk(long)
 void setMaxEntriesLocalDisk(long maxEntries)
          Configured maximum number of entries for the local disk store.
 void setMaxEntriesLocalHeap(long maxEntries)
          Configured maximum number of entries for the local memory heap.
 void setMemoryStoreEvictionPolicy(String policy)
          setMemoryStoreEvictionPolicy
 void setOverflowToDisk(boolean overflow)
          setOverflowToDisk
 void setTimeToIdleSeconds(long tti)
          setTimeToIdleSeconds
 void setTimeToLiveSeconds(long ttl)
          setTimeToLiveSeconds
 

Method Detail

getName

String getName()
Accessor


isLoggingEnabled

boolean isLoggingEnabled()
Accessor


setLoggingEnabled

void setLoggingEnabled(boolean loggingEnabled)
setLoggingEnabled

Parameters:
loggingEnabled -

getMaxElementsInMemory

@Deprecated
int getMaxElementsInMemory()
Deprecated. use getMaxEntriesLocalHeap()

Accessor


setMaxElementsInMemory

@Deprecated
void setMaxElementsInMemory(int maxElements)
Deprecated. use setMaxEntriesLocalHeap(long)

setMaxElementsInMemory

Parameters:
maxElements -

getMaxElementsOnDisk

@Deprecated
int getMaxElementsOnDisk()
Deprecated. use getMaxEntriesLocalDisk()

Accessor


setMaxElementsOnDisk

@Deprecated
void setMaxElementsOnDisk(int maxElements)
Deprecated. use setMaxEntriesLocalDisk(long)

setMaxElementsOnDisk

Parameters:
maxElements -

getMaxEntriesLocalDisk

long getMaxEntriesLocalDisk()
Configured maximum number of entries for the local disk store.


getMaxEntriesLocalHeap

long getMaxEntriesLocalHeap()
Configured maximum number of entries for the local memory heap.


setMaxEntriesLocalDisk

void setMaxEntriesLocalDisk(long maxEntries)
Configured maximum number of entries for the local disk store.


setMaxEntriesLocalHeap

void setMaxEntriesLocalHeap(long maxEntries)
Configured maximum number of entries for the local memory heap.


getMaxBytesLocalDisk

long getMaxBytesLocalDisk()
Configured maximum number of bytes for the local disk store.


getMaxBytesLocalHeap

long getMaxBytesLocalHeap()
Configured maximum number of bytes for the local memory heap.


getMaxBytesLocalOffHeap

long getMaxBytesLocalOffHeap()
Configured maximum number of bytes for the local off-heap memory.


getMemoryStoreEvictionPolicy

String getMemoryStoreEvictionPolicy()
Accessor

Returns:
a String representation of the policy

setMemoryStoreEvictionPolicy

void setMemoryStoreEvictionPolicy(String policy)
setMemoryStoreEvictionPolicy

Parameters:
policy -

isEternal

boolean isEternal()
Accessor


setEternal

void setEternal(boolean eternal)
setEternal

Parameters:
eternal -

getTimeToIdleSeconds

long getTimeToIdleSeconds()
Accessor


setTimeToIdleSeconds

void setTimeToIdleSeconds(long tti)
setTimeToIdleSeconds

Parameters:
tti -

getTimeToLiveSeconds

long getTimeToLiveSeconds()
Accessor


setTimeToLiveSeconds

void setTimeToLiveSeconds(long ttl)
setTimeToLiveSeconds

Parameters:
ttl -

isOverflowToDisk

boolean isOverflowToDisk()
Accessor


setOverflowToDisk

void setOverflowToDisk(boolean overflow)
setOverflowToDisk

Parameters:
overflow -

isDiskPersistent

boolean isDiskPersistent()
Accessor


setDiskPersistent

void setDiskPersistent(boolean diskPersistent)
setDiskPersistent

Parameters:
diskPersistent -

getDiskExpiryThreadIntervalSeconds

long getDiskExpiryThreadIntervalSeconds()
Accessor


setDiskExpiryThreadIntervalSeconds

void setDiskExpiryThreadIntervalSeconds(long seconds)
setDiskExpiryThreadIntervalSeconds

Parameters:
seconds -

getDiskSpoolBufferSizeMB

int getDiskSpoolBufferSizeMB()
Accessor


setDiskSpoolBufferSizeMB

void setDiskSpoolBufferSizeMB(int diskSpoolBufferSizeMB)
setDiskSpoolBufferSizeMB

Parameters:
diskSpoolBufferSizeMB -

isTerracottaClustered

boolean isTerracottaClustered()
Accessor


getTerracottaConsistency

String getTerracottaConsistency()
Accessor


isOverflowToOffHeap

boolean isOverflowToOffHeap()
Accessor


getMaxMemoryOffHeapInBytes

@Deprecated
long getMaxMemoryOffHeapInBytes()
Deprecated. use getMaxBytesLocalOffHeap()

Accessor


ehcache

Copyright 2001-2014, Terracotta, Inc.