public final class RunnableProcess extends Object implements Runnable
| Constructor and Description | 
|---|
RunnableProcess(List<String> command,
                              String id,
                              File folder,
                              RunnableProcessObserver processObserver,
                              String standardOutFileName,
                              String standardErrorFileName)  | 
public RunnableProcess(List<String> command, String id, File folder, RunnableProcessObserver processObserver, String standardOutFileName, String standardErrorFileName)
command - the command to execute.id - The ID of the process. This is used to name files and in the logs created by this process.folder - The folder in which this will store its stdout and stderr outputprocessObserver - will be informed of process state changes.standardOutFileName - The name of the file used for redirecting STDOUTstandardErrorFileName - The name of the file used for redirecting STDERRpublic void run()
run in interface RunnableIllegalStateException - if the process is already running or has been running before.public void cancel()
Copyright © 2015 The Apache Software Foundation. All rights reserved.