Package com.sun.enterprise.admin.cli
Class CLIProcessExecutor
- java.lang.Object
-
- com.sun.enterprise.admin.cli.CLIProcessExecutor
-
public class CLIProcessExecutor extends Object
CLIProcessExecutor A simple process executor class that is used by CLI.- Author:
- [email protected]
-
-
Constructor Summary
Constructors Constructor Description CLIProcessExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(String name, String[] cmd, boolean wait)
This method invokes the runtime execint
exitValue()
Return the exit value of this process.
-
-
-
Method Detail
-
execute
public void execute(String name, String[] cmd, boolean wait) throws Exception
This method invokes the runtime exec- Parameters:
name
-cmd
- the command to executewait
- if true, wait for process to end.- Throws:
Exception
-
exitValue
public int exitValue()
Return the exit value of this process. If process is null, then there is no process running therefore the return value is 0.- Returns:
-
-