org.codehaus.aspectwerkz.hook
Class JDWPStarter

java.lang.Object
  extended byorg.codehaus.aspectwerkz.hook.AbstractStarter
      extended byorg.codehaus.aspectwerkz.hook.JDWPStarter

public class JDWPStarter
extends org.codehaus.aspectwerkz.hook.AbstractStarter

Starts a target process adding JDWP option to have a listening connector and be in suspend mode

Target process is launched using $JAVA_HOME/bin/java [opt] [main]
and [opt] is patched to use -Xdebug -Xrunjdwp:transport=..,address=..,server=y,suspend=y

Author:
Alexandre Vasseur

Field Summary
protected  String main
           
protected  String opt
           
 
Constructor Summary
JDWPStarter(String opt, String main, String transport, String address)
           
 
Method Summary
 String getAddress()
           
 String getCommandLine()
          return command line that launched the target process
 String getTransport()
           
 Process launchVM()
          launchs target process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

opt

protected String opt

main

protected String main
Constructor Detail

JDWPStarter

public JDWPStarter(String opt,
                   String main,
                   String transport,
                   String address)
Method Detail

getTransport

public String getTransport()

getAddress

public String getAddress()

getCommandLine

public String getCommandLine()
return command line that launched the target process


launchVM

public Process launchVM()
                 throws IOException
launchs target process

Throws:
IOException


Copyright © 2002-2004 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.