public class RunProcess
extends java.lang.Object
| Constructor | Description |
|---|---|
RunProcess(java.lang.String... command) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Process |
getRunningProcess() |
Return the running process.
|
boolean |
handleSigInt() |
Return if the process was stopped.
|
boolean |
hasJustEnded() |
|
void |
kill() |
Kill this process.
|
int |
run(boolean waitForProcess,
java.lang.String... args) |
|
protected int |
run(boolean waitForProcess,
java.util.Collection<java.lang.String> args) |
public int run(boolean waitForProcess,
java.lang.String... args)
throws java.io.IOException
java.io.IOExceptionprotected int run(boolean waitForProcess,
java.util.Collection<java.lang.String> args)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.Process getRunningProcess()
nullpublic boolean handleSigInt()
true if stoppedpublic void kill()
public boolean hasJustEnded()
Copyright © 2018. All rights reserved.