@Singleton @Requires(property="endpoints.health.disk-space.enabled",notEquals="false") @Requires(beans=HealthEndpoint.class) public class DiskSpaceIndicator extends AbstractHealthIndicator<java.util.Map<java.lang.String,java.lang.Object>>
A HealthIndicator used to display information about the disk
space of the server. Returns HealthStatus.DOWN if the free space is less than the configured threshold.
DiskSpaceIndicatorConfiguration.threshold| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
NAME |
executorService, healthStatusHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
getHealthInformation()
Provides information (typically a Map) to be returned.
|
java.lang.String |
getName()
Used to populate the
HealthResult. |
getHealthResult, getResult, setExecutorServiceprotected static final java.lang.String NAME
public java.lang.String getName()
AbstractHealthIndicatorHealthResult. Provides a key to go along with the health information.getName in class AbstractHealthIndicator<java.util.Map<java.lang.String,java.lang.Object>>protected java.util.Map<java.lang.String,java.lang.Object> getHealthInformation()
AbstractHealthIndicatorAbstractHealthIndicator.healthStatus field during execution,
otherwise HealthStatus.UNKNOWN will be used.getHealthInformation in class AbstractHealthIndicator<java.util.Map<java.lang.String,java.lang.Object>>