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 String
static final String
static boolean
static final int
static final int
Fields 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 TypeMethodDescriptionint
int
int
static void
void
run()
void
setPollTime
(int sample, int freq) void
setRedThreshold
(int red) void
setYellowThreshold
(int yel) 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
-
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
-