|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.management.sampled.CacheManagerSamplerImpl
public class CacheManagerSamplerImpl
An implementation of CacheManagerSampler
| Constructor Summary | |
|---|---|
CacheManagerSamplerImpl(CacheManager cacheManager)
Constructor taking the backing CacheManager |
|
| Method Summary | |
|---|---|
void |
clearAll()
Clears the contents of all caches in the CacheManager, but without removing any caches. |
Object[][] |
executeQuery(String queryString)
Execute a BMSQL query against the CacheManager and return result grid. |
String |
generateActiveConfigDeclaration()
generateActiveConfigDeclaration |
String |
generateActiveConfigDeclaration(String cacheName)
generateActiveConfigDeclaration |
float |
getCacheAverageGetTime()
|
long |
getCacheAverageSearchTime()
|
long |
getCacheEvictionRate()
|
long |
getCacheExpirationRate()
|
long |
getCacheHitRate()
|
long |
getCacheInMemoryHitRate()
|
long |
getCacheInMemoryMissRate()
|
Map<String,long[]> |
getCacheMetrics()
Get a map of cache name to performance metrics (hits, misses). |
long |
getCacheMissRate()
|
String[] |
getCacheNames()
Gets the cache names managed by the CacheManager |
long |
getCacheOffHeapHitRate()
|
long |
getCacheOffHeapMissRate()
|
long |
getCacheOnDiskHitRate()
|
long |
getCacheOnDiskMissRate()
|
long |
getCachePutRate()
|
long |
getCacheRemoveRate()
|
long |
getCacheSearchRate()
|
long |
getCacheUpdateRate()
|
String |
getClusterUUID()
Gets the cluster uuid if applicable. |
boolean |
getHasWriteBehindWriter()
Returns whether any caches are configured for write-behind |
long |
getMaxBytesLocalDisk()
Maximum number of bytes of entries in the disk stores of all caches that did not declare their own max size. |
String |
getMaxBytesLocalDiskAsString()
|
long |
getMaxBytesLocalHeap()
Maximum number of bytes of entries in the heap memory stores of all caches that did not declare their own max size. |
String |
getMaxBytesLocalHeapAsString()
|
long |
getMaxBytesLocalOffHeap()
Maximum number of bytes of entries in the off-heap stores of all caches that did not declare their own max size. |
String |
getMaxBytesLocalOffHeapAsString()
|
String |
getName()
Gets the actual name of the cache manager. |
boolean |
getSearchable()
|
String |
getStatus()
Gets the status attribute of the Ehcache |
boolean |
getTransactional()
Are any of the caches transactional |
long |
getTransactionCommitRate()
|
long |
getTransactionCommittedCount()
Get the committed transactions count |
long |
getTransactionRollbackRate()
|
long |
getTransactionRolledBackCount()
Get the rolled back transactions count |
long |
getTransactionTimedOutCount()
Get the timed out transactions count. |
int |
getWriterMaxQueueSize()
Maximum elements that can be queued for processing by the write-behind writer |
long |
getWriterQueueLength()
Returns the total length of all write-behind queues across all caches |
boolean |
isEnabled()
Returns if each cache is enabled. |
void |
setEnabled(boolean enabled)
Enables/disables each cache contained by this CacheManager |
void |
setMaxBytesLocalDisk(long maxBytes)
|
void |
setMaxBytesLocalDiskAsString(String maxBytes)
|
void |
setMaxBytesLocalHeap(long maxBytes)
|
void |
setMaxBytesLocalHeapAsString(String maxBytes)
|
void |
shutdown()
Shuts down the CacheManager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CacheManagerSamplerImpl(CacheManager cacheManager)
CacheManager
cacheManager - to wrap| Method Detail |
|---|
public void clearAll()
Ehcache.removeAll() mehod on each cache is called.
clearAll in interface CacheManagerSampler
public String[] getCacheNames()
throws IllegalStateException
getCacheNames in interface CacheManagerSamplerIllegalStateExceptionpublic String getStatus()
getStatus in interface CacheManagerSamplerpublic void shutdown()
shutdown in interface CacheManagerSamplerpublic Map<String,long[]> getCacheMetrics()
getCacheMetrics in interface CacheManagerSamplerpublic long getCacheHitRate()
getCacheHitRate in interface CacheManagerSamplerpublic long getCacheInMemoryHitRate()
getCacheInMemoryHitRate in interface CacheManagerSamplerpublic long getCacheOffHeapHitRate()
getCacheOffHeapHitRate in interface CacheManagerSamplerpublic long getCacheOnDiskHitRate()
getCacheOnDiskHitRate in interface CacheManagerSamplerpublic long getCacheMissRate()
getCacheMissRate in interface CacheManagerSamplerpublic long getCacheInMemoryMissRate()
getCacheInMemoryMissRate in interface CacheManagerSamplerpublic long getCacheOffHeapMissRate()
getCacheOffHeapMissRate in interface CacheManagerSamplerpublic long getCacheOnDiskMissRate()
getCacheOnDiskMissRate in interface CacheManagerSamplerpublic long getCachePutRate()
getCachePutRate in interface CacheManagerSamplerpublic long getCacheUpdateRate()
getCacheUpdateRate in interface CacheManagerSamplerpublic long getCacheRemoveRate()
getCacheRemoveRate in interface CacheManagerSamplerpublic long getCacheEvictionRate()
getCacheEvictionRate in interface CacheManagerSamplerpublic long getCacheExpirationRate()
getCacheExpirationRate in interface CacheManagerSamplerpublic float getCacheAverageGetTime()
getCacheAverageGetTime in interface CacheManagerSamplerpublic long getCacheSearchRate()
getCacheSearchRate in interface CacheManagerSamplerpublic long getCacheAverageSearchTime()
getCacheAverageSearchTime in interface CacheManagerSamplerpublic boolean getHasWriteBehindWriter()
getHasWriteBehindWriter in interface CacheManagerSamplerpublic long getWriterQueueLength()
getWriterQueueLength in interface CacheManagerSamplerpublic int getWriterMaxQueueSize()
getWriterMaxQueueSize in interface CacheManagerSamplerpublic long getMaxBytesLocalDisk()
getMaxBytesLocalDisk in interface CacheManagerSamplerpublic String getMaxBytesLocalDiskAsString()
getMaxBytesLocalDiskAsString in interface CacheManagerSamplerpublic void setMaxBytesLocalDisk(long maxBytes)
setMaxBytesLocalDisk in interface CacheManagerSamplerpublic void setMaxBytesLocalDiskAsString(String maxBytes)
setMaxBytesLocalDiskAsString in interface CacheManagerSamplerpublic long getMaxBytesLocalHeap()
getMaxBytesLocalHeap in interface CacheManagerSamplerpublic String getMaxBytesLocalHeapAsString()
getMaxBytesLocalHeapAsString in interface CacheManagerSamplerpublic void setMaxBytesLocalHeap(long maxBytes)
setMaxBytesLocalHeap in interface CacheManagerSamplerpublic void setMaxBytesLocalHeapAsString(String maxBytes)
setMaxBytesLocalHeapAsString in interface CacheManagerSamplerpublic long getMaxBytesLocalOffHeap()
getMaxBytesLocalOffHeap in interface CacheManagerSamplerpublic String getMaxBytesLocalOffHeapAsString()
getMaxBytesLocalOffHeapAsString in interface CacheManagerSamplerpublic String getName()
getName in interface CacheManagerSamplerpublic String getClusterUUID()
getClusterUUID in interface CacheManagerSamplerpublic String generateActiveConfigDeclaration()
generateActiveConfigDeclaration in interface CacheManagerSamplerpublic String generateActiveConfigDeclaration(String cacheName)
generateActiveConfigDeclaration in interface CacheManagerSamplerpublic boolean getTransactional()
getTransactional in interface CacheManagerSamplerCacheConfiguration.TransactionalModepublic boolean getSearchable()
getSearchable in interface CacheManagerSampler
public Object[][] executeQuery(String queryString)
throws SearchException
CacheManagerSampler
executeQuery in interface CacheManagerSamplerSearchExceptionpublic long getTransactionCommittedCount()
getTransactionCommittedCount in interface CacheManagerSamplerpublic long getTransactionCommitRate()
getTransactionCommitRate in interface CacheManagerSamplerpublic long getTransactionRolledBackCount()
getTransactionRolledBackCount in interface CacheManagerSamplerpublic long getTransactionRollbackRate()
getTransactionRollbackRate in interface CacheManagerSamplerpublic long getTransactionTimedOutCount()
getTransactionTimedOutCount in interface CacheManagerSampler
public boolean isEnabled()
throws CacheException
isEnabled in interface CacheManagerSamplerCacheExceptionpublic void setEnabled(boolean enabled)
setEnabled in interface CacheManagerSampler
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||