Class DiskSpaceHealthIndicator
java.lang.Object
com.kingsrook.qqq.middleware.health.indicators.DiskSpaceHealthIndicator
- All Implemented Interfaces:
HealthIndicator
Health indicator that checks available disk space.
This indicator:
- Checks free space at a specified path
- Returns DOWN if below minimum threshold
- Returns DEGRADED if space is low but above minimum
- Configurable path and minimum free bytes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExecute the disk space health checkGetter for minimumFreeBytesgetName()Get the name of this health indicatorgetPath()Getter for pathvoidsetMinimumFreeBytes(Long minimumFreeBytes) Setter for minimumFreeBytesvoidSetter for pathwithMinimumFreeBytes(Long minimumFreeBytes) Fluent setter for minimumFreeBytesFluent setter for path
-
Constructor Details
-
DiskSpaceHealthIndicator
public DiskSpaceHealthIndicator()Constructor
-
-
Method Details
-
getName
Get the name of this health indicator- Specified by:
getNamein interfaceHealthIndicator- Returns:
- indicator name (e.g., "database", "memory", "diskSpace")
-
check
Execute the disk space health check- Specified by:
checkin interfaceHealthIndicator- Parameters:
qInstance- the QInstance for accessing backends, configuration, etc.- Returns:
- health check result with status and details
- Throws:
QException- if the check fails catastrophically
-
withPath
Fluent setter for path -
withMinimumFreeBytes
Fluent setter for minimumFreeBytes -
getPath
Getter for path -
setPath
Setter for path -
getMinimumFreeBytes
Getter for minimumFreeBytes -
setMinimumFreeBytes
Setter for minimumFreeBytes
-