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 519 2007-07-27 07:11:45Z gregluck $
Author:
Greg Luck
See Also:
Serialized Form

Constructor Summary
CacheConfiguration(Ehcache cache)
          Constructs using a backing CacheConfiguration
 
Method Summary
(package private) static javax.management.ObjectName createObjectName(java.lang.String cacheManagerName, java.lang.String cacheName)
          Creates an object name using the scheme "net.sf.ehcache:type=CacheConfiguration,CacheManager=,name="
 long getDiskExpiryThreadIntervalSeconds()
          Accessor
 int getDiskSpoolBufferSizeMB()
          Accessor
 int getMaxElementsInMemory()
          Accessor
 int getMaxElementsOnDisk()
          Accessor
 java.lang.String getMemoryStoreEvictionPolicy()
          Accessor
 java.lang.String getName()
          Accessor
(package private)  javax.management.ObjectName getObjectName()
           
 long getTimeToIdleSeconds()
          Accessor
 long getTimeToLiveSeconds()
          Accessor
 boolean isDiskPersistent()
          Accessor
 boolean isEternal()
          Accessor
 boolean isOverflowToDisk()
          Accessor
 
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

createObjectName

static javax.management.ObjectName createObjectName(java.lang.String cacheManagerName,
                                                    java.lang.String cacheName)
Creates an object name using the scheme "net.sf.ehcache:type=CacheConfiguration,CacheManager=,name="


getName

public java.lang.String getName()
Accessor

Specified by:
getName in interface CacheConfigurationMBean

getMaxElementsInMemory

public int getMaxElementsInMemory()
Accessor

Specified by:
getMaxElementsInMemory in interface CacheConfigurationMBean

getMaxElementsOnDisk

public int getMaxElementsOnDisk()
Accessor

Specified by:
getMaxElementsOnDisk in interface CacheConfigurationMBean

getMemoryStoreEvictionPolicy

public java.lang.String getMemoryStoreEvictionPolicy()
Accessor

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

isEternal

public boolean isEternal()
Accessor

Specified by:
isEternal in interface CacheConfigurationMBean

getTimeToIdleSeconds

public long getTimeToIdleSeconds()
Accessor

Specified by:
getTimeToIdleSeconds in interface CacheConfigurationMBean

getTimeToLiveSeconds

public long getTimeToLiveSeconds()
Accessor

Specified by:
getTimeToLiveSeconds in interface CacheConfigurationMBean

isOverflowToDisk

public boolean isOverflowToDisk()
Accessor

Specified by:
isOverflowToDisk in interface CacheConfigurationMBean

isDiskPersistent

public boolean isDiskPersistent()
Accessor

Specified by:
isDiskPersistent in interface CacheConfigurationMBean

getDiskSpoolBufferSizeMB

public int getDiskSpoolBufferSizeMB()
Accessor


getDiskExpiryThreadIntervalSeconds

public long getDiskExpiryThreadIntervalSeconds()
Accessor

Specified by:
getDiskExpiryThreadIntervalSeconds in interface CacheConfigurationMBean

getObjectName

javax.management.ObjectName getObjectName()
Returns:
the object name for this MBean

ehcache