public class JournalSpaceMonitor extends java.lang.Object implements HeartbeatExecutor
| Constructor and Description |
|---|
JournalSpaceMonitor(AlluxioConfiguration configuration)
Convenience method for
JournalSpaceMonitor(String, long). |
JournalSpaceMonitor(java.lang.String journalPath,
long warnCapacityPercentThreshold) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected java.util.List<JournalDiskInfo> |
getDiskInfo()
Gets the current disk information from the system for the journal path.
|
java.util.List<java.lang.String> |
getJournalDiskWarnings() |
void |
heartbeat() |
public JournalSpaceMonitor(AlluxioConfiguration configuration)
JournalSpaceMonitor(String, long).configuration - the current alluxio configurationpublic JournalSpaceMonitor(java.lang.String journalPath,
long warnCapacityPercentThreshold)
journalPath - the path to the journal locationwarnCapacityPercentThreshold - when a device utilization falls below this threshold,
emit warnings to the logprotected java.util.List<JournalDiskInfo> getDiskInfo() throws java.io.IOException
java.io.IOException - when obtaining the disk information failspublic java.util.List<java.lang.String> getJournalDiskWarnings()
public void heartbeat()
throws java.lang.InterruptedException
heartbeat in interface HeartbeatExecutorjava.lang.InterruptedExceptionpublic void close()
close in interface HeartbeatExecutorclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableCopyright © 2021. All Rights Reserved.