Package com.nt.udc.util
Class DiskMonitor
java.lang.Object
java.lang.Thread
com.nt.udc.util.DiskMonitor
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final String
static final String
static final int
static final int
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorsConstructorDescriptionDiskMonitor
(String part, com.nt.udc.nodemgr.OSANodeMgr nm, Logger log, int poll, PerformanceLogger dml) -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
void
run()
void
setPartition
(String part) void
setPollTime
(int poll) void
setRedThreshold
(int red) void
setYellowThreshold
(int yellow) void
shutdown()
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Field Details
-
YELLOW_THRESHOLD
public static final int YELLOW_THRESHOLD- See Also:
-
RED_THRESHOLD
public static final int RED_THRESHOLD- See Also:
-
ERR_COUNT_MAX
public static final int ERR_COUNT_MAX- See Also:
-
PARTITION_CMD
- See Also:
-
PARTITION_ARG
- See Also:
-
-
Constructor Details
-
DiskMonitor
public DiskMonitor(String part, com.nt.udc.nodemgr.OSANodeMgr nm, Logger log, int poll, PerformanceLogger dml)
-
-
Method Details
-
setPartition
-
getPartition
-
setYellowThreshold
public void setYellowThreshold(int yellow) -
getYellowThreshold
public int getYellowThreshold() -
setRedThreshold
public void setRedThreshold(int red) -
getRedThreshold
public int getRedThreshold() -
setPollTime
public void setPollTime(int poll) -
getPollTime
public int getPollTime() -
run
public void run() -
shutdown
public void shutdown()
-