Package com.nt.udc.util
Class MemoryMonitor
java.lang.Object
java.lang.Thread
com.nt.udc.util.MemoryMonitor
- 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 final int
static final int
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorsConstructorDescriptionMemoryMonitor
(int sample, int freq, com.nt.udc.nodemgr.OSANodeMgr nm, Logger log, PerformanceLogger pLog) -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
void
run()
void
setLogging
(boolean log) void
setMajorThreshold
(int threshold) void
setPollTime
(int sample, int freq) void
setWarningThreshold
(int threshold) 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
-
MAJOR_THRESHOLD
public static final int MAJOR_THRESHOLD- See Also:
-
WARNING_THRESHOLD
public static final int WARNING_THRESHOLD- See Also:
-
-
Constructor Details
-
MemoryMonitor
public MemoryMonitor(int sample, int freq, com.nt.udc.nodemgr.OSANodeMgr nm, Logger log, PerformanceLogger pLog)
-
-
Method Details
-
setMajorThreshold
public void setMajorThreshold(int threshold) -
getMajorThreshold
public int getMajorThreshold() -
setWarningThreshold
public void setWarningThreshold(int threshold) -
getWarningThreshold
public int getWarningThreshold() -
setPollTime
public void setPollTime(int sample, int freq) -
getPollTime
public int getPollTime() -
setLogging
public void setLogging(boolean log) -
run
public void run() -
shutdown
public void shutdown()
-