com.bluemarsh.jswat.command
Class threadCommand

java.lang.Object
  |
  +--com.bluemarsh.jswat.command.JSwatCommand
        |
        +--com.bluemarsh.jswat.command.threadCommand
Direct Known Subclasses:
threadsCommand

public class threadCommand
extends JSwatCommand

Defines the class that handles the 'thread' command.

Author:
Nathan Fiedler

Fields inherited from class com.bluemarsh.jswat.command.JSwatCommand
logCategory, primitiveTypeNames, swat
 
Constructor Summary
threadCommand()
           
 
Method Summary
protected static java.lang.String buildDescriptor(java.lang.StringBuffer buffer, com.sun.jdi.ThreadReference thrd)
          Builds up a description of the given thread.
 void perform(Session session, com.bluemarsh.util.StringTokenizer args, Log out)
          Perform the 'thread' command.
 
Methods inherited from class com.bluemarsh.jswat.command.JSwatCommand
argumentsMatch, createObject, description, findClassesByPattern, getCommandName, getThreadByID, help, help, missingArgs, receiveInput, resolveOverload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

threadCommand

public threadCommand()
Method Detail

buildDescriptor

protected static java.lang.String buildDescriptor(java.lang.StringBuffer buffer,
                                                  com.sun.jdi.ThreadReference thrd)
Builds up a description of the given thread. This includes the thread ID value, it's full name, and the status of the thread.
Parameters:
buffer - StringBuffer to append description to, if null a buffer will be allocated.
thrd - Thread reference.
Returns:
String containing thread description and status.

perform

public void perform(Session session,
                    com.bluemarsh.util.StringTokenizer args,
                    Log out)
Perform the 'thread' command.
Overrides:
perform in class JSwatCommand
Parameters:
session - JSwat session on which to operate.
args - Tokenized string of command arguments.
out - Output to write messages to.