Package com.nt.udc.util
Class CPUMonitor
java.lang.Object
java.lang.Thread
com.nt.udc.util.CPUMonitor
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Stringstatic final Stringstatic booleanstatic final intstatic final intFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionCPUMonitor(int poll) CPUMonitor(String osaHome, int sample, int freq, com.nt.udc.nodemgr.OSANodeMgr nm, Logger log, PerformanceLogger cpuml) -
Method Summary
Modifier and TypeMethodDescriptionintintintstatic voidvoidrun()voidsetPollTime(int sample, int freq) voidsetRedThreshold(int red) voidsetYellowThreshold(int yel) voidshutdown()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
-
DEFAULT_CMD
- See Also:
-
CMD
-
FIRST
public static boolean FIRST -
RED_THRESHOLD
public static final int RED_THRESHOLD- See Also:
-
YELLOW_THRESHOLD
public static final int YELLOW_THRESHOLD- See Also:
-
-
Constructor Details
-
CPUMonitor
public CPUMonitor(int poll) -
CPUMonitor
public CPUMonitor(String osaHome, int sample, int freq, com.nt.udc.nodemgr.OSANodeMgr nm, Logger log, PerformanceLogger cpuml)
-
-
Method Details
-
setRedThreshold
public void setRedThreshold(int red) -
getRedThreshold
public int getRedThreshold() -
setYellowThreshold
public void setYellowThreshold(int yel) -
getYellowThreshold
public int getYellowThreshold() -
setPollTime
public void setPollTime(int sample, int freq) -
getPollTime
public int getPollTime() -
run
public void run() -
shutdown
public void shutdown() -
main
-