public abstract class EndpointMBean extends Object implements JmxEndpoint
Endpoint implementations to JmxEndpoint.JmxEndpoint,
DataEndpointMBean| Constructor and Description |
|---|
EndpointMBean(String beanName,
Endpoint<?> endpoint,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Create a new
EndpointMBean instance. |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
convert(Object data)
Convert the given data into JSON.
|
Endpoint<?> |
getEndpoint() |
String |
getEndpointClass() |
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. |
String |
getIdentity()
Return the MBean identity for this endpoint.
|
boolean |
isEnabled()
Return if the JMX endpoint is enabled.
|
boolean |
isSensitive() |
public EndpointMBean(String beanName, Endpoint<?> endpoint, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
EndpointMBean instance.beanName - the bean nameendpoint - the endpoint to wrapobjectMapper - the ObjectMapper used to convert the payload@ManagedAttribute(description="Returns the class of the underlying endpoint") public String getEndpointClass()
public boolean isEnabled()
JmxEndpointisEnabled in interface JmxEndpoint@ManagedAttribute(description="Indicates whether the underlying endpoint exposes sensitive information") public boolean isSensitive()
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 JmxEndpointpublic Endpoint<?> getEndpoint()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.