public abstract class VM
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
VM.SSH
A remote JVM, launched over SSH.
|
static class |
VM.Watchdog
A VM whose only job is to wait for its parent to be gone, then kill its child process.
|
Constructor and Description |
---|
VM(java.lang.String[] java,
java.lang.String[] args) |
Modifier and Type | Method and Description |
---|---|
static void |
exitWithParent() |
static java.io.File |
h2oFolder() |
void |
inheritIO() |
static void |
inheritIO(java.lang.Process process,
java.lang.String header) |
boolean |
isAlive() |
void |
kill() |
static void |
persistIO(java.lang.Process process,
java.io.File out,
java.io.File err) |
void |
persistIO(java.lang.String out,
java.lang.String err) |
java.lang.Process |
process() |
void |
start() |
int |
waitFor() |
public java.lang.Process process()
public void inheritIO()
public void persistIO(java.lang.String out, java.lang.String err) throws java.io.IOException
java.io.IOException
public void start()
public boolean isAlive()
public int waitFor()
public void kill()
public static void exitWithParent()
public static void inheritIO(java.lang.Process process, java.lang.String header)
public static void persistIO(java.lang.Process process, java.io.File out, java.io.File err) throws java.io.IOException
java.io.IOException
public static java.io.File h2oFolder()