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()
IRemoteProcess
destroy
in interface IRemoteProcess
destroy
in class Process
public int exitValue()
IRemoteProcess
exitValue
in interface IRemoteProcess
exitValue
in class Process
public InputStream getErrorStream()
IRemoteProcess
getErrorStream
in interface IRemoteProcess
getErrorStream
in class Process
public InputStream getInputStream()
IRemoteProcess
getInputStream
in interface IRemoteProcess
getInputStream
in class Process
public OutputStream getOutputStream()
IRemoteProcess
getOutputStream
in interface IRemoteProcess
getOutputStream
in class Process
public int waitFor() throws InterruptedException
IRemoteProcess
waitFor
in interface IRemoteProcess
waitFor
in class Process
InterruptedException
- if the current thread is
interrupted by another thread while it is waitingpublic boolean isCompleted()
IRemoteProcess
isCompleted
in interface IRemoteProcess
Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.