Merge branch '2.0.x'
This commit is contained in:
@@ -72,7 +72,6 @@ public class EndpointMBean implements DynamicMBean {
|
||||
this.operations = getOperations(endpoint);
|
||||
}
|
||||
|
||||
|
||||
private Map<String, JmxOperation> getOperations(ExposableJmxEndpoint endpoint) {
|
||||
Map<String, JmxOperation> operations = new HashMap<>();
|
||||
endpoint.getOperations()
|
||||
@@ -94,7 +93,8 @@ public class EndpointMBean implements DynamicMBean {
|
||||
+ "' has no operation named " + actionName;
|
||||
throw new ReflectionException(new IllegalArgumentException(message), message);
|
||||
}
|
||||
ClassLoader previousClassLoader = overrideThreadContextClassLoader(this.classLoader);
|
||||
ClassLoader previousClassLoader = overrideThreadContextClassLoader(
|
||||
this.classLoader);
|
||||
try {
|
||||
return invoke(operation, params);
|
||||
}
|
||||
|
||||
@@ -33,8 +33,8 @@ public abstract class AbstractHealthAggregator implements HealthAggregator {
|
||||
|
||||
@Override
|
||||
public final Health aggregate(Map<String, Health> healths) {
|
||||
List<Status> statusCandidates = healths.values().stream()
|
||||
.map(Health::getStatus).collect(Collectors.toList());
|
||||
List<Status> statusCandidates = healths.values().stream().map(Health::getStatus)
|
||||
.collect(Collectors.toList());
|
||||
Status status = aggregateStatus(statusCandidates);
|
||||
Map<String, Object> details = aggregateDetails(healths);
|
||||
return new Health.Builder(status, details).build();
|
||||
|
||||
Reference in New Issue
Block a user