ehcache

net.sf.ehcache.management
Interface CacheManagerMBean

All Known Implementing Classes:
CacheManager

public interface CacheManagerMBean

An MBean interface for those attributes and operations we wish to expose on net.sf.ehcache.CacheManager

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

Method Summary
 void clearAll()
          Clears the contents of all caches in the CacheManager, but without removing any caches.
 Cache getCache(String name)
          Returns a JMX Cache bean
 String[] getCacheNames()
          Gets the cache names managed by the CacheManager
 List getCaches()
          Gets a list of caches in this CacheManager
 String getName()
          Gets the name of the cache manager
 String getStatus()
          Gets the status attribute of the Ehcache
 long getTransactionCommittedCount()
          Get the committed transactions count
 long getTransactionRolledBackCount()
          Get the rolled back transactions count
 long getTransactionTimedOutCount()
          Get the timed out transactions count.
 void shutdown()
          Shuts down the CacheManager.
 

Method Detail

getStatus

String getStatus()
Gets the status attribute of the Ehcache

Returns:
The status value, as a String from the Status enum class

getName

String getName()
Gets the name of the cache manager

Returns:
The name of the CacheManager

shutdown

void shutdown()
Shuts down the CacheManager.

If the shutdown occurs on the singleton, then the singleton is removed, so that if a singleton access method is called, a new singleton will be created.


clearAll

void clearAll()
Clears the contents of all caches in the CacheManager, but without removing any caches.

This method is not synchronized. It only guarantees to clear those elements in a cache at the time that the Ehcache.removeAll() mehod on each cache is called.


getCache

Cache getCache(String name)
Returns a JMX Cache bean


getCacheNames

String[] getCacheNames()
                       throws IllegalStateException
Gets the cache names managed by the CacheManager

Throws:
IllegalStateException

getCaches

List getCaches()
Gets a list of caches in this CacheManager

Returns:
a list of JMX Cache objects

getTransactionCommittedCount

long getTransactionCommittedCount()
Get the committed transactions count

Returns:
the committed transactions count

getTransactionRolledBackCount

long getTransactionRolledBackCount()
Get the rolled back transactions count

Returns:
the rolled back transactions count

getTransactionTimedOutCount

long getTransactionTimedOutCount()
Get the timed out transactions count. Note that only transactions which failed to commit due to a timeout are taken into account

Returns:
the timed out transactions count

ehcache

Copyright 2001-2017, Terracotta, Inc.