Class ArgBuilder


  • public final class ArgBuilder
    extends Object
    Argument builder.
    • Constructor Detail

      • ArgBuilder

        public ArgBuilder()
        Constructor with default values.
    • Method Detail

      • addJobId

        public ArgBuilder addJobId​(String jobId)
        Parameters:
        jobId - job id.
        Returns:
        builder with the job id.
      • addUserMain

        public ArgBuilder addUserMain​(String main)
        Parameters:
        main - user main class.
        Returns:
        builder with the user main class.
      • addUserArgs

        public ArgBuilder addUserArgs​(String... userArgs)
        Parameters:
        userArgs - user arguments.
        Returns:
        builder with the user arguments.
      • addOptimizationPolicy

        public ArgBuilder addOptimizationPolicy​(String policy)
        Parameters:
        policy - optimization policy.
        Returns:
        builder with the optimization policy.
      • addMaxTaskAttempt

        public ArgBuilder addMaxTaskAttempt​(int maxAttempt)
        Parameters:
        maxAttempt - maximum number of the attempts
        Returns:
        builder with the maximum number of the attempts
      • addDAGDirectory

        public ArgBuilder addDAGDirectory​(String directory)
        Parameters:
        directory - directory to save the DAG.
        Returns:
        builder with the DAG directory.
      • addResourceJson

        public ArgBuilder addResourceJson​(String executorJsonFileName)
        Parameters:
        executorJsonFileName - the name of the executor resource file to use.
        Returns:
        builder with the executor resource file.
      • addScheduler

        public ArgBuilder addScheduler​(String schedulerName)
        Parameters:
        schedulerName - scheduler.
        Returns:
        builder with the scheduler.
      • build

        public String[] build()
        Returns:
        the built arguments.