Package org.hibernate.search.jmx
Class JMXRegistrar
java.lang.Object
org.hibernate.search.jmx.JMXRegistrar
Helper class to register JMX beans.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisNameRegistered(String name) Checks whether a bean is registered under the given name.static StringregisterMBean(Object object, String name) Registers the specified object with the given name to the MBean server.static voidunRegisterMBean(String name) Unregister the MBean with the specified name.
-
Method Details
-
registerMBean
Registers the specified object with the given name to the MBean server.- Parameters:
object- the object to registername- the object name to register the bean under- Returns:
- The registered object name
-
unRegisterMBean
Unregister the MBean with the specified name.- Parameters:
name- The name of the bean to unregister. Thenamecannot benull- Throws:
IllegalArgumentException- In case the object name isnull
-
isNameRegistered
Checks whether a bean is registered under the given name.- Parameters:
name- the object name to check (as string)- Returns:
trueis there is a bean registered under the given name,falseotherwise.- Throws:
IllegalArgumentException- In case the object name isnull
-