java.lang.Object
io.helidon.health.checks.DiskSpaceHealthCheck.Builder
- All Implemented Interfaces:
Builder<DiskSpaceHealthCheck.Builder,
,DiskSpaceHealthCheck> Supplier<DiskSpaceHealthCheck>
- Enclosing class:
DiskSpaceHealthCheck
public static final class DiskSpaceHealthCheck.Builder
extends Object
implements Builder<DiskSpaceHealthCheck.Builder,DiskSpaceHealthCheck>
Fluent API builder for
DiskSpaceHealthCheck
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the instance from this builder.Set up the disk space health check via config keys, if present.Path on the file system to find a file system.Path on the file system to find a file system.thresholdPercent
(double threshold) Threshold percent.
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<DiskSpaceHealthCheck.Builder,
DiskSpaceHealthCheck> - Returns:
- instance of the built type
-
path
Path on the file system to find a file system.- Parameters:
path
- path to use- Returns:
- updated builder instance
- See Also:
-
path
Path on the file system to find a file system.- Parameters:
path
- path to use- Returns:
- updated builder instance
-
thresholdPercent
Threshold percent. When disk is fuller than this percentage, health is switched to down.- Parameters:
threshold
- percentage- Returns:
- updated builder instance
-
config
Set up the disk space health check via config keys, if present. Configuration options:Disk space health check configuration Key Default Value Description Builder method "path" "." Path for the device for which this health checks available space path(Path)
orpath(String)
"thresholdPercent" 99.999 Minimum percent of disk space consumed for this health check to fail thresholdPercent(double)
- Parameters:
config
-Config
node for disk space- Returns:
- updated builder instance
-