consciouscode.util
Class VmForker

java.lang.Object
  extended by consciouscode.util.ProcessRunner
      extended by consciouscode.util.VmForker

public class VmForker
extends ProcessRunner


Nested Class Summary
 
Nested classes/interfaces inherited from class consciouscode.util.ProcessRunner
ProcessRunner.StreamCopier
 
Field Summary
static String JVM_PROCESS_TAG
           
 
Fields inherited from class consciouscode.util.ProcessRunner
DEFAULT_PROCESS_TAG, INTERRUPTED
 
Constructor Summary
VmForker(String mainClassName, String[] args)
           
VmForker(String mainClassName, String[] args, String processTag)
           
 
Method Summary
 String getClasspath()
          Gets the classpath that will be provided to the forked VM.
 String[] getCommand()
          Gets the command line that is used for the child process.
 int getVmExitValue()
          Deprecated. Renamed. Use ProcessRunner.getProcessExitValue().
 OutputStream getVmStdIn()
          Deprecated. Renamed. Use ProcessRunner.getProcessStdIn().
 boolean isVmRunning()
          Deprecated. Renamed. Use ProcessRunner.isProcessRunning().
 void setClasspath(String classpath)
           
 
Methods inherited from class consciouscode.util.ProcessRunner
destroy, fork, getDestroyOnShutdown, getProcessExitValue, getProcessStdIn, getProcessTag, isProcessRunning, setDestroyOnShutdown, setProcessTag, setStdErr, setStdOut, waitForExit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JVM_PROCESS_TAG

public static final String JVM_PROCESS_TAG
See Also:
Constant Field Values
Constructor Detail

VmForker

public VmForker(String mainClassName,
                String[] args)

VmForker

public VmForker(String mainClassName,
                String[] args,
                String processTag)
Method Detail

getClasspath

public String getClasspath()
Gets the classpath that will be provided to the forked VM. By default, this property is the same classpath of this VM.


setClasspath

public void setClasspath(String classpath)

getCommand

public String[] getCommand()
Description copied from class: ProcessRunner
Gets the command line that is used for the child process. Subclasses can override this method to compute the command line dynamically.

Overrides:
getCommand in class ProcessRunner

isVmRunning

@Deprecated
public boolean isVmRunning()
Deprecated. Renamed. Use ProcessRunner.isProcessRunning().


getVmStdIn

@Deprecated
public OutputStream getVmStdIn()
Deprecated. Renamed. Use ProcessRunner.getProcessStdIn().


getVmExitValue

@Deprecated
public int getVmExitValue()
Deprecated. Renamed. Use ProcessRunner.getProcessExitValue().



Copyright © 2001–2012 Todd V. Jonker. All Rights Reserved.