Top Description Fields Constructors Methods
net.sf.ehcache.hibernate.management.impl

public Class EhcacheStatsImpl

extends BaseEmitterBean
implements EhcacheStats
Class Inheritance
All Implemented Interfaces
net.sf.ehcache.hibernate.management.api.EhcacheStats, javax.management.NotificationEmitter, javax.management.NotificationBroadcaster
Imports
java.util.ArrayList, .HashMap, .Map, java.util.concurrent.TimeUnit, javax.management.MBeanNotificationInfo, .NotCompliantMBeanException, .Notification, net.sf.ehcache.Cache, .CacheManager, net.sf.ehcache.hibernate.management.api.EhcacheStats, net.sf.ehcache.management.sampled.SampledCacheManager

Implementation of EhcacheStats

Author
Abhishek Sanoujam

Field Summary

Modifier and TypeField and Description
private final CacheManager
private static final long
private static final MBeanNotificationInfo
private final SampledCacheManager
private long
Inherited from net.sf.ehcache.hibernate.management.impl.BaseEmitterBean:
emittersequenceNumber

Constructor Summary

AccessConstructor and Description
public
EhcacheStatsImpl(CacheManager manager)

Constructor accepting the backing CacheManager

Method Summary

Modifier and TypeMethod and Description
protected void
doDispose()

Implements abstract net.sf.ehcache.hibernate.management.impl.BaseEmitterBean.doDispose.

Dispose callback of subclasses
public void
flushRegionCache(String region)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.flushRegionCache.

Flushes the cache for the input region
public void
flushRegionCaches()

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.flushRegionCaches.

Flushes all the caches for all the regions
public String
public String
generateActiveConfigDeclaration(String region)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.generateActiveConfigDeclaration.

Returns the currently active cache configuration for the supplied region
public float
getAverageGetTimeMillis(String region)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getAverageGetTimeMillis.

Return average time taken in milliseconds for a get operation for the input cache name
public long
public double
public long
getCacheHitSample()

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getCacheHitSample.

Returns hit count sample for all the caches
public long
public double
public long
getCacheMissSample()

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getCacheMissSample.

Returns miss count sample for all the caches
public long
public double
public long
getCachePutSample()

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getCachePutSample.

Returns put count sample for all the caches
public long
getMaxGetTimeMillis()

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getMaxGetTimeMillis.

Return maximum time taken in milliseconds for a get operation
public long
getMaxGetTimeMillis(String cacheName)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getMaxGetTimeMillis.

Return maximum time taken in milliseconds for a get operation for the input cache name
public long
getMinGetTimeMillis()

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getMinGetTimeMillis.

Return minimum time taken for a get operation in the cache in milliseconds
public long
getMinGetTimeMillis(String cacheName)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getMinGetTimeMillis.

Return minimum time taken in milliseconds for a get operation for the input cache name
public MBeanNotificationInfo[]
getNotificationInfo()

Implements abstract net.sf.ehcache.hibernate.management.impl.BaseEmitterBean.getNotificationInfo.

Implements javax.management.NotificationBroadcaster.getNotificationInfo.

Returns an array indicating, for each notification this MBean may send, the name of the Java class of the notification and the notification type.

public int
getNumberOfElementsInMemory(String region)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getNumberOfElementsInMemory.

Returns number of elements in-memory in the cache for the input region
public int
getNumberOfElementsOffHeap(String region)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getNumberOfElementsOffHeap.

Returns number of elements off-heap in the cache for the input region
public int
getNumberOfElementsOnDisk(String region)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getNumberOfElementsOnDisk.

Returns number of elements on-disk in the cache for the input region
public String
public String
getOriginalConfigDeclaration(String
for which the configuration is required
region
)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getOriginalConfigDeclaration.

Returns the original cache configuration for the supplied region
public Map<String, Map<String, Object>>
getRegionCacheAttributes()

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getRegionCacheAttributes.

Returns a map containing mapping of all cache region names to their attributes
public Map<String, Object>
getRegionCacheAttributes(String regionName)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getRegionCacheAttributes.

Returns a map containing attributes of the cache for the input cache region name
public int
public int
public int
getRegionCacheOrphanEvictionPeriod(String region)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getRegionCacheOrphanEvictionPeriod.

