public class JmxEndpointDiscoverer extends EndpointDiscoverer<ExposableJmxEndpoint,JmxOperation> implements JmxEndpointsSupplier
EndpointDiscoverer.OperationKey
Constructor and Description |
---|
JmxEndpointDiscoverer(org.springframework.context.ApplicationContext applicationContext,
ParameterValueMapper parameterValueMapper,
Collection<OperationInvokerAdvisor> invokerAdvisors,
Collection<EndpointFilter<ExposableJmxEndpoint>> filters)
Create a new
JmxEndpointDiscoverer instance. |
Modifier and Type | Method and Description |
---|---|
protected ExposableJmxEndpoint |
createEndpoint(Object endpointBean,
String id,
boolean enabledByDefault,
Collection<JmxOperation> operations)
Factory method called to create the
endpoint . |
protected JmxOperation |
createOperation(String endpointId,
DiscoveredOperationMethod operationMethod,
OperationInvoker invoker)
Factory method to create an
endpoint operation . |
protected EndpointDiscoverer.OperationKey |
createOperationKey(JmxOperation operation)
Create an
EndpointDiscoverer.OperationKey for the given operation. |
getEndpoints, getEndpointType, isEndpointExposed, isExtensionExposed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEndpoints
public JmxEndpointDiscoverer(org.springframework.context.ApplicationContext applicationContext, ParameterValueMapper parameterValueMapper, Collection<OperationInvokerAdvisor> invokerAdvisors, Collection<EndpointFilter<ExposableJmxEndpoint>> filters)
JmxEndpointDiscoverer
instance.applicationContext
- the source application contextparameterValueMapper
- the parameter value mapperinvokerAdvisors
- invoker advisors to applyfilters
- filters to applyprotected ExposableJmxEndpoint createEndpoint(Object endpointBean, String id, boolean enabledByDefault, Collection<JmxOperation> operations)
EndpointDiscoverer
endpoint
.createEndpoint
in class EndpointDiscoverer<ExposableJmxEndpoint,JmxOperation>
endpointBean
- the source endpoint beanid
- the ID of the endpointenabledByDefault
- if the endpoint is enabled by defaultoperations
- the endpoint operationsDiscoveredEndpoint
is recommended)protected JmxOperation createOperation(String endpointId, DiscoveredOperationMethod operationMethod, OperationInvoker invoker)
EndpointDiscoverer
endpoint operation
.createOperation
in class EndpointDiscoverer<ExposableJmxEndpoint,JmxOperation>
endpointId
- the endpoint idoperationMethod
- the operation methodinvoker
- the invoker to useprotected EndpointDiscoverer.OperationKey createOperationKey(JmxOperation operation)
EndpointDiscoverer
EndpointDiscoverer.OperationKey
for the given operation.createOperationKey
in class EndpointDiscoverer<ExposableJmxEndpoint,JmxOperation>
operation
- the source operationCopyright © 2018 Pivotal Software, Inc.. All rights reserved.