|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.openfoundation.util.XPProcess
public class XPProcess
Wraps a local subprocess. To do: allow capturing of output.
Constructor Summary | |
---|---|
XPProcess(java.lang.Process process)
Construct an XPProcess from the platform-local equivalent. |
Method Summary | |
---|---|
void |
Destroy()
Stop the process. |
int |
GetReturnValue()
Return the external process's return value, if available. |
boolean |
HasExited()
Return true if the process has a valid return value available. |
static XPProcess |
Start(java.lang.String processName)
Start-without-args creation method. |
static XPProcess |
Start(java.lang.String processName,
java.lang.String arguments)
Initialize a Java Process object and wrap it in an XPProcess. |
static XPProcess |
Start(java.lang.String processName,
java.lang.String arguments,
XPWriter outputDrain,
XPWriter errorDrain)
Initialize a Java Process object and wrap it in an XPProcess, providing one or two XPWriter instances to drain its standard output and/or standard error output. |
void |
WaitForExit()
Exposes java.lang.Process.waitFor(). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XPProcess(java.lang.Process process)
process
- The OutputStream of SubProcess.Method Detail |
---|
public static XPProcess Start(java.lang.String processName)
processName
- a String
public static XPProcess Start(java.lang.String processName, java.lang.String arguments)
processName
- a Stringarguments
- a String
public static XPProcess Start(java.lang.String processName, java.lang.String arguments, XPWriter outputDrain, XPWriter errorDrain)
processName
- a Stringarguments
- a StringoutputDrain
- a XPWriter objecterrorDrain
- a XPWriter object
public void Destroy()
public int GetReturnValue()
XPIllegalStateException
- if process has not exited.public boolean HasExited()
public void WaitForExit()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |