Class ProcessBuilder
- java.lang.Object
-
- org.apache.activemq.artemis.cli.process.ProcessBuilder
-
public class ProcessBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description ProcessBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Processbuild(String logname, File location, boolean hook, String... args)*static voidcleanupProcess()it will lookup for process that are dead already, eliminating leaks.static String[]rebuildArgs(String[] args, String... prefixArgs)
-
-
-
Method Detail
-
cleanupProcess
public static void cleanupProcess()
it will lookup for process that are dead already, eliminating leaks.
-
build
public static Process build(String logname, File location, boolean hook, String... args) throws Exception
*- Parameters:
logname- the prefix for log outputlocation- The location where this command is being executed fromhook- it will finish the process upon shutdown of the VMargs- The arguments being passwed to the the CLI tool- Returns:
- Throws:
Exception
-
-