Returns the orphan eviction period for the input cache region.
public Map<String, int[]>
getRegionCacheSamples()

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getRegionCacheSamples.

Returns a map containing mapping between cache names and an array containing hit, miss and put count samples
public int
public int
public String[]
public boolean
isRegionCacheEnabled(String region)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.isRegionCacheEnabled.

Returns true if cache is enabled for the input region
public boolean
isRegionCacheLoggingEnabled(String region)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.isRegionCacheLoggingEnabled.

Returns true if logging is enabled for the input cache region
public boolean
isRegionCacheOrphanEvictionEnabled(String region)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.isRegionCacheOrphanEvictionEnabled.

Returns true if orphan eviction is enabled for the region otherwise false
public boolean
isRegionCachesEnabled()

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.isRegionCachesEnabled.

Returns true if all the cache regions are enabled.
public boolean
isTerracottaHibernateCache(String region)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.isTerracottaHibernateCache.

Returns true if the input region is clustered with terracotta
public void
setRegionCacheEnabled(String region, boolean enabled)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.setRegionCacheEnabled.

Enables/disables a particular region
public void
setRegionCacheLoggingEnabled(String region, boolean loggingEnabled)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.setRegionCacheLoggingEnabled.

Enable/Disable logging for the input cache region
public void
setRegionCacheMaxTTISeconds(String region, int
Returns the time to idle for the input cache region
maxTTISeconds
)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.setRegionCacheMaxTTISeconds.

Sets the time to idle for the input cache region
public void
setRegionCacheMaxTTLSeconds(String region, int maxTTLSeconds)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.setRegionCacheMaxTTLSeconds.

Sets the time to live for the input cache region
public void
setRegionCachesEnabled(final boolean flag)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.setRegionCachesEnabled.

Enable/disable all the cache regions.
public void
setRegionCacheTargetMaxInMemoryCount(String region, int targetMaxInMemoryCount)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.setRegionCacheTargetMaxInMemoryCount.

Sets the maxElementsInMemory of the input cache region
public void
setRegionCacheTargetMaxTotalCount(String region, int targetMaxTotalCount)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.setRegionCacheTargetMaxTotalCount.

Sets the maxElementsOnDisk of the input cache region
Inherited from net.sf.ehcache.hibernate.management.impl.BaseEmitterBean:
addNotificationListenerdisposeremoveNotificationListenerremoveNotificationListenersendNotificationsendNotificationsendNotification

Field Detail

cacheManagerback to summary
private final CacheManager cacheManager
MILLIS_PER_SECONDback to summary
private static final long MILLIS_PER_SECOND
NOTIFICATION_INFOback to summary
private static final MBeanNotificationInfo NOTIFICATION_INFO
sampledCacheManagerback to summary
private final SampledCacheManager sampledCacheManager
statsSinceback to summary
private long statsSince

Constructor Detail

EhcacheStatsImplback to summary
public EhcacheStatsImpl(CacheManager manager) throws NotCompliantMBeanException

Constructor accepting the backing CacheManager

Method Detail

doDisposeback to summary
protected void doDispose()

Implements abstract net.sf.ehcache.hibernate.management.impl.BaseEmitterBean.doDispose.

Doc from net.sf.ehcache.hibernate.management.impl.BaseEmitterBean.doDispose.

Dispose callback of subclasses

Annotations
@Override
flushRegionCacheback to summary
public void flushRegionCache(String region)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.flushRegionCache.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.flushRegionCache.

Flushes the cache for the input region

flushRegionCachesback to summary
public void flushRegionCaches()

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.flushRegionCaches.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.flushRegionCaches.

Flushes all the caches for all the regions

generateActiveConfigDeclarationback to summary
public String generateActiveConfigDeclaration()

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.generateActiveConfigDeclaration.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.generateActiveConfigDeclaration.

Returns the currently active cache configuration

Returns:String

the currently active cache configuration

generateActiveConfigDeclarationback to summary
public String generateActiveConfigDeclaration(String region)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.generateActiveConfigDeclaration.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.generateActiveConfigDeclaration.

Returns the currently active cache configuration for the supplied region

Returns:String

Returns the currently active cache configuration for the supplied region

getAverageGetTimeMillisback to summary
public float getAverageGetTimeMillis(String region)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getAverageGetTimeMillis.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getAverageGetTimeMillis.

