com.mongodb.util
Class ThreadUtil

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

public class ThreadUtil
extends java.lang.Object


Constructor Summary
ThreadUtil()
           
 
Method Summary
static void clearStatus()
           
static void clearStatus(java.lang.Thread t)
           
static FastStack<java.lang.String> getStatus()
           
static FastStack<java.lang.String> getStatus(java.lang.Thread t)
           
static void printStackTrace()
          Creates an prints a stack trace
static void pushStatus(java.lang.String what)
           
static void pushStatus(java.lang.Thread t, java.lang.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(java.lang.String what)

pushStatus

public static void pushStatus(java.lang.Thread t,
                              java.lang.String what)

clearStatus

public static void clearStatus()

clearStatus

public static void clearStatus(java.lang.Thread t)

getStatus

public static FastStack<java.lang.String> getStatus()

getStatus

public static FastStack<java.lang.String> getStatus(java.lang.Thread t)