org.kohsuke.youdebug
Class VMFactory

java.lang.Object
  extended by org.kohsuke.youdebug.VMFactory

public class VMFactory
extends Object

Connects to VM in various ways.

Author:
Kohsuke Kawaguchi

Constructor Summary
VMFactory()
           
 
Method Summary
static VM connectLocal(int pid)
           
static VM connectRemote(String host, int port)
          Connects via a socket
static VM launch(String commandLine)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VMFactory

public VMFactory()
Method Detail

connectRemote

public static VM connectRemote(String host,
                               int port)
                        throws com.sun.jdi.connect.IllegalConnectorArgumentsException,
                               IOException
Connects via a socket

Throws:
com.sun.jdi.connect.IllegalConnectorArgumentsException
IOException

connectLocal

public static VM connectLocal(int pid)
                       throws com.sun.jdi.connect.IllegalConnectorArgumentsException,
                              IOException
Throws:
com.sun.jdi.connect.IllegalConnectorArgumentsException
IOException

launch

public static VM launch(String commandLine)
                 throws com.sun.jdi.connect.IllegalConnectorArgumentsException,
                        IOException,
                        com.sun.jdi.connect.VMStartException
Throws:
com.sun.jdi.connect.IllegalConnectorArgumentsException
IOException
com.sun.jdi.connect.VMStartException


Copyright © 2013. All rights reserved.