Class JmxEndpointDiscoverer
- java.lang.Object
- org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer<ExposableJmxEndpoint,JmxOperation>
- org.springframework.boot.actuate.endpoint.jmx.annotation.JmxEndpointDiscoverer
- All Implemented Interfaces:
EndpointsSupplier<ExposableJmxEndpoint>
,JmxEndpointsSupplier
public class JmxEndpointDiscoverer extends EndpointDiscoverer<ExposableJmxEndpoint,JmxOperation> implements JmxEndpointsSupplier
- Since:
- 2.0.0
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer
EndpointDiscoverer.OperationKey
Constructor Summary
Constructors Constructor Description JmxEndpointDiscoverer(org.springframework.context.ApplicationContext applicationContext, ParameterValueMapper parameterValueMapper, Collection<OperationInvokerAdvisor> invokerAdvisors, Collection<EndpointFilter<ExposableJmxEndpoint>> filters)
Create a newJmxEndpointDiscoverer
instance.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ExposableJmxEndpoint
createEndpoint(Object endpointBean, EndpointId id, boolean enabledByDefault, Collection<JmxOperation> operations)
Factory method called to create theendpoint
.protected JmxOperation
createOperation(EndpointId endpointId, DiscoveredOperationMethod operationMethod, OperationInvoker invoker)
Factory method to create anendpoint operation
.protected EndpointDiscoverer.OperationKey
createOperationKey(JmxOperation operation)
Create anEndpointDiscoverer.OperationKey
for the given operation.Methods inherited from class org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer
getEndpoints, getEndpointType, isEndpointExposed, isExtensionExposed
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.boot.actuate.endpoint.EndpointsSupplier
getEndpoints
Constructor Detail
JmxEndpointDiscoverer
public JmxEndpointDiscoverer(org.springframework.context.ApplicationContext applicationContext, ParameterValueMapper parameterValueMapper, Collection<OperationInvokerAdvisor> invokerAdvisors, Collection<EndpointFilter<ExposableJmxEndpoint>> filters)
Create a newJmxEndpointDiscoverer
instance.- Parameters:
applicationContext
- the source application contextparameterValueMapper
- the parameter value mapperinvokerAdvisors
- invoker advisors to applyfilters
- filters to apply
Method Detail
createEndpoint
protected ExposableJmxEndpoint createEndpoint(Object endpointBean, EndpointId id, boolean enabledByDefault, Collection<JmxOperation> operations)
Description copied from class:EndpointDiscoverer
Factory method called to create theendpoint
.- Specified by:
createEndpoint
in classEndpointDiscoverer<ExposableJmxEndpoint,JmxOperation>
- Parameters:
endpointBean
- the source endpoint beanid
- the ID of the endpointenabledByDefault
- if the endpoint is enabled by defaultoperations
- the endpoint operations- Returns:
- a created endpoint (a
DiscoveredEndpoint
is recommended)
createOperation
protected JmxOperation createOperation(EndpointId endpointId, DiscoveredOperationMethod operationMethod, OperationInvoker invoker)
Description copied from class:EndpointDiscoverer
Factory method to create anendpoint operation
.- Specified by:
createOperation
in classEndpointDiscoverer<ExposableJmxEndpoint,JmxOperation>
- Parameters:
endpointId
- the endpoint idoperationMethod
- the operation methodinvoker
- the invoker to use- Returns:
- a created operation
createOperationKey
protected EndpointDiscoverer.OperationKey createOperationKey(JmxOperation operation)
Description copied from class:EndpointDiscoverer
Create anEndpointDiscoverer.OperationKey
for the given operation.- Specified by:
createOperationKey
in classEndpointDiscoverer<ExposableJmxEndpoint,JmxOperation>
- Parameters:
operation
- the source operation- Returns:
- the operation key