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 EnvironmentAware
protected final 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 © 2019 Pivotal Software, Inc.. All rights reserved.