Return average time taken in milliseconds for a get operation for the input cache name

Returns:float

Return average time taken in milliseconds for a get operation for the input cache name

See Also
net.sf.ehcache.hibernate.management.api.EhcacheStats#getAverageGetTimeMillis(java.lang.String)
getCacheHitCountback to summary
public long getCacheHitCount()

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getCacheHitCount.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getCacheHitCount.

Returns hit count for all the caches

Returns:long

Returns hit count for all the caches

getCacheHitRateback to summary
public double getCacheHitRate()

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getCacheHitRate.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getCacheHitRate.

Returns hit rate for all the caches

Returns:double

Returns hit rate for all the caches

getCacheHitSampleback to summary
public long getCacheHitSample()

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getCacheHitSample.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getCacheHitSample.

Returns hit count sample for all the caches

Returns:long

Returns hit count sample for all the caches

getCacheMissCountback to summary
public long getCacheMissCount()

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getCacheMissCount.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getCacheMissCount.

Returns miss count for all the caches

Returns:long

Returns miss count for all the caches

getCacheMissRateback to summary
public double getCacheMissRate()

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getCacheMissRate.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getCacheMissRate.

Returns miss rate for all the caches

Returns:double

Returns miss rate for all the caches

getCacheMissSampleback to summary
public long getCacheMissSample()

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getCacheMissSample.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getCacheMissSample.

Returns miss count sample for all the caches

Returns:long

Returns miss count sample for all the caches

getCachePutCountback to summary
public long getCachePutCount()

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getCachePutCount.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getCachePutCount.

Returns put count for all the caches

Returns:long

Returns put count for all the caches

getCachePutRateback to summary
public double getCachePutRate()

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getCachePutRate.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getCachePutRate.

Returns put rate for all the caches

Returns:double

Returns put rate for all the caches

getCachePutSampleback to summary
public long getCachePutSample()

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getCachePutSample.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getCachePutSample.

Returns put count sample for all the caches

Returns:long

Returns put count sample for all the caches

getMaxGetTimeMillisback to summary
public long getMaxGetTimeMillis()

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getMaxGetTimeMillis.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getMaxGetTimeMillis.

Return maximum time taken in milliseconds for a get operation

Returns:long

Return maximum time taken in milliseconds for a get operation

getMaxGetTimeMillisback to summary
public long getMaxGetTimeMillis(String cacheName)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getMaxGetTimeMillis.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getMaxGetTimeMillis.

Return maximum time taken in milliseconds for a get operation for the input cache name

Returns:long

Return maximum time taken in milliseconds for a get operation for the input cache name

See Also
net.sf.ehcache.hibernate.management.api.EhcacheStats#getMaxGetTimeMillis(java.lang.String)
getMinGetTimeMillisback to summary
public long getMinGetTimeMillis()

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getMinGetTimeMillis.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getMinGetTimeMillis.

Return minimum time taken for a get operation in the cache in milliseconds

Returns:long

minimum time taken for a get operation in the cache in milliseconds

getMinGetTimeMillisback to summary
public long getMinGetTimeMillis(String cacheName)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getMinGetTimeMillis.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getMinGetTimeMillis.

Return minimum time taken in milliseconds for a get operation for the input cache name

Returns:long

Return minimum time taken in milliseconds for a get operation for the input cache name

See Also
net.sf.ehcache.hibernate.management.api.EhcacheStats#getMinGetTimeMillis(java.lang.String)
getNotificationInfoback to summary
public MBeanNotificationInfo[] getNotificationInfo()

Implements abstract net.sf.ehcache.hibernate.management.impl.BaseEmitterBean.getNotificationInfo.

Implements javax.management.NotificationBroadcaster.getNotificationInfo.

Doc from javax.management.NotificationBroadcaster.getNotificationInfo.

Returns an array indicating, for each notification this MBean may send, the name of the Java class of the notification and the notification type.

It is not illegal for the MBean to send notifications not described in this array. However, some clients of the MBean server may depend on the array being complete for their correct functioning.

Returns:MBeanNotificationInfo[]

the array of possible notifications.

