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 Reader
createProcessErrReader()
protected Reader
createProcessOutReader()
protected void
destroyProcessImpl()
boolean
detachIsDefault()
protected void
detachProcessImpl()
protected Future<?>
executeOnPooledThread(Runnable task)
Override this method in order to execute the task with a custom poolCharset
getCharset()
String
getCommandLine()
Process
getProcess()
OutputStream
getProcessInput()
protected void
onOSProcessTerminated(int exitCode)
protected static void
shutdownExecutorService()
void
startNotify()
-
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:
startNotify
in classProcessHandler
-
onOSProcessTerminated
protected void onOSProcessTerminated(int exitCode)
-
createProcessOutReader
protected Reader createProcessOutReader()
-
createProcessErrReader
protected Reader createProcessErrReader()
-
destroyProcessImpl
protected void destroyProcessImpl()
- Specified by:
destroyProcessImpl
in classProcessHandler
-
detachProcessImpl
protected void detachProcessImpl()
- Specified by:
detachProcessImpl
in classProcessHandler
-
detachIsDefault
public boolean detachIsDefault()
- Specified by:
detachIsDefault
in classProcessHandler
-
getProcessInput
public OutputStream getProcessInput()
- Specified by:
getProcessInput
in classProcessHandler
-
getCommandLine
public String getCommandLine()
-
getCharset
public Charset getCharset()
-
-