java.lang.Object |
↳ |
org.springframework.jmx.support.MBeanRegistrationSupport |
|
↳ |
org.springframework.jmx.export.MBeanExporter |
|
|
↳ |
com.atlassian.confluence.jmx.MBeanExporterWithUnregisterImpl |
Class Overview
Extends Spring's MBeanExporter to provide an unregister operation (which for some reason they don't have).
Summary
[Expand]
Inherited Constants |
From class
org.springframework.jmx.export.MBeanExporter
int |
AUTODETECT_ALL |
|
int |
AUTODETECT_ASSEMBLER |
|
int |
AUTODETECT_MBEAN |
|
int |
AUTODETECT_NONE |
|
|
From class
org.springframework.jmx.support.MBeanRegistrationSupport
int |
REGISTRATION_FAIL_ON_EXISTING |
|
int |
REGISTRATION_IGNORE_EXISTING |
|
int |
REGISTRATION_REPLACE_EXISTING |
|
|
From interface
com.atlassian.confluence.jmx.MBeanExporterWithUnregister
|
[Expand]
Inherited Fields |
From class
org.springframework.jmx.support.MBeanRegistrationSupport
protected
final
Log |
logger |
|
protected
final
Set |
registeredBeans |
|
protected
MBeanServer |
server |
|
|
Public Constructors
public
MBeanExporterWithUnregisterImpl
()
Public Methods
public
void
afterPropertiesSet
()
public
boolean
isEnabled
()
Determines whether or not the export is enabled. If not enabled, the Exporter will not be able to register
or unregister any MBeans. If the system property "confluence.jmx.disabled" is set to true, this method will
always return false.
public
boolean
isRegistered
(ObjectName name)
Determines whether the object has been registered.
public
void
safeRegisterManagedResource
(Object value, ObjectName name)
Registers the MBean with a given name. If a duplicate MBean is found the object will be overwritten
and any other errors logged and swallowed.
Parameters
value
| - MBean object |
name
| of the resource
|
public
void
setEnabled
(boolean enabled)
public
void
unregisterBean
(ObjectName name)
Unregistered the MBean with the given name. This means that it will no longer be managed by the JMX agent.
Parameters
name
| of the resource to be unregistered.
|