public class BaseOSProcessHandler extends BaseProcessHandler<java.lang.Process>
Modifier and Type | Class and Description |
---|---|
protected class |
BaseOSProcessHandler.SimpleOutputReader |
myCharset, myCommandLine, myPresentableName, myProcess, myWaitFor
SILENTLY_DESTROY_ON_CLOSE, TERMINATION_REQUESTED
Constructor and Description |
---|
BaseOSProcessHandler(java.lang.Process process,
java.lang.String commandLine,
java.nio.charset.Charset charset)
commandLine must not be empty (for correct thread attribution in the stacktrace) |
Modifier and Type | Method and Description |
---|---|
protected BaseDataReader |
createErrorDataReader() |
protected BaseDataReader |
createOutputDataReader() |
protected java.io.Reader |
createProcessErrReader() |
protected java.io.Reader |
createProcessOutReader() |
protected java.util.concurrent.Future<?> |
executeOnPooledThread(java.lang.Runnable task)
Deprecated.
override
executeTask(Runnable) instead of this method |
java.util.concurrent.Future<?> |
executeTask(java.lang.Runnable task) |
protected boolean |
processHasSeparateErrorStream() |
protected BaseOutputReader.Options |
readerOptions()
Override this method to fine-tune
BaseOutputReader behavior. |
void |
startNotify() |
java.lang.String |
toString() |
boolean |
waitFor()
Wait for process execution.
|
boolean |
waitFor(long timeoutInMilliseconds) |
closeStreams, destroyProcessImpl, detachIsDefault, detachProcessImpl, doDestroyProcess, getCharset, getCommandLine, getProcess, getProcessInput, onOSProcessTerminated
addProcessListener, addProcessListener, destroyProcess, detachProcess, getExitCode, isProcessTerminated, isProcessTerminating, isSilentlyDestroyOnClose, isStartNotified, notifyProcessDetached, notifyProcessTerminated, notifyTextAvailable, removeProcessListener
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
public BaseOSProcessHandler(java.lang.Process process, java.lang.String commandLine, java.nio.charset.Charset charset)
commandLine
must not be empty (for correct thread attribution in the stacktrace)@Deprecated protected java.util.concurrent.Future<?> executeOnPooledThread(java.lang.Runnable task)
executeTask(Runnable)
instead of this methodtask
- a task to runpublic java.util.concurrent.Future<?> executeTask(java.lang.Runnable task)
protected BaseOutputReader.Options readerOptions()
BaseOutputReader
behavior.protected boolean processHasSeparateErrorStream()
public void startNotify()
startNotify
in class ProcessHandler
protected BaseDataReader createErrorDataReader()
protected BaseDataReader createOutputDataReader()
protected java.io.Reader createProcessOutReader()
protected java.io.Reader createProcessErrReader()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean waitFor()
ProcessHandler
waitFor
in class ProcessHandler
public boolean waitFor(long timeoutInMilliseconds)
waitFor
in class ProcessHandler