@ConfigurationProperties(value="endpoints.health.disk-space") public class DiskSpaceIndicatorConfiguration extends java.lang.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 java.lang.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 |
---|---|
java.io.File |
getPath() |
long |
getThreshold() |
boolean |
isEnabled() |
protected void |
setEnabled(boolean enabled)
Default value (true).
|
protected void |
setPath(java.io.File path)
Default value (".").
|
protected void |
setThreshold(long threshold)
Default value (10485760L => 10MB).
|
public static final boolean DEFAULT_ENABLED
public static final java.lang.String DEFAULT_PATH
public static final long DEFAULT_THRESHOLD
public boolean isEnabled()
isEnabled
in interface Toggleable
protected void setEnabled(boolean enabled)
enabled
- Enable the health indication endpointpublic java.io.File getPath()
protected void setPath(java.io.File path)
path
- The file pathpublic long getThreshold()
protected void setThreshold(@ReadableBytes long threshold)
threshold
- Set the threshold