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.EnvironmentAwareprotected final org.springframework.core.env.Environment getEnvironment()
public boolean isEnabled()
JmxEndpointisEnabled in interface JmxEndpointpublic void setEnabled(Boolean enabled)
public String getIdentity()
JmxEndpointgetIdentity in interface JmxEndpointpublic Class<? extends Endpoint> getEndpointType()
JmxEndpointEndpoint exposed, or null if this
JmxEndpoint exposes information that cannot be represented as a traditional
Endpoint.getEndpointType in interface JmxEndpointCopyright © 2019 Pivotal Software, Inc.. All rights reserved.