|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrescuecore.tools.simulationrunner.RescueProcess
Constructor Summary | |
RescueProcess(java.lang.String name,
java.lang.String commandline,
java.lang.String started,
java.lang.String logPrefix)
Create a new RescueProcess |
Method Summary | |
void |
addErrorDestination(java.io.OutputStream stream)
Add a new destination for the standard error stream from this process. |
void |
addOutputDestination(java.io.OutputStream stream)
Add a new destination for the standard output stream from this process. |
java.lang.String |
getCommandLine()
Get the command line used to start this process |
java.lang.String |
getName()
Get the name of this process |
java.lang.String |
getStartedFlag()
Get the string that delimits successful initialisation of this process |
boolean |
isRunning()
Find out whether this process is running or not |
boolean |
start()
Start this process and wait for the started flag to appear in the output. |
void |
stop()
Stop the process |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RescueProcess(java.lang.String name, java.lang.String commandline, java.lang.String started, java.lang.String logPrefix)
name
- The name of this processcommandline
- The command line used to start the processstarted
- When this string is encountered in the standard output stream then this process is deemed to have initialised successfully. If this parameter is null, then the process is assumed to initialise instantaneously.Method Detail |
public java.lang.String toString()
public java.lang.String getName()
public java.lang.String getCommandLine()
public java.lang.String getStartedFlag()
public boolean start()
public void addOutputDestination(java.io.OutputStream stream)
stream
- An OutputStream to write standard output topublic void addErrorDestination(java.io.OutputStream stream)
stream
- An OutputStream to write standard error topublic boolean isRunning()
public void stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |