Class HealthObserverConfig.BuilderBase.HealthObserverConfigImpl
java.lang.Object
io.helidon.webserver.observe.ObserverConfigBase.BuilderBase.ObserverConfigBaseImpl
io.helidon.webserver.observe.health.HealthObserverConfig.BuilderBase.HealthObserverConfigImpl
- All Implemented Interfaces:
Prototype.Api,Prototype.Factory<HealthObserver>,HealthObserverConfig,ObserverConfigBase,Supplier<HealthObserver>
- Enclosing class:
HealthObserverConfig.BuilderBase<BUILDER extends HealthObserverConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends HealthObserverConfig>
protected static class HealthObserverConfig.BuilderBase.HealthObserverConfigImpl
extends ObserverConfigBase.BuilderBase.ObserverConfigBaseImpl
implements HealthObserverConfig, Supplier<HealthObserver>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.webserver.observe.health.HealthObserverConfig
HealthObserverConfig.Builder, HealthObserverConfig.BuilderBase<BUILDER extends HealthObserverConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends HealthObserverConfig> Nested classes/interfaces inherited from interface io.helidon.webserver.observe.ObserverConfigBase
ObserverConfigBase.Builder, ObserverConfigBase.BuilderBase<BUILDER extends ObserverConfigBase.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ObserverConfigBase> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHealthObserverConfigImpl(HealthObserverConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a new instance of the runtime type from this config object.config()Config provided by the user (if any).booleandetails()Whether details should be printed.endpoint()booleanexclude()Health check names to exclude in computing the overall health of the server.get()inthashCode()Health checks with implicit types.name()Name of this observer.toString()booleanWhether to use services discovered byServiceLoader.Methods inherited from class io.helidon.webserver.observe.ObserverConfigBase.BuilderBase.ObserverConfigBaseImpl
enabled, nameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.webserver.observe.ObserverConfigBase
enabled
-
Constructor Details
-
HealthObserverConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
build
Description copied from interface:Prototype.FactoryCreate a new instance of the runtime type from this config object.- Specified by:
buildin interfacePrototype.Factory<HealthObserver>- Returns:
- new configured runtime instance
-
get
- Specified by:
getin interfaceSupplier<HealthObserver>
-
endpoint
- Specified by:
endpointin interfaceHealthObserverConfig
-
details
public boolean details()Description copied from interface:HealthObserverConfigWhether details should be printed. By default, health only returns aStatus.NO_CONTENT_204for success,Status.SERVICE_UNAVAILABLE_503for health down, andStatus.INTERNAL_SERVER_ERROR_500in case of error with no entity. When details are enabled, health returnsStatus.OK_200for success, same codes otherwise and a JSON entity with detailed information about each health check executed.- Specified by:
detailsin interfaceHealthObserverConfig- Returns:
- set to
trueto enable details
-
healthChecks
Description copied from interface:HealthObserverConfigHealth checks with implicit types.- Specified by:
healthChecksin interfaceHealthObserverConfig- Returns:
- health checks to register with the observer
-
useSystemServices
public boolean useSystemServices()Description copied from interface:HealthObserverConfigWhether to use services discovered byServiceLoader. By default, allHealthCheckProviderbased health checks are added.- Specified by:
useSystemServicesin interfaceHealthObserverConfig- Returns:
- set to
falseto disable discovery
-
config
Description copied from interface:HealthObserverConfigConfig provided by the user (if any).- Specified by:
configin interfaceHealthObserverConfig- Returns:
- configuration
-
exclude
Description copied from interface:HealthObserverConfigHealth check names to exclude in computing the overall health of the server.- Specified by:
excludein interfaceHealthObserverConfig- Returns:
- health check names to exclude
-
toString
- Overrides:
toStringin classObserverConfigBase.BuilderBase.ObserverConfigBaseImpl
-
equals
- Overrides:
equalsin classObserverConfigBase.BuilderBase.ObserverConfigBaseImpl
-
hashCode
public int hashCode()- Overrides:
hashCodein classObserverConfigBase.BuilderBase.ObserverConfigBaseImpl
-
name
String name()Description copied from interface:ObserverConfigBaseName of this observer. Each observer should provide its own default for this property.- Specified by:
namein interfaceObserverConfigBase- Returns:
- observer name
-