@EndpointWebExtension(endpoint=HealthEndpoint.class) public class HealthEndpointWebExtension extends Object
@EndpointWebExtension
for the HealthEndpoint
.Constructor and Description |
---|
HealthEndpointWebExtension(HealthContributorRegistry registry,
HealthEndpointGroups groups)
Create a new
HealthEndpointWebExtension instance. |
HealthEndpointWebExtension(HealthEndpoint delegate,
HealthWebEndpointResponseMapper responseMapper)
Deprecated.
since 2.2.0 in favor of
HealthEndpointWebExtension(HealthContributorRegistry, HealthEndpointGroups) |
Modifier and Type | Method and Description |
---|---|
protected HealthComponent |
aggregateContributions(Map<String,HealthComponent> contributions,
StatusAggregator statusAggregator,
boolean includeDetails,
Set<String> groupNames) |
protected CompositeHealth |
getCompositeHealth(Map<String,HealthComponent> components,
StatusAggregator statusAggregator,
boolean includeDetails,
Set<String> groupNames) |
protected HealthComponent |
getHealth(HealthContributor contributor,
boolean includeDetails) |
WebEndpointResponse<HealthComponent> |
health(SecurityContext securityContext) |
WebEndpointResponse<HealthComponent> |
health(SecurityContext securityContext,
boolean alwaysIncludeDetails,
String... path) |
WebEndpointResponse<HealthComponent> |
health(SecurityContext securityContext,
String... path) |
@Deprecated public HealthEndpointWebExtension(HealthEndpoint delegate, HealthWebEndpointResponseMapper responseMapper)
HealthEndpointWebExtension(HealthContributorRegistry, HealthEndpointGroups)
HealthEndpointWebExtension
instance using a delegate endpoint.delegate
- the delegate endpointresponseMapper
- the response mapperpublic HealthEndpointWebExtension(HealthContributorRegistry registry, HealthEndpointGroups groups)
HealthEndpointWebExtension
instance.registry
- the health contributor registrygroups
- the health endpoint groups@ReadOperation public WebEndpointResponse<HealthComponent> health(SecurityContext securityContext)
@ReadOperation public WebEndpointResponse<HealthComponent> health(SecurityContext securityContext, @Selector(match=ALL_REMAINING) String... path)
public WebEndpointResponse<HealthComponent> health(SecurityContext securityContext, boolean alwaysIncludeDetails, String... path)
protected HealthComponent getHealth(HealthContributor contributor, boolean includeDetails)
protected HealthComponent aggregateContributions(Map<String,HealthComponent> contributions, StatusAggregator statusAggregator, boolean includeDetails, Set<String> groupNames)
protected final CompositeHealth getCompositeHealth(Map<String,HealthComponent> components, StatusAggregator statusAggregator, boolean includeDetails, Set<String> groupNames)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.