com.bluemarsh.jswat.util
Class ThreadUtils

java.lang.Object
  |
  +--com.bluemarsh.jswat.util.ThreadUtils

public class ThreadUtils
extends java.lang.Object

Provides utility methods for handling threads.

Author:
Nathan Fiedler

Constructor Summary
ThreadUtils()
           
 
Method Summary
static com.sun.jdi.ThreadReference getThreadByID(Session session, java.lang.String identifier)
          Finds a thread in the list of all threads whose unique identifier matches that given.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadUtils

public ThreadUtils()
Method Detail

getThreadByID

public static com.sun.jdi.ThreadReference getThreadByID(Session session,
                                                        java.lang.String identifier)
                                                 throws NotActiveException
Finds a thread in the list of all threads whose unique identifier matches that given.
Parameters:
session - Session in which to look for threads.
identifier - thread identifier, either a decimal number or a String name.
Returns:
ThreadReference, or null if not found.
Throws:
NotActiveException - Thrown if the current session is not active.