Package org.appng.core
Class JMXUtils
- java.lang.Object
-
- org.appng.core.JMXUtils
-
public class JMXUtils extends Object
Utility-class for registering/unregistering JMX-objects.- Author:
- Matthias Müller
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
register(Object object, String name)
Registers the given object under the given name, if no other object is already registered under this name.static boolean
unregister(String name)
Unregisters the object currently registered under the given name, if existing.
-
-
-
Method Detail
-
register
public static boolean register(Object object, String name)
Registers the given object under the given name, if no other object is already registered under this name.- Parameters:
object
- the object to registername
- the name for the object to register- Returns:
true
if the object has been registered,false
otherwise (also if an exception occurred while registering).
-
unregister
public static boolean unregister(String name)
Unregisters the object currently registered under the given name, if existing.- Parameters:
name
- the name for the object to unregister- Returns:
true
if the object has been unregistered,false
otherwise (also if an exception occurred while unregistering).
-
-