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()
JmxEndpoint
isEnabled
in interface JmxEndpoint
@ManagedAttribute(description="Indicates whether the underlying endpoint exposes sensitive information") public boolean isSensitive()
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
public Endpoint<?> getEndpoint()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.