Class ProcessBuilder

java.lang.Object
org.apache.activemq.artemis.cli.process.ProcessBuilder

public class ProcessBuilder extends Object
  • 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 output
      location - The location where this command is being executed from
      hook - it will finish the process upon shutdown of the VM
      args - The arguments being passwed to the the CLI tool
      Throws:
      Exception
    • rebuildArgs

      public static String[] rebuildArgs(String[] args, String... prefixArgs)