public static class JobSubmission.JobSubmissionBuilder extends Object
JobSubmission
.Constructor and Description |
---|
JobSubmissionBuilder(Path jar) |
Modifier and Type | Method and Description |
---|---|
JobSubmission.JobSubmissionBuilder |
addArgument(String argument)
Adds a program argument.
|
JobSubmission.JobSubmissionBuilder |
addArgument(String key,
String value)
Convenience method for providing key-value program arguments.
|
JobSubmission |
build() |
JobSubmission.JobSubmissionBuilder |
setDetached(boolean detached)
Sets whether the job should be submitted in a detached manner.
|
JobSubmission.JobSubmissionBuilder |
setMainClass(String mainClass)
Sets the main class for the job.
|
JobSubmission.JobSubmissionBuilder |
setParallelism(int parallelism)
Sets the parallelism for the job.
|
public JobSubmissionBuilder(Path jar)
public JobSubmission.JobSubmissionBuilder setMainClass(String mainClass)
mainClass
- main class for the jobpublic JobSubmission.JobSubmissionBuilder setParallelism(int parallelism)
parallelism
- parallelism for the jobpublic JobSubmission.JobSubmissionBuilder setDetached(boolean detached)
detached
- whether to submit the job in a detached mannerpublic JobSubmission.JobSubmissionBuilder addArgument(String argument)
argument
- argument argumentpublic JobSubmission.JobSubmissionBuilder addArgument(String key, String value)
addArgument(String)
twice.key
- argument keyvalue
- argument valuepublic JobSubmission build()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.