| Modifier and Type | Class and Description |
|---|---|
static class |
ThreadMonitor.Status |
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
ThreadMonitor() |
ThreadMonitor(long threadTimeout) |
| Modifier and Type | Method and Description |
|---|---|
ThreadMonitor.Status |
getStatus(MonitoredThread t) |
int |
getThreadCount(ThreadGroup group,
ThreadMonitor.Status... s)
Return the count of threads that are in any of the statuses
|
int |
getThreadCount(ThreadMonitor.Status... s) |
long |
getThreadTimeout() |
void |
ping(String msg) |
void |
registerThreadStatusListener(ThreadStatusListener listener)
Registers a thread status listener
|
void |
run() |
void |
runNow() |
protected void |
threadStatusChanged(MonitoredThread thread) |
void |
unregisterThreadStatusListener(ThreadStatusListener listener)
Unregisters a thread status listener
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic ThreadMonitor(long threadTimeout)
public ThreadMonitor()
public void registerThreadStatusListener(ThreadStatusListener listener)
public void unregisterThreadStatusListener(ThreadStatusListener listener)
protected void threadStatusChanged(MonitoredThread thread)
public long getThreadTimeout()
public void ping(String msg)
public ThreadMonitor.Status getStatus(MonitoredThread t)
public int getThreadCount(ThreadGroup group, ThreadMonitor.Status... s)
public int getThreadCount(ThreadMonitor.Status... s)
public void runNow()
Copyright © 2016. All rights reserved.