Annotations
@Override
See Also
BaseEmitterBean#getNotificationInfo()
getNumberOfElementsInMemoryback to summary
public int getNumberOfElementsInMemory(String region)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getNumberOfElementsInMemory.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getNumberOfElementsInMemory.

Returns number of elements in-memory in the cache for the input region

Returns:int

Returns number of elements in-memory in the cache for the input region

See Also
net.sf.ehcache.hibernate.management.api.EhcacheStats#getNumberOfElementsInMemory(java.lang.String)
getNumberOfElementsOffHeapback to summary
public int getNumberOfElementsOffHeap(String region)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getNumberOfElementsOffHeap.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getNumberOfElementsOffHeap.

Returns number of elements off-heap in the cache for the input region

Returns:int

Returns number of elements off-heap in the cache for the input region

See Also
net.sf.ehcache.hibernate.management.api.EhcacheStats#getNumberOfElementsOffHeap(java.lang.String)
getNumberOfElementsOnDiskback to summary
public int getNumberOfElementsOnDisk(String region)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getNumberOfElementsOnDisk.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getNumberOfElementsOnDisk.

Returns number of elements on-disk in the cache for the input region

Returns:int

Returns number of elements on-disk in the cache for the input region

See Also
net.sf.ehcache.hibernate.management.api.EhcacheStats#getNumberOfElementsOnDisk(java.lang.String)
getOriginalConfigDeclarationback to summary
public String getOriginalConfigDeclaration()

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getOriginalConfigDeclaration.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getOriginalConfigDeclaration.

Get the original cache configuration

Returns:String

the original cache configuration

getOriginalConfigDeclarationback to summary
public String getOriginalConfigDeclaration(String region)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getOriginalConfigDeclaration.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getOriginalConfigDeclaration.

Returns the original cache configuration for the supplied region

Parameters
region:String

for which the configuration is required

Returns:String

the original cache configuration for the supplied region

getRegionCacheAttributesback to summary
public Map<String, Map<String, Object>> getRegionCacheAttributes()

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getRegionCacheAttributes.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getRegionCacheAttributes.

Returns a map containing mapping of all cache region names to their attributes

Returns:Map<String, Map<String, Object>>

Returns a map containing mapping of all cache region names to their attributes

getRegionCacheAttributesback to summary
public Map<String, Object> getRegionCacheAttributes(String regionName)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getRegionCacheAttributes.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getRegionCacheAttributes.

Returns a map containing attributes of the cache for the input cache region name

Returns:Map<String, Object>

Returns a map containing attributes of the cache for the input cache region name

getRegionCacheMaxTTISecondsback to summary
public int getRegionCacheMaxTTISeconds(String region)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getRegionCacheMaxTTISeconds.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getRegionCacheMaxTTISeconds.

Returns the time to idle for the input cache region

Returns:int

Returns the time to live for the input cache region

getRegionCacheMaxTTLSecondsback to summary
public int getRegionCacheMaxTTLSeconds(String region)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getRegionCacheMaxTTLSeconds.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getRegionCacheMaxTTLSeconds.

Returns the time to live for the input cache region

Returns:int

Returns the time to live for the input cache region

getRegionCacheOrphanEvictionPeriodback to summary
public int getRegionCacheOrphanEvictionPeriod(String region)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getRegionCacheOrphanEvictionPeriod.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getRegionCacheOrphanEvictionPeriod.

Returns the orphan eviction period for the input cache region.

Returns:int

Returns the orphan eviction period for the input cache region.

getRegionCacheSamplesback to summary
public Map<String, int[]> getRegionCacheSamples()

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getRegionCacheSamples.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getRegionCacheSamples.

Returns a map containing mapping between cache names and an array containing hit, miss and put count samples

Returns:Map<String, int[]>

Returns a map containing mapping between cache names and an array containing hit, miss and put count samples

getRegionCacheTargetMaxInMemoryCountback to summary
public int getRegionCacheTargetMaxInMemoryCount(String region)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getRegionCacheTargetMaxInMemoryCount.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getRegionCacheTargetMaxInMemoryCount.

Returns the maxElementsInMemory of the input cache region

Returns:int

Returns the maxElementsInMemory of the input cache region

getRegionCacheTargetMaxTotalCountback to summary
public int getRegionCacheTargetMaxTotalCount(String region)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getRegionCacheTargetMaxTotalCount.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getRegionCacheTargetMaxTotalCount.

