public class KillableColoredProcessHandler extends ColoredProcessHandler implements KillableProcess
ColoredProcessHandler
)
and "soft-kill" feature (see KillableProcessHandler
).Modifier and Type | Class and Description |
---|---|
static class |
KillableColoredProcessHandler.Silent |
BaseOSProcessHandler.SimpleOutputReader
myCharset, myCommandLine, myPresentableName, myProcess, myWaitFor
SILENTLY_DESTROY_ON_CLOSE, TERMINATION_REQUESTED
Constructor and Description |
---|
KillableColoredProcessHandler(GeneralCommandLine commandLine) |
KillableColoredProcessHandler(GeneralCommandLine commandLine,
boolean withMediator)
|
KillableColoredProcessHandler(java.lang.Process process,
java.lang.String commandLine)
commandLine must not be empty (for correct thread attribution in the stacktrace) |
KillableColoredProcessHandler(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) |
KillableColoredProcessHandler(java.lang.Process process,
java.lang.String commandLine,
java.nio.charset.Charset charset,
java.util.Set<? extends java.io.File> filesToDelete)
commandLine must not be empty (for correct thread attribution in the stacktrace) |
Modifier and Type | Method and Description |
---|---|
static KillableColoredProcessHandler |
create(GeneralCommandLine commandLine)
Deprecated.
|
addColoredTextListener, coloredTextAvailable, notifyColoredListeners, notifyTextAvailable
canKillProcess, destroyProcessGracefully, destroyProcessImpl, doDestroyProcess, killProcess, mediate, notifyProcessTerminated, setShouldKillProcessSoftly, setShouldKillProcessSoftlyWithWinP, shouldKillProcessSoftly
checkEdtAndReadAction, deleteFileOnTermination, getDefaultModality, killProcessTree, onOSProcessTerminated, processCanBeKilledByOS, processHasSeparateErrorStream, readerOptions, setHasPty, setShouldDestroyProcessRecursively, shouldDestroyProcessRecursively, waitFor, waitFor
createErrorDataReader, createOutputDataReader, createProcessErrReader, createProcessOutReader, executeOnPooledThread, executeTask, startNotify, toString
closeStreams, detachIsDefault, detachProcessImpl, getCharset, getCommandLine, getProcess, getProcessInput
addProcessListener, addProcessListener, destroyProcess, detachProcess, getExitCode, isProcessTerminated, isProcessTerminating, isSilentlyDestroyOnClose, isStartNotified, notifyProcessDetached, removeProcessListener
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canKillProcess, killProcess
public KillableColoredProcessHandler(GeneralCommandLine commandLine) throws ExecutionException
ExecutionException
public KillableColoredProcessHandler(GeneralCommandLine commandLine, boolean withMediator) throws ExecutionException
ExecutionException
public KillableColoredProcessHandler(java.lang.Process process, java.lang.String commandLine)
commandLine
must not be empty (for correct thread attribution in the stacktrace)public KillableColoredProcessHandler(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)public KillableColoredProcessHandler(java.lang.Process process, java.lang.String commandLine, java.nio.charset.Charset charset, java.util.Set<? extends java.io.File> filesToDelete)
commandLine
must not be empty (for correct thread attribution in the stacktrace)@Deprecated public static KillableColoredProcessHandler create(GeneralCommandLine commandLine) throws ExecutionException
KillableColoredProcessHandler(GeneralCommandLine, boolean)
ExecutionException