@Beta public class WindowsProcessGroup extends java.lang.Object implements OsProcess
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
cmd |
private com.sun.jna.platform.win32.WinNT.HANDLE |
hJob |
private Kernel32 |
Kernel32 |
private java.lang.String |
workingDirectory |
| Constructor and Description |
|---|
WindowsProcessGroup(java.lang.String executable,
java.lang.String... args) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkForError() |
void |
copyOutputTo(java.io.OutputStream out) |
int |
destroy() |
void |
executeAsync() |
java.util.Map<java.lang.String,java.lang.String> |
getEnvironment() |
int |
getExitCode() |
java.lang.String |
getStdOut() |
boolean |
isRunning() |
private java.lang.String |
quote(java.lang.String toQuote) |
void |
setEnvironmentVariable(java.lang.String name,
java.lang.String value) |
void |
setInput(java.lang.String allInput) |
void |
setWorkingDirectory(java.io.File workingDirectory) |
void |
waitFor() |
void |
waitFor(long timeout) |
private Kernel32 Kernel32
private java.lang.String cmd
private com.sun.jna.platform.win32.WinNT.HANDLE hJob
private java.lang.String workingDirectory
public WindowsProcessGroup(java.lang.String executable,
java.lang.String... args)
private java.lang.String quote(java.lang.String toQuote)
public java.util.Map<java.lang.String,java.lang.String> getEnvironment()
getEnvironment in interface OsProcesspublic void setEnvironmentVariable(java.lang.String name,
java.lang.String value)
setEnvironmentVariable in interface OsProcesspublic void copyOutputTo(java.io.OutputStream out)
copyOutputTo in interface OsProcesspublic void setInput(java.lang.String allInput)
public void setWorkingDirectory(java.io.File workingDirectory)
setWorkingDirectory in interface OsProcesspublic void executeAsync()
executeAsync in interface OsProcesspublic void waitFor()
throws java.lang.InterruptedException
public void waitFor(long timeout)
throws java.lang.InterruptedException
public void checkForError()
checkForError in interface OsProcesspublic int getExitCode()
getExitCode in interface OsProcess