java.lang.Object
io.helidon.nima.servicecommon.HelidonFeatureSupport
io.helidon.nima.observe.health.HealthFeature
- All Implemented Interfaces:
FeatureSupport,HttpFeature,ServerLifecycle,Supplier<HttpFeature>
Observe health endpoints.
This service provides endpoints for
Http.Method.GET and
Http.Method.HEAD methods.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic HealthFeature.Builderbuilder()Create a new builder.protected voidstatic HealthFeaturecreate(HealthCheck... healthChecks) Create a new instance with explicit list of health checks.service()If this feature is represented by a service, return it here, to simplify implementation.Methods inherited from class io.helidon.nima.servicecommon.HelidonFeatureSupport
configuredContext, context, enabled, logger, postSetup, setupMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.nima.servicecommon.FeatureSupport
setupMethods inherited from interface io.helidon.nima.webserver.http.HttpFeature
getMethods inherited from interface io.helidon.nima.webserver.ServerLifecycle
afterStop, beforeStart
-
Method Details
-
builder
Create a new builder.- Returns:
- new builder to customize configuration
-
create
Create a new instance with explicit list of health checks. Discover throughServiceLoaderwill be disabled.- Parameters:
healthChecks- health checks to use- Returns:
- a new health observer
-
service
Description copied from interface:FeatureSupportIf this feature is represented by a service, return it here, to simplify implementation. Otherwise you will need to implementFeatureSupport.setup(HttpRouting.Builder, HttpRouting.Builder).- Returns:
- service if implemented
-
context
- Overrides:
contextin classHelidonFeatureSupport
-