public final class ServerThreadGroup extends ThreadGroup
Modifier and Type | Field and Description |
---|---|
static ThreadGroup |
mainGroup
The main thread group.
|
Modifier and Type | Method and Description |
---|---|
static void |
dumpBasicThreadInfo(ThreadInfo ti,
String linePrefix,
String lineSuffix,
StringBuilder buf)
Gets basic thread information.
|
static void |
dumpMainThreads(StringBuilder buf,
long msElapseTime)
Dumps the thread information for the ThreadGroup recursively.
|
static void |
dumpThread(Thread t,
StringBuilder buf,
long t1,
long t2,
long elapsedTime,
int nCPUs)
Dumps thread information.
|
void |
dumpThreads(StringBuilder buf,
long msElapseTime)
Dumps the thread information for the ThreadGroup recursively.
|
static void |
dumpThreads(ThreadGroup tg,
StringBuilder buf,
long msElapseTime)
Dumps the thread information for the ThreadGroup recursively.
|
ClientConnectionData |
getClientConnectionData()
Gets the client connection data.
|
static ThreadMXBean |
getThreadMXBean()
Gets the ThreadMXBean instance.
|
static ClientConnectionData |
killClientSessionThreadsCCD(long id)
Kills all threads belonging to a client session.
|
static boolean |
stopClientSessionThreads(long id)
Stops all threads belonging to a client session.
|
static boolean |
stopClientSessionThreads(String id)
Stops all processes in a thread group.
|
static ClientConnectionData |
stopClientSessionThreadsCCD(long id)
Stops all threads belonging to a client session.
|
static boolean |
timeEnableThreadCPU(boolean on)
Try enabling time for dumping threads.
|
void |
uncaughtException(Thread t,
Throwable e)
Called by the Java Virtual Machine when a thread in this
thread group stops because of an uncaught exception.
|
activeCount, activeGroupCount, allowThreadSuspension, checkAccess, destroy, enumerate, enumerate, enumerate, enumerate, getMaxPriority, getName, getParent, interrupt, isDaemon, isDestroyed, list, parentOf, resume, setDaemon, setMaxPriority, stop, suspend, toString
public static final ThreadGroup mainGroup
public static ThreadMXBean getThreadMXBean()
public static boolean stopClientSessionThreads(String id)
This method then calls the stop method on all the threads in this thread group and in all of its subgroups.
This means that all threads in the group are stopped with the method Thread.stop which is said to be unsafe. So calling this method MUST be done with care.
public static boolean stopClientSessionThreads(long id)
This means that all threads in the group are stopped with the method Thread.stop which is said to be unsafe. So calling this method MUST be done with care.
public static ClientConnectionData stopClientSessionThreadsCCD(long id)
This means that all threads in the group are stopped with the method Thread.stop which is said to be unsafe. So calling this method MUST be done with care.
public static ClientConnectionData killClientSessionThreadsCCD(long id)
public final ClientConnectionData getClientConnectionData()
public void uncaughtException(Thread t, Throwable e)
The uncaughtException method of ThreadGroup does the following:
uncaughtException
in interface Thread.UncaughtExceptionHandler
uncaughtException
in class ThreadGroup
public static void dumpMainThreads(StringBuilder buf, long msElapseTime)
buf
- The string buffer to fill.msElapseTime
- The time to elapse between measurements in milliseconds, zero not to measure time
(i.e. CPU consumption).public void dumpThreads(StringBuilder buf, long msElapseTime)
buf
- The string buffer to fill.msElapseTime
- The time to elapse between measurements in milliseconds, zero not to measure time
(i.e. CPU consumption).public static boolean timeEnableThreadCPU(boolean on)
public static void dumpThreads(ThreadGroup tg, StringBuilder buf, long msElapseTime)
buf
- The string buffer to fill.msElapseTime
- The time to elapse between measurements in milliseconds, zero not to measure time
(i.e. CPU consumption).public static void dumpThread(Thread t, StringBuilder buf, long t1, long t2, long elapsedTime, int nCPUs)
public static void dumpBasicThreadInfo(ThreadInfo ti, String linePrefix, String lineSuffix, StringBuilder buf)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.