public class ProviderMBeanRegistrationHelper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
ProviderMBeanRegistrationHelper.RegisterMBeansTask
Task for running mbean registration that can be scheduled in a timer
|
Modifier and Type | Field and Description |
---|---|
private EhcacheHibernateMBeanRegistrationImpl |
ehcacheHibernateMBeanRegistration |
private static org.slf4j.Logger |
LOG |
private static int |
MILLIS_PER_SECOND |
private static int |
SLEEP_MILLIS |
Constructor and Description |
---|
ProviderMBeanRegistrationHelper() |
Modifier and Type | Method and Description |
---|---|
private static java.lang.reflect.Field |
getField(java.lang.Class c,
java.lang.String fieldName) |
void |
registerMBean(CacheManager manager,
java.util.Properties properties)
Registers mbean for the input cache manager and the session factory name
|
void |
unregisterMBean()
Unregisters previously registered mbean.
|
private static final org.slf4j.Logger LOG
private static final int MILLIS_PER_SECOND
private static final int SLEEP_MILLIS
private volatile EhcacheHibernateMBeanRegistrationImpl ehcacheHibernateMBeanRegistration
public void registerMBean(CacheManager manager, java.util.Properties properties)
manager
- the backing cachemanagerproperties
- session factory config propertiespublic void unregisterMBean()
private static java.lang.reflect.Field getField(java.lang.Class c, java.lang.String fieldName)