Class CommandLineBuilder

java.lang.Object
org.apache.hadoop.yarn.service.containerlaunch.CommandLineBuilder
Direct Known Subclasses:
JavaCommandLineBuilder

public class CommandLineBuilder extends Object
Build a single command line to include in the container commands; Special support for JVM command buildup.
  • Field Details

    • argumentList

      protected final List<String> argumentList
  • Constructor Details

    • CommandLineBuilder

      public CommandLineBuilder()
  • Method Details

    • add

      public void add(Object... args)
      Add an entry to the command list
      Parameters:
      args - arguments -these will be converted strings
    • size

      public int size()
    • addOutAndErrFiles

      public void addOutAndErrFiles(String stdout, String stderr)
      Append the output and error files to the tail of the command
      Parameters:
      stdout - out
      stderr - error. Set this to null to append into stdout
    • toString

      public String toString()
      This just returns the command line
      Overrides:
      toString in class Object
      Returns:
      the command line
      See Also:
    • build

      public String build()
      Build the command line
      Returns:
      the command line