public static class CommandRunner.ProcessInterface extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
add_process_interface_listener(auxtestlib.CommandRunner.ProcessInterfaceListener listener)
Adds a listener to the process interface.
|
void |
addProcessInterfaceListener(auxtestlib.CommandRunner.ProcessInterfaceListener listener)
Deprecated.
use
#add_process_interface_listener(ProcessInterfaceListener) |
String |
getErrorText()
Obtains the text currently written to the stderr by the process.
|
CommandRunner.CommandOutput |
getOutput()
Obtains the output of the command.
|
String |
getOutputText()
Obtains the text currently written to the stdout by the process.
|
boolean |
isRunning()
Determines whether the process is still running.
|
boolean |
killProcess()
Requests the process to be killed (if it is running).
|
void |
remove_process_interface_listener(auxtestlib.CommandRunner.ProcessInterfaceListener listener)
Removes a listener from the process interface.
|
void |
removeProcessInterfaceListener(auxtestlib.CommandRunner.ProcessInterfaceListener listener)
Deprecated.
use
#remove_process_interface_listener(ProcessInterfaceListener) |
public void add_process_interface_listener(auxtestlib.CommandRunner.ProcessInterfaceListener listener)
listener - the listener@Deprecated public void addProcessInterfaceListener(auxtestlib.CommandRunner.ProcessInterfaceListener listener)
#add_process_interface_listener(ProcessInterfaceListener)listener - deprecatedpublic void remove_process_interface_listener(auxtestlib.CommandRunner.ProcessInterfaceListener listener)
listener - the listener@Deprecated public void removeProcessInterfaceListener(auxtestlib.CommandRunner.ProcessInterfaceListener listener)
#remove_process_interface_listener(ProcessInterfaceListener)listener - deprecatedpublic boolean killProcess()
true) or was it already
dead (false)?public boolean isRunning()
public CommandRunner.CommandOutput getOutput()
IllegalStateException - if the process is still runningpublic String getOutputText()
public String getErrorText()
Copyright © 2015. All rights reserved.