ehcache

net.sf.ehcache.management.provider
Class MBeanRegistrationProviderImpl

java.lang.Object
  extended by net.sf.ehcache.management.provider.MBeanRegistrationProviderImpl
All Implemented Interfaces:
MBeanRegistrationProvider

public class MBeanRegistrationProviderImpl
extends Object
implements MBeanRegistrationProvider

Implementation of MBeanRegistrationProvider

Since:
1.7.1
Author:
Abhishek Sanoujam

Constructor Summary
MBeanRegistrationProviderImpl(Configuration configuration)
          Constructor accepting the Configuration
 
Method Summary
 void initialize(CacheManager cacheManager, ClusteredInstanceFactory clusteredInstanceFactory)
          Initialize MBeanRegistration if necessary for the cacheManager
 boolean isInitialized()
          Returns true if initialized otherwise false
 void reinitialize(ClusteredInstanceFactory clusteredInstanceFactory)
          Reinitialize the mbeans.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBeanRegistrationProviderImpl

public MBeanRegistrationProviderImpl(Configuration configuration)
Constructor accepting the Configuration

Parameters:
configuration -
Method Detail

initialize

public void initialize(CacheManager cacheManager,
                       ClusteredInstanceFactory clusteredInstanceFactory)
                throws MBeanRegistrationProviderException
Initialize MBeanRegistration if necessary for the cacheManager

Specified by:
initialize in interface MBeanRegistrationProvider
Throws:
MBeanRegistrationProviderException

reinitialize

public void reinitialize(ClusteredInstanceFactory clusteredInstanceFactory)
                  throws MBeanRegistrationProviderException
Reinitialize the mbeans. Uses the current name of the CacheManager to re-register the mbeans

Specified by:
reinitialize in interface MBeanRegistrationProvider
Throws:
MBeanRegistrationProviderException

isInitialized

public boolean isInitialized()
Returns true if initialized otherwise false

Specified by:
isInitialized in interface MBeanRegistrationProvider
Returns:
true if initialized

ehcache

Copyright 2001-2017, Terracotta, Inc.