public class BaseRemoteProcessHandler<T extends RemoteProcess> extends BaseProcessHandler<T>
myCharset, myCommandLine, myPresentableName, myProcess, myWaitFor
SILENTLY_DESTROY_ON_CLOSE, TERMINATION_REQUESTED
Constructor and Description |
---|
BaseRemoteProcessHandler(T process,
java.lang.String commandLine,
java.nio.charset.Charset charset) |
Modifier and Type | Method and Description |
---|---|
protected void |
destroyProcessImpl()
Performs process destruction.
|
java.util.concurrent.Future<?> |
executeTask(java.lang.Runnable task) |
protected void |
onOSProcessTerminated(int exitCode) |
protected BaseOutputReader.Options |
readerOptions()
Override this method to fine-tune
BaseOutputReader behavior. |
void |
startNotify() |
closeStreams, detachIsDefault, detachProcessImpl, doDestroyProcess, getCharset, getCommandLine, getProcess, getProcessInput
addProcessListener, addProcessListener, destroyProcess, detachProcess, getExitCode, isProcessTerminated, isProcessTerminating, isSilentlyDestroyOnClose, isStartNotified, notifyProcessDetached, notifyProcessTerminated, notifyTextAvailable, removeProcessListener, waitFor, waitFor
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
public BaseRemoteProcessHandler(T process, java.lang.String commandLine, java.nio.charset.Charset charset)
protected BaseOutputReader.Options readerOptions()
BaseOutputReader
behavior.protected void destroyProcessImpl()
ProcessHandler
This is an internal implementation of ProcessHandler.destroyProcess()
. All sub-classes must implement this method and perform the
destruction in this method. This method is called from ProcessHandler.destroyProcess()
and it can be in any thread including the
event dispatcher thread. You should avoid doing any expensive operation directly in this method. Instead, you may post the work to
background thread and return without waiting for it. If the performed destruction led to process termination,
ProcessHandler.notifyProcessTerminated(int)
must be called in any thread (not necessary from this method).
destroyProcessImpl
in class BaseProcessHandler<T extends RemoteProcess>
protected void onOSProcessTerminated(int exitCode)
onOSProcessTerminated
in class BaseProcessHandler<T extends RemoteProcess>
public void startNotify()
startNotify
in class ProcessHandler
public java.util.concurrent.Future<?> executeTask(java.lang.Runnable task)