public final class JMXRegistrar extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JMXRegistrar.IndexingProgressMonitor
A JMX based mass indexer progress monitor.
|
static class |
JMXRegistrar.StatisticsInfo |
| Modifier and Type | Method and Description |
|---|---|
static String |
buildMBeanName(String defaultName,
String suffix) |
static boolean |
isNameRegistered(String name)
Checks whether a bean is registered under the given name.
|
static <T> String |
registerMBean(T object,
Class<T> beanInterface,
String name)
Registers the specified object with the given name to the MBean server.
|
static void |
unRegisterMBean(String name)
Unregister the MBean with the specified name.
|
public static <T> String registerMBean(T object, Class<T> beanInterface, String name)
object - the object to registername - the object name to register the bean underpublic static void unRegisterMBean(String name)
name - The name of the bean to unregister. The name cannot be nullIllegalArgumentException - In case the object name is nullpublic static boolean isNameRegistered(String name)
name - the object name to check (as string)true is there is a bean registered under the given name, false otherwise.IllegalArgumentException - In case the object name is nullCopyright © 2006–2014 Hibernate. All rights reserved.