com.mongodb.util
Class ThreadUtil

java.lang.Object
  extended by com.mongodb.util.ThreadUtil

public class ThreadUtil
extends Object


Constructor Summary
ThreadUtil()
           
 
Method Summary
static void clearStatus()
           
static void clearStatus(Thread t)
           
static FastStack<String> getStatus()
           
static FastStack<String> getStatus(Thread t)
           
static void printStackTrace()
          Creates an prints a stack trace
static void pushStatus(String what)
           
static void pushStatus(Thread t, String what)
           
static void sleep(long time)
          Pauses for a given number of milliseconds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadUtil

public ThreadUtil()
Method Detail

printStackTrace

public static void printStackTrace()
Creates an prints a stack trace


sleep

public static void sleep(long time)
Pauses for a given number of milliseconds

Parameters:
time - number of milliseconds for which to pause

pushStatus

public static void pushStatus(String what)

pushStatus

public static void pushStatus(Thread t,
                              String what)

clearStatus

public static void clearStatus()

clearStatus

public static void clearStatus(Thread t)

getStatus

public static FastStack<String> getStatus()

getStatus

public static FastStack<String> getStatus(Thread t)