public class SwarmProcess extends Object
| Constructor and Description |
|---|
SwarmProcess(Process process,
File processFile,
OutputStream stdout,
Path stdoutFile,
OutputStream stderr,
Path stderrFile) |
SwarmProcess(Process process,
OutputStream stdout,
Path stdoutFile,
OutputStream stderr,
Path stderrFile) |
| Modifier and Type | Method and Description |
|---|---|
void |
awaitReadiness(long timeout,
TimeUnit timeUnit) |
void |
destroy() |
Process |
destroyForcibly() |
int |
exitValue() |
Exception |
getError() |
OutputStream |
getOutputStream() |
boolean |
isAlive() |
int |
stop() |
int |
stop(long timeout,
TimeUnit timeUnit) |
int |
waitFor() |
boolean |
waitFor(long timeout,
TimeUnit unit) |
public SwarmProcess(Process process, OutputStream stdout, Path stdoutFile, OutputStream stderr, Path stderrFile) throws IOException
IOExceptionpublic SwarmProcess(Process process, File processFile, OutputStream stdout, Path stdoutFile, OutputStream stderr, Path stderrFile) throws IOException
IOExceptionpublic Exception getError()
public OutputStream getOutputStream()
public void destroy()
public boolean isAlive()
public Process destroyForcibly()
public int waitFor()
throws InterruptedException
InterruptedExceptionpublic boolean waitFor(long timeout,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionpublic int exitValue()
public void awaitReadiness(long timeout,
TimeUnit timeUnit)
throws InterruptedException
InterruptedExceptionpublic int stop()
throws InterruptedException
InterruptedExceptionpublic int stop(long timeout,
TimeUnit timeUnit)
throws InterruptedException
InterruptedExceptionCopyright © 2017 JBoss by Red Hat. All rights reserved.