类 AbstractJmxEndpoint
- java.lang.Object
- org.springframework.boot.actuate.endpoint.jmx.AbstractJmxEndpoint
- 所有已实现的接口:
org.springframework.beans.factory.Aware
,JmxEndpoint
,org.springframework.context.EnvironmentAware
- 直接已知子类:
AuditEventsJmxEndpoint
public abstract class AbstractJmxEndpoint extends Object implements JmxEndpoint, org.springframework.context.EnvironmentAware
Abstract base class forJmxEndpoint
implementations without a backingEndpoint
.- 从以下版本开始:
- 1.5.0
构造器概要
构造器 构造器 说明 AbstractJmxEndpoint(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected Object
convert(Object data)
Convert the given data into JSON.Class<? extends Endpoint>
getEndpointType()
Return the type ofEndpoint
exposed, ornull
if thisJmxEndpoint
exposes information that cannot be represented as a traditionalEndpoint
.protected org.springframework.core.env.Environment
getEnvironment()
String
getIdentity()
Return the MBean identity for this endpoint.boolean
isEnabled()
Return if the JMX endpoint is enabled.void
setEnabled(Boolean enabled)
void
setEnvironment(org.springframework.core.env.Environment environment)
构造器详细资料
AbstractJmxEndpoint
public AbstractJmxEndpoint(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
方法详细资料
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment)
- 指定者:
setEnvironment
在接口中org.springframework.context.EnvironmentAware
getEnvironment
protected final org.springframework.core.env.Environment getEnvironment()
isEnabled
public boolean isEnabled()
从接口复制的说明:JmxEndpoint
Return if the JMX endpoint is enabled.- 指定者:
isEnabled
在接口中JmxEndpoint
- 返回:
- if the endpoint is enabled
setEnabled
public void setEnabled(Boolean enabled)
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