public class Cmd extends Object
Instances of this class should usually be created using CmdBuilder.
| Constructor and Description |
|---|
Cmd(CmdSettings cmdSettings) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
destroy() |
void |
destroyForcibly() |
void |
execute()
Start the process and wait for it to exit.
|
int |
exitValue() |
boolean |
isExecuting() |
void |
start()
Start the process and return immediately.
|
String |
toString() |
int |
waitFor()
Wait for an already
started process. |
public Cmd(CmdSettings cmdSettings)
public void execute()
throws CmdException
CmdException - in case of an errorCmdInterruptedException - if the waiting thread was
interrupted. The interruption state of the current thread is
set to interrupted.public void start()
throws CmdException
closed or destroyed
at some point in future.CmdException - in case of an errorpublic int waitFor()
throws CmdException,
InterruptedException
started process.CmdException - in case of an errorInterruptedException - if the current thread is interrupted while
waiting for the process to finish.public void close()
public void destroy()
public void destroyForcibly()
public boolean isExecuting()
public int exitValue()
Copyright © 2013–2019 mklinger GmbH. All rights reserved.