public class MBeanExporterWithUnregisterImpl extends org.springframework.jmx.export.MBeanExporter implements MBeanExporterWithUnregister
AUTODETECT_ALL, AUTODETECT_ASSEMBLER, AUTODETECT_MBEAN, AUTODETECT_NONE
PROPERTY_NAME_JMX_DISABLED
Constructor and Description |
---|
MBeanExporterWithUnregisterImpl(com.atlassian.event.api.EventPublisher eventPublisher,
com.atlassian.tenancy.api.TenantAccessor tenantAccessor) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
boolean |
isEnabled()
Determines whether or not the export is enabled.
|
boolean |
isRegistered(ObjectName name)
Determines whether the object has been registered.
|
void |
registerManagedResource(Object o,
ObjectName objectName) |
void |
safeRegisterManagedResource(Object value,
ObjectName name)
Registers the MBean with a given name.
|
void |
setLazyBeans(Map<String,Supplier<Object>> lazyBeans) |
void |
unregisterBean(ObjectName name)
Deprecated.
since 5.10. Use
unregisterManagedResource(javax.management.ObjectName) instead. |
void |
unregisterManagedResource(ObjectName objectName) |
adaptMBeanIfPossible, addExcludedBean, afterSingletonsInstantiated, createAndConfigureMBean, createModelMBean, getObjectName, isBeanDefinitionLazyInit, isMBean, onRegister, onUnregister, registerBeanNameOrInstance, registerBeans, registerManagedResource, setAllowEagerInit, setAssembler, setAutodetect, setAutodetectMode, setAutodetectModeName, setBeanClassLoader, setBeanFactory, setBeans, setEnsureUniqueRuntimeObjectNames, setExcludedBeans, setExposeManagedResourceClassLoader, setListeners, setNamingStrategy, setNotificationListenerMappings, setNotificationListeners
doRegister, doUnregister, getRegisteredObjectNames, getServer, onRegister, setRegistrationPolicy, setServer, unregisterBeans
public MBeanExporterWithUnregisterImpl(com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.tenancy.api.TenantAccessor tenantAccessor)
public boolean isEnabled()
MBeanExporterWithUnregister
isEnabled
in interface MBeanExporterWithUnregister
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class org.springframework.jmx.export.MBeanExporter
public void destroy()
destroy
in interface org.springframework.beans.factory.DisposableBean
destroy
in class org.springframework.jmx.export.MBeanExporter
public void unregisterManagedResource(ObjectName objectName)
unregisterManagedResource
in interface org.springframework.jmx.export.MBeanExportOperations
unregisterManagedResource
in class org.springframework.jmx.export.MBeanExporter
@Deprecated public void unregisterBean(ObjectName name)
unregisterManagedResource(javax.management.ObjectName)
instead.MBeanExporterWithUnregister
unregisterBean
in interface MBeanExporterWithUnregister
name
- of the resource to be unregistered.public boolean isRegistered(ObjectName name)
MBeanExporterWithUnregister
isRegistered
in interface MBeanExporterWithUnregister
public void safeRegisterManagedResource(Object value, ObjectName name)
MBeanExporterWithUnregister
safeRegisterManagedResource
in interface MBeanExporterWithUnregister
value
- - MBean objectname
- of the resourcepublic void registerManagedResource(Object o, 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
Copyright © 2003–2021 Atlassian. All rights reserved.