类 EndpointMBeanExporter
- java.lang.Object
- org.springframework.jmx.support.MBeanRegistrationSupport
- org.springframework.jmx.export.MBeanExporter
- org.springframework.boot.actuate.endpoint.jmx.EndpointMBeanExporter
- 所有已实现的接口:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
,org.springframework.beans.factory.SmartInitializingSingleton
,org.springframework.context.ApplicationContextAware
,org.springframework.context.Lifecycle
,org.springframework.context.Phased
,org.springframework.context.SmartLifecycle
,org.springframework.jmx.export.MBeanExportOperations
public class EndpointMBeanExporter extends org.springframework.jmx.export.MBeanExporter implements org.springframework.context.SmartLifecycle, org.springframework.context.ApplicationContextAware
SmartLifecycle
bean that registers all knownEndpoint
s with anMBeanServer
using theMBeanExporter
located from the application context.
字段概要
字段 修饰符和类型 字段 说明 static String
DEFAULT_DOMAIN
The default JMX domain.
构造器概要
构造器 构造器 说明 EndpointMBeanExporter()
Create a newEndpointMBeanExporter
instance.EndpointMBeanExporter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Create a newEndpointMBeanExporter
instance.
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 protected JmxEndpoint
adaptEndpoint(String beanName, Endpoint<?> endpoint)
Adapt the givenEndpoint
to aJmxEndpoint
.protected void
doStart()
protected EndpointMBean
getEndpointMBean(String beanName, Endpoint<?> endpoint)
已过时。as of 1.5 in favor ofadaptEndpoint(String, Endpoint)
protected ObjectName
getObjectName(Object bean, String beanKey)
int
getPhase()
boolean
isAutoStartup()
boolean
isRunning()
protected void
locateAndRegisterEndpoints()
protected void
registerEndpoint(String beanName, Endpoint<?> endpoint)
已过时。as of 1.5 in favor of directJmxEndpoint
registration oradaptEndpoint(String, Endpoint)
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
void
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
void
setDomain(String domain)
void
setEnsureUniqueRuntimeObjectNames(boolean ensureUniqueRuntimeObjectNames)
void
setObjectNameStaticProperties(Properties objectNameStaticProperties)
void
start()
void
stop()
void
stop(Runnable callback)
从类继承的方法 org.springframework.jmx.export.MBeanExporter
adaptMBeanIfPossible, addExcludedBean, afterPropertiesSet, afterSingletonsInstantiated, createAndConfigureMBean, createModelMBean, destroy, isBeanDefinitionLazyInit, isMBean, onRegister, onUnregister, registerBeanNameOrInstance, registerBeans, registerManagedResource, registerManagedResource, setAllowEagerInit, setAssembler, setAutodetect, setAutodetectMode, setAutodetectModeName, setBeanClassLoader, setBeans, setExcludedBeans, setExposeManagedResourceClassLoader, setListeners, setNamingStrategy, setNotificationListenerMappings, setNotificationListeners, unregisterManagedResource
字段详细资料
DEFAULT_DOMAIN
public static final String DEFAULT_DOMAIN
The default JMX domain.- 另请参阅:
- 常量字段值
构造器详细资料
EndpointMBeanExporter
public EndpointMBeanExporter()
Create a newEndpointMBeanExporter
instance.
EndpointMBeanExporter
public EndpointMBeanExporter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Create a newEndpointMBeanExporter
instance.- 参数:
objectMapper
- the object mapper
方法详细资料
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
- 指定者:
setApplicationContext
在接口中org.springframework.context.ApplicationContextAware
- 抛出:
org.springframework.beans.BeansException
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
- 指定者:
setBeanFactory
在接口中org.springframework.beans.factory.BeanFactoryAware
- 覆盖:
setBeanFactory
在类中org.springframework.jmx.export.MBeanExporter
setEnsureUniqueRuntimeObjectNames
public void setEnsureUniqueRuntimeObjectNames(boolean ensureUniqueRuntimeObjectNames)
- 覆盖:
setEnsureUniqueRuntimeObjectNames
在类中org.springframework.jmx.export.MBeanExporter
setObjectNameStaticProperties
public void setObjectNameStaticProperties(Properties objectNameStaticProperties)
doStart
protected void doStart()
locateAndRegisterEndpoints
protected void locateAndRegisterEndpoints()
registerEndpoint
@Deprecated protected void registerEndpoint(String beanName, Endpoint<?> endpoint)
已过时。as of 1.5 in favor of directJmxEndpoint
registration oradaptEndpoint(String, Endpoint)
Register a regularEndpoint
with theMBeanServer
.- 参数:
beanName
- the bean nameendpoint
- the endpoint to register
adaptEndpoint
protected JmxEndpoint adaptEndpoint(String beanName, Endpoint<?> endpoint)
Adapt the givenEndpoint
to aJmxEndpoint
.- 参数:
beanName
- the bean nameendpoint
- the endpoint to adapt- 返回:
- an adapted endpoint
getEndpointMBean
@Deprecated protected EndpointMBean getEndpointMBean(String beanName, Endpoint<?> endpoint)
已过时。as of 1.5 in favor ofadaptEndpoint(String, Endpoint)
Get aEndpointMBean
for the specifiedEndpoint
.- 参数:
beanName
- the bean nameendpoint
- the endpoint- 返回:
- an
EndpointMBean
getObjectName
protected ObjectName getObjectName(Object bean, String beanKey) throws MalformedObjectNameException
- 覆盖:
getObjectName
在类中org.springframework.jmx.export.MBeanExporter
- 抛出:
MalformedObjectNameException
getPhase
public final int getPhase()
- 指定者:
getPhase
在接口中org.springframework.context.Phased
isAutoStartup
public final boolean isAutoStartup()
- 指定者:
isAutoStartup
在接口中org.springframework.context.SmartLifecycle
isRunning
public final boolean isRunning()
- 指定者:
isRunning
在接口中org.springframework.context.Lifecycle
start
public final void start()
- 指定者:
start
在接口中org.springframework.context.Lifecycle
stop
public final void stop()
- 指定者:
stop
在接口中org.springframework.context.Lifecycle