|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tanukisoftware.wrapper.WrapperProcess
public class WrapperProcess
A WrapperProcess is returned by a call to WrapperManager.exec and can be used to reference the new child process after it was launched.
Method Summary | |
---|---|
void |
destroy()
Kills the subprocess. |
int |
exitValue()
Returns the exit value for the subprocess. |
protected void |
finalize()
Finalize method. |
InputStream |
getErrorStream()
Gets the error stream of the subprocess. |
InputStream |
getInputStream()
Gets the input stream of the subprocess. |
OutputStream |
getOutputStream()
Gets the output stream of the subprocess. |
int |
getPID()
Returns the PID of the process. |
boolean |
isAlive()
Returns true if the process is still alive. |
int |
waitFor()
Causes the current thread to wait, if necessary, until the process represented by this Process object has terminated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
protected void finalize() throws Throwable
finalize
in class Object
Throwable
public int getPID()
public InputStream getInputStream() throws IOException
Implementation note: It is a good idea for the input stream to be buffered.
IOException
- If we are unable to access the stream.public InputStream getErrorStream() throws IOException
Implementation note: It is a good idea for the input stream to be buffered.
IOException
- If we are unable to access the stream.public OutputStream getOutputStream() throws IOException
Implementation note: It is a good idea for the output stream to be buffered.
IOException
- If we are unable to access the stream.public int waitFor() throws InterruptedException
InterruptedException
- If the current thread is interrupted by
another thread while it is waiting, then
the wait is ended and an
InterruptedException is thrown.public int exitValue() throws IllegalThreadStateException
IllegalThreadStateException
- if the process is still alive
and has not yet teminated.public boolean isAlive()
WrapperLicenseError
- If the function is called other than in
the Professional Edition or from a Standalone JVM.public void destroy()
WrapperLicenseError
- If the function is called other than in
the Professional Edition or from a Standalone JVM.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |