public class ProcessListener extends Object
When a process exits, the ProcessListener can send out a notification. If you want that to happen, call startLaunchNotifier().
Constructor and Description |
---|
ProcessListener(String[] launchCommand,
Process process,
ILaunchNotification launchNotification,
boolean forDebugging,
boolean isAIRapp)
Starts listening to stdout and stderr of the launched process.
|
Modifier and Type | Method and Description |
---|---|
IOException |
createLaunchFailureException()
Creates an exception indicating that the process terminated with some sort
of error.
|
String[] |
getLaunchCommand()
Returns the command args that were used to launch the process.
|
int |
getProcessExitValue() |
String |
getProcessMessages()
Returns all messages that were sent to stdout and stderr by the process,
combined into one string.
|
boolean |
isAIRApp() |
boolean |
isProcessDead() |
void |
setIsRunLaunch(boolean forRunLaunching) |
void |
startLaunchNotifier()
Creates a background thread that will call the launch notifier when the
process terminates.
|
public ProcessListener(String[] launchCommand, Process process, ILaunchNotification launchNotification, boolean forDebugging, boolean isAIRapp)
public void startLaunchNotifier()
public String[] getLaunchCommand()
public boolean isAIRApp()
public boolean isProcessDead()
public int getProcessExitValue() throws IllegalThreadStateException
IllegalThreadStateException
public String getProcessMessages()
public IOException createLaunchFailureException()
public void setIsRunLaunch(boolean forRunLaunching)
Copyright © 2016 The Apache Software Foundation. All rights reserved.