|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.jmx.support.MBeanRegistrationSupport org.springframework.jmx.export.MBeanExporter com.atlassian.confluence.jmx.MBeanExporterWithUnregisterImpl
public class MBeanExporterWithUnregisterImpl
Extends Spring's MBeanExporter to provide an unregister operation (which for some reason they don't have).
Field Summary |
---|
Fields inherited from class org.springframework.jmx.export.MBeanExporter |
---|
AUTODETECT_ALL, AUTODETECT_ASSEMBLER, AUTODETECT_MBEAN, AUTODETECT_NONE |
Fields inherited from class org.springframework.jmx.support.MBeanRegistrationSupport |
---|
logger, registeredBeans, REGISTRATION_FAIL_ON_EXISTING, REGISTRATION_IGNORE_EXISTING, REGISTRATION_REPLACE_EXISTING, server |
Fields inherited from interface com.atlassian.confluence.jmx.MBeanExporterWithUnregister |
---|
PROPERTY_NAME_JMX_DISABLED |
Constructor Summary | |
---|---|
MBeanExporterWithUnregisterImpl()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
boolean |
isEnabled()
Determines whether or not the export is enabled. |
boolean |
isRegistered(javax.management.ObjectName name)
Determines whether the object has been registered. |
void |
registerManagedResource(java.lang.Object o,
javax.management.ObjectName objectName)
|
void |
safeRegisterManagedResource(java.lang.Object value,
javax.management.ObjectName name)
Registers the MBean with a given name. |
void |
setEnabled(boolean enabled)
|
void |
unregisterBean(javax.management.ObjectName name)
Unregistered the MBean with the given name. |
Methods inherited from class org.springframework.jmx.export.MBeanExporter |
---|
adaptMBeanIfPossible, createAndConfigureMBean, createModelMBean, destroy, getObjectName, isBeanDefinitionLazyInit, isMBean, onRegister, onUnregister, registerBeanNameOrInstance, registerBeans, registerManagedResource, setAllowEagerInit, setAssembler, setAutodetect, setAutodetectMode, setAutodetectModeName, setBeanClassLoader, setBeanFactory, setBeans, setEnsureUniqueRuntimeObjectNames, setExcludedBeans, setExposeManagedResourceClassLoader, setListeners, setNamingStrategy, setNotificationListenerMappings, setNotificationListeners |
Methods inherited from class org.springframework.jmx.support.MBeanRegistrationSupport |
---|
doRegister, doUnregister, getRegisteredObjectNames, getServer, onRegister, setRegistrationBehavior, setRegistrationBehaviorName, setServer, unregisterBeans |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.springframework.jmx.export.MBeanExportOperations |
---|
registerManagedResource |
Constructor Detail |
---|
public MBeanExporterWithUnregisterImpl()
Method Detail |
---|
public boolean isEnabled()
MBeanExporterWithUnregister
isEnabled
in interface MBeanExporterWithUnregister
public void setEnabled(boolean enabled)
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class org.springframework.jmx.export.MBeanExporter
public void unregisterBean(javax.management.ObjectName name)
MBeanExporterWithUnregister
unregisterBean
in interface MBeanExporterWithUnregister
name
- of the resource to be unregistered.public boolean isRegistered(javax.management.ObjectName name)
MBeanExporterWithUnregister
isRegistered
in interface MBeanExporterWithUnregister
public void safeRegisterManagedResource(java.lang.Object value, javax.management.ObjectName name)
MBeanExporterWithUnregister
safeRegisterManagedResource
in interface MBeanExporterWithUnregister
value
- - MBean objectname
- of the resourcepublic void registerManagedResource(java.lang.Object o, javax.management.ObjectName objectName) throws org.springframework.jmx.export.MBeanExportException
registerManagedResource
in interface org.springframework.jmx.export.MBeanExportOperations
registerManagedResource
in class org.springframework.jmx.export.MBeanExporter
org.springframework.jmx.export.MBeanExportException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |