com.bluemarsh.jswat.command
Class attachCommand

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

public class attachCommand
extends JSwatCommand

Defines the class that handles the 'attach' command.

Author:
Nathan Fiedler

Fields inherited from class com.bluemarsh.jswat.command.JSwatCommand
logCategory, primitiveTypeNames, swat
 
Constructor Summary
attachCommand()
           
 
Method Summary
protected  VMConnection buildConnection(java.lang.String host, java.lang.String port, Log out)
          Builds the connection parameters object using the given host and port for the remote debuggee VM.
 void perform(Session session, com.bluemarsh.util.StringTokenizer args, Log out)
          Perform the 'attach' 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

attachCommand

public attachCommand()
Method Detail

buildConnection

protected VMConnection buildConnection(java.lang.String host,
                                       java.lang.String port,
                                       Log out)
Builds the connection parameters object using the given host and port for the remote debuggee VM.
Parameters:
host - Host machine name.
port - Port of remote machine.
out - Output to print messages to.
Returns:
VMConnection, or null if error.

perform

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