public abstract class AbstractJmxEndpoint extends Object implements JmxEndpoint, 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 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(Environment environment) |
public AbstractJmxEndpoint(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public void setEnvironment(Environment environment)
setEnvironment in interface EnvironmentAwareprotected final 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 © 2017 Pivotal Software, Inc.. All rights reserved.