|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crosswire.common.util.ThreadUtil
public final class ThreadUtil
Various utilities for examining the running Threads and controlling their execution.
for license details.
The copyright to this program is held by it's authors.| Field Summary | |
|---|---|
private static String |
PADDING
|
| Constructor Summary | |
|---|---|
private |
ThreadUtil()
Prevent Instansiation |
| Method Summary | |
|---|---|
private static void |
addItem(List list,
int depth,
String item)
Private, used by getListing. |
static ThreadGroup |
findRoot()
Find the root ThreadGroup by ascending the Thread tree |
static String[] |
getListing()
Create a StringArray (mostly for debugging) detailing the current Threads, starting at the root ThreadGroup |
static String[] |
getListing(ThreadGroup base)
Create a StringArray (mostly for debugging) detailing the current Threads, starting at the specified ThreadGroup |
private static void |
listThread(List list,
int depth,
Thread thread)
Private, used by getListing. |
private static void |
listThreads(List list,
int depth,
ThreadGroup group)
Private, used by getListing. |
static void |
soundSleep(long millis)
Sleep and don't think about throwing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final String PADDING
| Constructor Detail |
|---|
private ThreadUtil()
| Method Detail |
|---|
public static void soundSleep(long millis)
millis - The length of time to wait in millisecondsInterruptedExceptionpublic static ThreadGroup findRoot()
public static String[] getListing()
public static String[] getListing(ThreadGroup base)
base - The ThreadGroup to detail
private static void listThreads(List list,
int depth,
ThreadGroup group)
list - The List to add to.depth - The current recursion depthgroup - The ThreadGroup to detail
private static void listThread(List list,
int depth,
Thread thread)
list - The List to add to.depth - The current recursion depththread - The Thread to detail
private static void addItem(List list,
int depth,
String item)
list - The List to add to.depth - The current recursion depth
|
Copyright ? 2003-2006 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||