类 EndpointMBean
- java.lang.Object
- org.springframework.boot.actuate.endpoint.jmx.EndpointMBean
- 所有已实现的接口:
JmxEndpoint
public abstract class EndpointMBean extends Object implements JmxEndpoint
Base for adapters that convertEndpoint
implementations toJmxEndpoint
.- 另请参阅:
JmxEndpoint
,DataEndpointMBean
构造器概要
构造器 构造器 说明 EndpointMBean(String beanName, Endpoint<?> endpoint, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Create a newEndpointMBean
instance.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected Object
convert(Object data)
Convert the given data into JSON.Endpoint<?>
getEndpoint()
String
getEndpointClass()
Class<? extends Endpoint>
getEndpointType()
Return the type ofEndpoint
exposed, ornull
if thisJmxEndpoint
exposes information that cannot be represented as a traditionalEndpoint
.String
getIdentity()
Return the MBean identity for this endpoint.boolean
isEnabled()
Return if the JMX endpoint is enabled.boolean
isSensitive()
构造器详细资料
EndpointMBean
public EndpointMBean(String beanName, Endpoint<?> endpoint, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Create a newEndpointMBean
instance.- 参数:
beanName
- the bean nameendpoint
- the endpoint to wrapobjectMapper
- theObjectMapper
used to convert the payload
方法详细资料
getEndpointClass
@ManagedAttribute(description="Returns the class of the underlying endpoint") public String getEndpointClass()
isEnabled
public boolean isEnabled()
从接口复制的说明:JmxEndpoint
Return if the JMX endpoint is enabled.- 指定者:
isEnabled
在接口中JmxEndpoint
- 返回:
- if the endpoint is enabled
isSensitive
@ManagedAttribute(description="Indicates whether the underlying endpoint exposes sensitive information") public boolean isSensitive()
getIdentity
public String getIdentity()
从接口复制的说明:JmxEndpoint
Return the MBean identity for this endpoint.- 指定者:
getIdentity
在接口中JmxEndpoint
- 返回:
- the MBean identity.
getEndpointType
public Class<? extends Endpoint> getEndpointType()
从接口复制的说明:JmxEndpoint
Return the type ofEndpoint
exposed, ornull
if thisJmxEndpoint
exposes information that cannot be represented as a traditionalEndpoint
.- 指定者:
getEndpointType
在接口中JmxEndpoint
- 返回:
- the endpoint type
getEndpoint
public Endpoint<?> getEndpoint()