java.lang.Object
io.helidon.servicecommon.rest.HelidonRestServiceSupport
io.helidon.health.HealthSupport
- All Implemented Interfaces:
RestServiceSupport
,Service
Health check support for integration with webserver, to expose the health endpoint.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Default web context root of the Health check endpoint. -
Method Summary
Modifier and TypeMethodDescriptionstatic HealthSupport.Builder
builder()
Get a builder to configure health support instance.static HealthSupport
create()
Create a new HealthSupport with no health checks configured.static HealthSupport
Create a new HealthSupport with no health checks, configured from provided config.protected void
postConfigureEndpoint
(Routing.Rules defaultRules, Routing.Rules serviceEndpointRoutingRules) Concrete implementations override this method to perform any service-specific routing set-up.void
update
(Routing.Rules rules) UpdatesRouting.Rules
withhandlers
representing this service.Methods inherited from class io.helidon.servicecommon.rest.HelidonRestServiceSupport
configureEndpoint, context, logger, onShutdown
-
Field Details
-
DEFAULT_WEB_CONTEXT
Default web context root of the Health check endpoint.- See Also:
-
-
Method Details
-
update
Description copied from interface:Service
UpdatesRouting.Rules
withhandlers
representing this service.- Parameters:
rules
- a routing rules to update
-
postConfigureEndpoint
protected void postConfigureEndpoint(Routing.Rules defaultRules, Routing.Rules serviceEndpointRoutingRules) Description copied from class:HelidonRestServiceSupport
Concrete implementations override this method to perform any service-specific routing set-up.- Specified by:
postConfigureEndpoint
in classHelidonRestServiceSupport
- Parameters:
defaultRules
- defaultRouting.Rules
to be updatedserviceEndpointRoutingRules
- actual rules (if different from the default ones) to be updated for the service endpoint
-
builder
Get a builder to configure health support instance.- Returns:
- fluent API builder
-
create
Create a new HealthSupport with no health checks configured. The endpoint will always returnUP
.- Returns:
- health support configured with no health checks
-
create
Create a new HealthSupport with no health checks, configured from provided config. The endpoint will always returnUP
.- Parameters:
config
- configuration of this health check, used only to getweb-context
property to configureHelidonRestServiceSupport.Builder.webContext(String)
- Returns:
- health support configured with no health checks
-