|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Process
org.eclipse.ptp.remote.core.AbstractRemoteProcess
public abstract class AbstractRemoteProcess
Abstract base class for remote processes. Implementors can use this class to provide a default remote process implementation.
| Constructor Summary | |
|---|---|
AbstractRemoteProcess()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Terminate the process |
int |
exitValue()
Returns the exit value for the process |
InputStream |
getErrorStream()
Gets the error output stream of the process |
InputStream |
getInputStream()
Gets an InputStream which can be used to read the standard output stream of the process |
OutputStream |
getOutputStream()
Gets an output stream which can be used to write to the standard input stream of the process |
boolean |
isCompleted()
Check if the remote process has completed |
int |
waitFor()
Wait until the process has terminated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractRemoteProcess()
| Method Detail |
|---|
public void destroy()
IRemoteProcess
destroy in interface IRemoteProcessdestroy in class Processpublic int exitValue()
IRemoteProcess
exitValue in interface IRemoteProcessexitValue in class Processpublic InputStream getErrorStream()
IRemoteProcess
getErrorStream in interface IRemoteProcessgetErrorStream in class Processpublic InputStream getInputStream()
IRemoteProcess
getInputStream in interface IRemoteProcessgetInputStream in class Processpublic OutputStream getOutputStream()
IRemoteProcess
getOutputStream in interface IRemoteProcessgetOutputStream in class Process
public int waitFor()
throws InterruptedException
IRemoteProcess
waitFor in interface IRemoteProcesswaitFor in class ProcessInterruptedException - if the current thread is
interrupted by another thread while it is waitingpublic boolean isCompleted()
IRemoteProcess
isCompleted in interface IRemoteProcess
|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||