Package org.sosy_lab.common
Class AbstractMBean
- java.lang.Object
-
- org.sosy_lab.common.AbstractMBean
-
public abstract class AbstractMBean extends Object
Abstract class that encapsulates the registration of an MBean with theMBeanServer
. Exceptions that occur are swallowed and logged.This class is not thread-safe.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractMBean(String name, LogManager logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RuntimeErrorException
handleRuntimeErrorException(RuntimeErrorException e)
void
register()
Register this instance at the platform MBeanServer.void
unregister()
Unregister this instance.
-
-
-
Constructor Detail
-
AbstractMBean
protected AbstractMBean(String name, LogManager logger)
-
-
Method Detail
-
handleRuntimeErrorException
protected RuntimeErrorException handleRuntimeErrorException(RuntimeErrorException e)
-
register
public void register()
Register this instance at the platform MBeanServer. Swallows all checked exceptions that might occur and logs them.
-
unregister
public void unregister()
Unregister this instance. May be called even if registration was not successful (does nothing in this case).
-
-