public class ManagedProcess extends Object implements Closeable
| Modifier and Type | Class and Description |
|---|---|
class |
ManagedProcess.ManagedProcessException |
| Constructor and Description |
|---|
ManagedProcess(File executionDirectory,
List<String> commands,
String name) |
ManagedProcess(List<String> commands,
String name) |
ManagedProcess(String name,
String... command) |
ManagedProcess(String command,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
destroy() |
File |
getExecutionDirectory() |
static File |
getLogFolder() |
File |
getProcessErrorLog() |
File |
getProcessOutputLog() |
void |
setExecutionDirectory(File executionDirectory) |
void |
start() |
void |
waitFor(long timeout) |
public ManagedProcess(String command, String name) throws ManagedProcess.ManagedProcessException
public ManagedProcess(String name, String... command) throws ManagedProcess.ManagedProcessException
public ManagedProcess(List<String> commands, String name) throws ManagedProcess.ManagedProcessException
public ManagedProcess(File executionDirectory, List<String> commands, String name) throws ManagedProcess.ManagedProcessException
public static File getLogFolder()
public File getProcessOutputLog()
public File getProcessErrorLog()
public File getExecutionDirectory()
public void setExecutionDirectory(File executionDirectory)
public void start()
throws ManagedProcess.ManagedProcessException
public void waitFor(long timeout)
throws TimeoutException,
InterruptedException,
ExecutionException
public void destroy()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2018. All rights reserved.