Returns the maxElementsOnDisk of the input cache region

Returns:int

Returns the maxElementsOnDisk of the input cache region

getTerracottaHibernateCacheRegionNamesback to summary
public String[] getTerracottaHibernateCacheRegionNames()

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.getTerracottaHibernateCacheRegionNames.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.getTerracottaHibernateCacheRegionNames.

Returns the region names which are clustered with terracotta

Returns:String[]

Returns the region names which are clustered with terracotta

isRegionCacheEnabledback to summary
public boolean isRegionCacheEnabled(String region)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.isRegionCacheEnabled.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.isRegionCacheEnabled.

Returns true if cache is enabled for the input region

Returns:boolean

Returns true if cache is enabled for the input region

isRegionCacheLoggingEnabledback to summary
public boolean isRegionCacheLoggingEnabled(String region)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.isRegionCacheLoggingEnabled.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.isRegionCacheLoggingEnabled.

Returns true if logging is enabled for the input cache region

Returns:boolean

Returns true if logging is enabled for the input cache region

isRegionCacheOrphanEvictionEnabledback to summary
public boolean isRegionCacheOrphanEvictionEnabled(String region)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.isRegionCacheOrphanEvictionEnabled.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.isRegionCacheOrphanEvictionEnabled.

Returns true if orphan eviction is enabled for the region otherwise false

Returns:boolean

Returns true if orphan eviction is enabled for the region otherwise false

isRegionCachesEnabledback to summary
public boolean isRegionCachesEnabled()

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.isRegionCachesEnabled.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.isRegionCachesEnabled.

Returns true if all the cache regions are enabled. If even one cache is disabled, it will return false

Returns:boolean

Returns true if all the cache regions are enabled. If even one cache is disabled, it will return false

isTerracottaHibernateCacheback to summary
public boolean isTerracottaHibernateCache(String region)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.isTerracottaHibernateCache.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.isTerracottaHibernateCache.

Returns true if the input region is clustered with terracotta

Returns:boolean

Returns true if the input region is clustered with terracotta

setRegionCacheEnabledback to summary
public void setRegionCacheEnabled(String region, boolean enabled)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.setRegionCacheEnabled.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.setRegionCacheEnabled.

Enables/disables a particular region

setRegionCacheLoggingEnabledback to summary
public void setRegionCacheLoggingEnabled(String region, boolean loggingEnabled)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.setRegionCacheLoggingEnabled.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.setRegionCacheLoggingEnabled.

Enable/Disable logging for the input cache region

setRegionCacheMaxTTISecondsback to summary
public void setRegionCacheMaxTTISeconds(String region, int maxTTISeconds)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.setRegionCacheMaxTTISeconds.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.setRegionCacheMaxTTISeconds.

Sets the time to idle for the input cache region

Parameters
maxTTISeconds:int

Returns the time to idle for the input cache region

setRegionCacheMaxTTLSecondsback to summary
public void setRegionCacheMaxTTLSeconds(String region, int maxTTLSeconds)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.setRegionCacheMaxTTLSeconds.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.setRegionCacheMaxTTLSeconds.

Sets the time to live for the input cache region

setRegionCachesEnabledback to summary
public void setRegionCachesEnabled(final boolean flag)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.setRegionCachesEnabled.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.setRegionCachesEnabled.

Enable/disable all the cache regions.

See Also
net.sf.ehcache.hibernate.management.api.EhcacheStats#setRegionCachesEnabled(boolean)
setRegionCacheTargetMaxInMemoryCountback to summary
public void setRegionCacheTargetMaxInMemoryCount(String region, int targetMaxInMemoryCount)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.setRegionCacheTargetMaxInMemoryCount.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.setRegionCacheTargetMaxInMemoryCount.

Sets the maxElementsInMemory of the input cache region

setRegionCacheTargetMaxTotalCountback to summary
public void setRegionCacheTargetMaxTotalCount(String region, int targetMaxTotalCount)

Implements net.sf.ehcache.hibernate.management.api.EhcacheStats.setRegionCacheTargetMaxTotalCount.

Doc from net.sf.ehcache.hibernate.management.api.EhcacheStats.setRegionCacheTargetMaxTotalCount.

Sets the maxElementsOnDisk of the input cache region