protected PostBatches()

in src/main/java/com/microsoft/azure/spark/tools/restapi/livy/batches/api/PostBatches.java [482:532]


    protected PostBatches(final @Nullable String name,
                          final @Nullable String proxyUser,
                          final String filePath,
                          final String className,
                          final @Nullable String yarnQueue,
                          final @Nullable MemorySize driverMemory,
                          final @Nullable Integer driverCores,
                          final @Nullable MemorySize executorMemory,
                          final @Nullable Integer executorCores,
                          final @Nullable Integer yarnNumExecutors,
                          final @Nullable List<String> referencedFiles,
                          final @Nullable List<String> referencedJars,
                          final @Nullable List<String> archives,
                          final @Nullable List<String> pyFiles,
                          final @Nullable List<String> args,
                          final @Nullable Map<String, String> jobConfig) {
        this.name = name;
        this.file = filePath;
        this.className = className;
        this.proxyUser = proxyUser;
        this.yarnQueue = yarnQueue;
        this.driverMemory = driverMemory;
        this.driverCores = driverCores;
        this.executorMemory = executorMemory;
        this.executorCores = executorCores;
        this.yarnNumExecutors = yarnNumExecutors;

        if (referencedFiles != null) {
            this.files.addAll(referencedFiles);
        }

        if (referencedJars != null) {
            this.jars.addAll(referencedJars);
        }

        if (jobConfig != null) {
            this.jobConfig.putAll(jobConfig);
        }

        if (args != null) {
            this.args.addAll(args);
        }

        if (archives != null) {
            this.archives.addAll(archives);
        }

        if (pyFiles != null) {
            this.pyFiles.addAll(pyFiles);
        }
    }