org.terracotta.modules.ehcache.presentation.model
Class CacheModel
java.lang.Object
org.terracotta.modules.ehcache.presentation.model.CacheModel
- All Implemented Interfaces:
- EventListener, NotificationListener
public class CacheModel
- extends Object
- implements NotificationListener
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBEAN_ATTRS
public static final String[] MBEAN_ATTRS
ATTRS
public static final String[] ATTRS
HEADERS
public static final String[] HEADERS
ENABLED_PROP
public static final String ENABLED_PROP
- See Also:
- Constant Field Values
COHERENT_PROP
public static final String COHERENT_PROP
- See Also:
- Constant Field Values
LOGGING_ENABLED_PROP
public static final String LOGGING_ENABLED_PROP
- See Also:
- Constant Field Values
MAX_ELEMENTS_IN_MEMORY_PROP
public static final String MAX_ELEMENTS_IN_MEMORY_PROP
- See Also:
- Constant Field Values
MAX_ELEMENTS_ON_DISK_PROP
public static final String MAX_ELEMENTS_ON_DISK_PROP
- See Also:
- Constant Field Values
TIME_TO_IDLE_SECONDS_PROP
public static final String TIME_TO_IDLE_SECONDS_PROP
- See Also:
- Constant Field Values
TIME_TO_LIVE_SECONDS_PROP
public static final String TIME_TO_LIVE_SECONDS_PROP
- See Also:
- Constant Field Values
MEMORY_STORE_EVICTION_POLICY_PROP
public static final String MEMORY_STORE_EVICTION_POLICY_PROP
- See Also:
- Constant Field Values
DISK_PERSISTENT_PROP
public static final String DISK_PERSISTENT_PROP
- See Also:
- Constant Field Values
ETERNAL_PROP
public static final String ETERNAL_PROP
- See Also:
- Constant Field Values
OVERFLOW_TO_DISK_PROP
public static final String OVERFLOW_TO_DISK_PROP
- See Also:
- Constant Field Values
TERRACOTTA_CLUSTERED_PROP
public static final String TERRACOTTA_CLUSTERED_PROP
- See Also:
- Constant Field Values
propertyChangeSupport
protected PropertyChangeSupport propertyChangeSupport
CacheModel
public CacheModel(CacheManagerModel cacheManagerModel,
String cacheName)
setAttributes
public void setAttributes(Map<String,Object> attrs)
getCacheName
public String getCacheName()
getShortName
public String getShortName()
isEnabled
public boolean isEnabled()
setEnabled
public void setEnabled(boolean enabled)
isCoherent
public boolean isCoherent()
setCoherent
public void setCoherent(boolean coherent)
setLoggingEnabled
public void setLoggingEnabled(boolean enabled)
isLoggingEnabled
public boolean isLoggingEnabled()
getMaxElementsInMemory
public int getMaxElementsInMemory()
setMaxElementsInMemory
public void setMaxElementsInMemory(int maxElements)
getMaxElementsOnDisk
public int getMaxElementsOnDisk()
setMaxElementsOnDisk
public void setMaxElementsOnDisk(int maxElements)
getTimeToIdleSeconds
public long getTimeToIdleSeconds()
setTimeToIdleSeconds
public void setTimeToIdleSeconds(long tti)
getTimeToLiveSeconds
public long getTimeToLiveSeconds()
setTimeToLiveSeconds
public void setTimeToLiveSeconds(long ttl)
getMemoryStoreEvictionPolicy
public String getMemoryStoreEvictionPolicy()
setMemoryStoreEvictionPolicy
public void setMemoryStoreEvictionPolicy(String evictionPolicy)
setDiskPersistent
public void setDiskPersistent(boolean diskPersistent)
isDiskPersistent
public boolean isDiskPersistent()
setEternal
public void setEternal(boolean eternal)
isEternal
public boolean isEternal()
setOverflowToDisk
public void setOverflowToDisk(boolean overflowToDisk)
isOverflowToDisk
public boolean isOverflowToDisk()
setTerracottaClustered
public void setTerracottaClustered(boolean terracottaClustered)
isTerracottaClustered
public boolean isTerracottaClustered()
getCacheStatistics
public CacheStatisticsModel getCacheStatistics(IClient client)
getAggregateCacheStatistics
public CacheStatisticsModel getAggregateCacheStatistics()
removeAll
public void removeAll()
throws Exception
- Throws:
Exception
handleNotification
public void handleNotification(Notification notif,
Object data)
- Specified by:
handleNotification in interface NotificationListener
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)
firePropertyChange
public void firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
tearDown
public void tearDown()
Copyright © 2010 Terracotta, Inc.. All Rights Reserved.