@ConfigurationProperties(value="endpoints.health.disk-space") public class DiskSpaceIndicatorConfiguration extends Object implements Toggleable
Specific configuration properties for the disk space health indicator.
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static String |
DEFAULT_PATH
The default path value.
|
static long |
DEFAULT_THRESHOLD
The default threshold value.
|
| Constructor and Description |
|---|
DiskSpaceIndicatorConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
File |
getPath() |
long |
getThreshold() |
boolean |
isEnabled() |
protected void |
setEnabled(boolean enabled)
Default value (true).
|
protected void |
setPath(File path)
Default value (".").
|
protected void |
setThreshold(long threshold)
Default value (10485760L => 10MB).
|
public static final boolean DEFAULT_ENABLED
public static final String DEFAULT_PATH
public static final long DEFAULT_THRESHOLD
public boolean isEnabled()
isEnabled in interface Toggleableprotected void setEnabled(boolean enabled)
enabled - Enable the health indication endpointpublic File getPath()
public long getThreshold()
protected void setThreshold(@ReadableBytes long threshold)
threshold - Set the threshold