Class ProcessBuilder
java.lang.Object
org.apache.activemq.artemis.cli.process.ProcessBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Processstatic voidit will lookup for process that are dead already, eliminating leaks.static String[]rebuildArgs(String[] args, String... prefixArgs)
-
Constructor Details
-
ProcessBuilder
public ProcessBuilder()
-
-
Method Details
-
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- Throws:
Exception
-
rebuildArgs
-