Package io.helidon.nima.observe.health
Class HealthObserveProvider
java.lang.Object
io.helidon.nima.observe.health.HealthObserveProvider
- All Implemented Interfaces:
ObserveProvider
ServiceLoader provider implementation for health observe provider.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConfiguration key of this provider.static ObserveProvidercreate()Create a new instance with health checks discovered throughServiceLoader.static ObserveProvidercreate(HealthFeature service) Create using a configured observer.Default endpoint of this provider.voidregister(Config config, String componentPath, HttpRouting.Builder routing) Register the provider's services and handlers to the routing builder.
-
Constructor Details
-
HealthObserveProvider
Deprecated.usecreate(HealthFeature)orcreate()instead.Default constructor required byServiceLoader. Do not use.
-
-
Method Details
-
create
Create a new instance with health checks discovered throughServiceLoader.- Returns:
- a new provider
-
create
Create using a configured observer. In this case configuration provided by theObserveFeatureis ignored except for the reserved optionendpoint).- Parameters:
service- service to use- Returns:
- a new provider based on the observer
-
configKey
Description copied from interface:ObserveProviderConfiguration key of this provider. The following keys are reserved by Observe support:enabled- enable/disable the serviceendpoint- endpoint, if starts with/then absolute, otherwise relative to observe endpoint
- Specified by:
configKeyin interfaceObserveProvider- Returns:
- configuration key of this provider (such as
health)
-
defaultEndpoint
Description copied from interface:ObserveProviderDefault endpoint of this provider. To define a relative path, do not include forward slash (such ashealthwould resolve into/observe/health).- Specified by:
defaultEndpointin interfaceObserveProvider- Returns:
- default endpoint under
/observe
-
register
Description copied from interface:ObserveProviderRegister the provider's services and handlers to the routing builder. The component MUST honor the provided component path.- Specified by:
registerin interfaceObserveProvider- Parameters:
config- configuration of this providercomponentPath- component path to register under (such as/observe/health, based on configured endpoint andObserveProvider.defaultEndpoint())routing- routing builder
-
create(HealthFeature)orcreate()instead.