com.bluemarsh.jswat.command
Class threadlocksCommand

java.lang.Object
  |
  +--com.bluemarsh.jswat.command.JSwatCommand
        |
        +--com.bluemarsh.jswat.command.threadlocksCommand

public class threadlocksCommand
extends JSwatCommand

Defines the class that handles the 'threadlocks' command.

Author:
Nathan Fiedler

Fields inherited from class com.bluemarsh.jswat.command.JSwatCommand
logCategory, primitiveTypeNames, swat
 
Constructor Summary
threadlocksCommand()
           
 
Method Summary
 void perform(Session session, com.bluemarsh.util.StringTokenizer args, Log out)
          Perform the 'threadlocks' command.
protected  void printThreadLockInfo(com.sun.jdi.ThreadReference thread, Log out)
          Display thread lock information for the given thread.
 
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

threadlocksCommand

public threadlocksCommand()
Method Detail

perform

public void perform(Session session,
                    com.bluemarsh.util.StringTokenizer args,
                    Log out)
Perform the 'threadlocks' 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.

printThreadLockInfo

protected void printThreadLockInfo(com.sun.jdi.ThreadReference thread,
                                   Log out)
Display thread lock information for the given thread.
Parameters:
thread - Thread of which to display lock info.
out - Output to write to.