public enum DiskSpaceMonitor extends Enum<DiskSpaceMonitor> implements Runnable, Closeable
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Field and Description |
|---|---|
static String |
DISK_SPACE_CHECKER_NAME |
static int |
TIME_TAKEN_WARN_THRESHOLD_US |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
close() |
int |
getThresholdPercentage() |
void |
pollDiskSpace(File file) |
void |
run() |
void |
setThresholdPercentage(int thresholdPercentage) |
protected void |
setTimeProvider(net.openhft.chronicle.core.time.TimeProvider timeProvider) |
static DiskSpaceMonitor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DiskSpaceMonitor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DiskSpaceMonitor INSTANCE
public static final String DISK_SPACE_CHECKER_NAME
public static final int TIME_TAKEN_WARN_THRESHOLD_US
public static DiskSpaceMonitor[] values()
for (DiskSpaceMonitor c : DiskSpaceMonitor.values()) System.out.println(c);
public static DiskSpaceMonitor valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic void clear()
public void pollDiskSpace(File file)
public int getThresholdPercentage()
public void setThresholdPercentage(int thresholdPercentage)
@VisibleForTesting protected void setTimeProvider(net.openhft.chronicle.core.time.TimeProvider timeProvider)
public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2024. All rights reserved.