Package org.apache.flink.test.util
Class JobSubmission.JobSubmissionBuilder
java.lang.Object
org.apache.flink.test.util.JobSubmission.JobSubmissionBuilder
- Enclosing class:
- JobSubmission
Builder for the
JobSubmission.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddArgument(String argument) Adds a program argument.addArgument(String key, String value) Convenience method for providing key-value program arguments.build()setDetached(boolean detached) Sets whether the job should be submitted in a detached manner.setMainClass(String mainClass) Sets the main class for the job.setParallelism(int parallelism) Sets the parallelism for the job.
-
Constructor Details
-
JobSubmissionBuilder
-
-
Method Details
-
setMainClass
Sets the main class for the job.- Parameters:
mainClass- main class for the job- Returns:
- the modified builder
-
setParallelism
Sets the parallelism for the job.- Parameters:
parallelism- parallelism for the job- Returns:
- the modified builder
-
setDetached
Sets whether the job should be submitted in a detached manner.- Parameters:
detached- whether to submit the job in a detached manner- Returns:
- the modified builder
-
addArgument
Adds a program argument.- Parameters:
argument- argument argument- Returns:
- the modified builder
-
addArgument
Convenience method for providing key-value program arguments. Invoking this method is equivalent to invokingaddArgument(String)twice.- Parameters:
key- argument keyvalue- argument value- Returns:
- the modified builder
-
build
-