public abstract class AbstractJmxEndpoint extends Object implements JmxEndpoint, org.springframework.context.EnvironmentAware
JmxEndpoint
implementations without a backing
Endpoint
.Constructor and Description |
---|
AbstractJmxEndpoint(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
Modifier and Type | Method and Description |
---|---|
protected Object |
convert(Object data)
Convert the given data into JSON.
|
Class<? extends Endpoint> |
getEndpointType()
Return the type of
Endpoint exposed, or null if this
JmxEndpoint exposes information that cannot be represented as a traditional
Endpoint . |
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) |
public AbstractJmxEndpoint(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment
in interface org.springframework.context.EnvironmentAware
protected final org.springframework.core.env.Environment getEnvironment()
public boolean isEnabled()
JmxEndpoint
isEnabled
in interface JmxEndpoint
public void setEnabled(Boolean enabled)
public String getIdentity()
JmxEndpoint
getIdentity
in interface JmxEndpoint
public Class<? extends Endpoint> getEndpointType()
JmxEndpoint
Endpoint
exposed, or null
if this
JmxEndpoint
exposes information that cannot be represented as a traditional
Endpoint
.getEndpointType
in interface JmxEndpoint
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.