|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Process
| Method Summary | |
|---|---|
void |
addEnvVar(java.lang.String key,
java.lang.String value)
Adds the environment variable with the given key and value |
void |
addListener(ProcessListener processListener)
Add a listener to this process to get notified of state changes. |
boolean |
kill(long timeoutInMillis)
Forcibly kills this process. |
void |
launch()
Launches this process. |
int |
launchBlocking()
Launches this process and blocks until the process has terminated. |
| Method Detail |
|---|
void launch()
throws java.io.IOException
java.io.IOException - thrown if this process could not be launched.
java.lang.IllegalStateException - if this process has already been launched
void addEnvVar(java.lang.String key,
java.lang.String value)
key - the key of the environment variablevalue - the value of the environment variable
int launchBlocking()
throws java.io.IOException
java.io.IOExceptionboolean kill(long timeoutInMillis)
true if
this process has been started and is not running anymore (for whatever
reason). Returns false if launch() has not been
invoked. If this method returns true, it must return
true for all subsequent calls to this method. If this
method returns false it means that the process is probably
still running.
timeoutInMillis - wait at most timeoutInMillis to try to kill the
process. A value of 0 means to wait forever.
true if the process has been stopped,
false if the process is still running or has never
been started.void addListener(ProcessListener processListener)
processListener -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||