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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault web context root of the Health check endpoint. -
Method Summary
Modifier and TypeMethodDescriptionstatic HealthSupport.Builderbuilder()Get a builder to configure health support instance.static HealthSupportcreate()Create a new HealthSupport with no health checks configured.static HealthSupportCreate a new HealthSupport with no health checks, configured from provided config.protected voidpostConfigureEndpoint(Routing.Rules defaultRules, Routing.Rules serviceEndpointRoutingRules) Concrete implementations override this method to perform any service-specific routing set-up.voidupdate(Routing.Rules rules) UpdatesRouting.Ruleswithhandlersrepresenting 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:ServiceUpdatesRouting.Ruleswithhandlersrepresenting this service.- Parameters:
rules- a routing rules to update
-
postConfigureEndpoint
protected void postConfigureEndpoint(Routing.Rules defaultRules, Routing.Rules serviceEndpointRoutingRules) Description copied from class:HelidonRestServiceSupportConcrete implementations override this method to perform any service-specific routing set-up.- Specified by:
postConfigureEndpointin classHelidonRestServiceSupport- Parameters:
defaultRules- defaultRouting.Rulesto 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-contextproperty to configureHelidonRestServiceSupport.Builder.webContext(String)- Returns:
- health support configured with no health checks
-