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
@ImportRuntimeHints(org.springframework.boot.actuate.endpoint.jmx.annotation.JmxEndpointDiscoverer.JmxEndpointDiscovererRuntimeHints.class)
public class JmxEndpointDiscoverer
extends EndpointDiscoverer<ExposableJmxEndpoint, JmxOperation>
implements JmxEndpointsSupplier
- Since:
- 2.0.0
- Author:
- Phillip Webb
-
Nested Class Summary
Nested classes/interfaces inherited from class EndpointDiscoverer
EndpointDiscoverer.OperationKey -
Constructor Summary
ConstructorsConstructorDescriptionJmxEndpointDiscoverer(ApplicationContext applicationContext, ParameterValueMapper parameterValueMapper, Collection<OperationInvokerAdvisor> invokerAdvisors, Collection<EndpointFilter<ExposableJmxEndpoint>> endpointFilters, Collection<OperationFilter<JmxOperation>> operationFilters) Create a newJmxEndpointDiscovererinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected ExposableJmxEndpointcreateEndpoint(Object endpointBean, EndpointId id, Access defaultAccess, Collection<JmxOperation> operations) Factory method called to create theendpoint.protected JmxOperationcreateOperation(EndpointId endpointId, DiscoveredOperationMethod operationMethod, OperationInvoker invoker) Factory method to create anendpoint operation.protected EndpointDiscoverer.OperationKeycreateOperationKey(JmxOperation operation) Create anEndpointDiscoverer.OperationKeyfor the given operation.Methods inherited from class EndpointDiscoverer
getEndpoints, getEndpointType, isEndpointTypeExposed, isExtensionTypeExposed, isInvocableMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EndpointsSupplier
getEndpoints
-
Constructor Details
-
JmxEndpointDiscoverer
public JmxEndpointDiscoverer(ApplicationContext applicationContext, ParameterValueMapper parameterValueMapper, Collection<OperationInvokerAdvisor> invokerAdvisors, Collection<EndpointFilter<ExposableJmxEndpoint>> endpointFilters, Collection<OperationFilter<JmxOperation>> operationFilters) Create a newJmxEndpointDiscovererinstance.- Parameters:
applicationContext- the source application contextparameterValueMapper- the parameter value mapperinvokerAdvisors- invoker advisors to applyendpointFilters- endpoint filters to applyoperationFilters- operation filters to apply- Since:
- 3.4.0
-
-
Method Details
-
createEndpoint
protected ExposableJmxEndpoint createEndpoint(Object endpointBean, EndpointId id, Access defaultAccess, Collection<JmxOperation> operations) Description copied from class:EndpointDiscovererFactory method called to create theendpoint.- Specified by:
createEndpointin classEndpointDiscoverer<ExposableJmxEndpoint, JmxOperation>- Parameters:
endpointBean- the source endpoint beanid- the ID of the endpointdefaultAccess- access to the endpoint that is permitted by defaultoperations- the endpoint operations- Returns:
- a created endpoint (a
DiscoveredEndpointis recommended)
-
createOperation
protected JmxOperation createOperation(EndpointId endpointId, DiscoveredOperationMethod operationMethod, OperationInvoker invoker) Description copied from class:EndpointDiscovererFactory method to create anendpoint operation.- Specified by:
createOperationin classEndpointDiscoverer<ExposableJmxEndpoint, JmxOperation>- Parameters:
endpointId- the endpoint idoperationMethod- the operation methodinvoker- the invoker to use- Returns:
- a created operation
-
createOperationKey
Description copied from class:EndpointDiscovererCreate anEndpointDiscoverer.OperationKeyfor the given operation.- Specified by:
createOperationKeyin classEndpointDiscoverer<ExposableJmxEndpoint, JmxOperation>- Parameters:
operation- the source operation- Returns:
- the operation key
-