public abstract class AbstractRemoteProcess extends Process implements IRemoteProcess
| Constructor and Description |
|---|
AbstractRemoteProcess() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public void destroy()
IRemoteProcessdestroy in interface IRemoteProcessdestroy in class Processpublic int exitValue()
IRemoteProcessexitValue in interface IRemoteProcessexitValue in class Processpublic InputStream getErrorStream()
IRemoteProcessgetErrorStream in interface IRemoteProcessgetErrorStream in class Processpublic InputStream getInputStream()
IRemoteProcessgetInputStream in interface IRemoteProcessgetInputStream in class Processpublic OutputStream getOutputStream()
IRemoteProcessgetOutputStream in interface IRemoteProcessgetOutputStream in class Processpublic int waitFor()
throws InterruptedException
IRemoteProcesswaitFor in interface IRemoteProcesswaitFor in class ProcessInterruptedException - if the current thread is
interrupted by another thread while it is waitingpublic boolean isCompleted()
IRemoteProcessisCompleted in interface IRemoteProcessCopyright (c) 2011 IBM Corporation and others. All Rights Reserved.