Package com.intellij.execution.process
Class OSProcessHandler
- java.lang.Object
-
- com.intellij.openapi.util.UserDataHolderBase
-
- com.intellij.execution.process.ProcessHandler
-
- com.intellij.execution.process.OSProcessHandler
-
- All Implemented Interfaces:
UserDataHolder,UserDataHolderEx,Cloneable
- Direct Known Subclasses:
CapturingProcessHandler
public class OSProcessHandler extends ProcessHandler
-
-
Field Summary
-
Fields inherited from class com.intellij.execution.process.ProcessHandler
SILENTLY_DESTROY_ON_CLOSE
-
-
Constructor Summary
Constructors Constructor Description OSProcessHandler(Process process, String commandLine)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ReadercreateProcessErrReader()protected ReadercreateProcessOutReader()protected voiddestroyProcessImpl()booleandetachIsDefault()protected voiddetachProcessImpl()protected Future<?>executeOnPooledThread(Runnable task)Override this method in order to execute the task with a custom poolCharsetgetCharset()StringgetCommandLine()ProcessgetProcess()OutputStreamgetProcessInput()protected voidonOSProcessTerminated(int exitCode)protected static voidshutdownExecutorService()voidstartNotify()-
Methods inherited from class com.intellij.execution.process.ProcessHandler
addProcessListener, destroyProcess, detachProcess, isProcessTerminated, isProcessTerminating, isStartNotified, notifyProcessDetached, notifyProcessTerminated, notifyTextAvailable, removeProcessListener, waitFor, waitFor
-
Methods inherited from class com.intellij.openapi.util.UserDataHolderBase
clearUserData, clone, copyCopyableDataTo, copyUserDataTo, createDataMap, getCopyableUserData, getCopyableUserDataImpl, getUserData, getUserDataString, putCopyableUserData, putCopyableUserDataImpl, putUserData, putUserDataIfAbsent, replace
-
-
-
-
Method Detail
-
executeOnPooledThread
protected Future<?> executeOnPooledThread(Runnable task)
Override this method in order to execute the task with a custom pool- Parameters:
task- a task to run
-
shutdownExecutorService
protected static void shutdownExecutorService()
-
getProcess
public Process getProcess()
-
startNotify
public void startNotify()
- Overrides:
startNotifyin classProcessHandler
-
onOSProcessTerminated
protected void onOSProcessTerminated(int exitCode)
-
createProcessOutReader
protected Reader createProcessOutReader()
-
createProcessErrReader
protected Reader createProcessErrReader()
-
destroyProcessImpl
protected void destroyProcessImpl()
- Specified by:
destroyProcessImplin classProcessHandler
-
detachProcessImpl
protected void detachProcessImpl()
- Specified by:
detachProcessImplin classProcessHandler
-
detachIsDefault
public boolean detachIsDefault()
- Specified by:
detachIsDefaultin classProcessHandler
-
getProcessInput
public OutputStream getProcessInput()
- Specified by:
getProcessInputin classProcessHandler
-
getCommandLine
public String getCommandLine()
-
getCharset
public Charset getCharset()
-
-