public class JavaStepConfig extends StepConfig
A custom jar step can be configured with name, actionOnFailure, jar, main class and arguments. The essential options are jar, main class and actionOnFailure, and the optional ones are name and arguments.
| Constructor and Description |
|---|
JavaStepConfig() |
| Modifier and Type | Method and Description |
|---|---|
JavaStepConfig |
withActionOnFailure(String actionOnFailure)
Configure the action on failure for the java step.
|
JavaStepConfig |
withAdditionalFile(String remote,
String local)
Configure the additional file for the step.
|
JavaStepConfig |
withArguments(String arguments)
Configure the arguments for the step.
|
JavaStepConfig |
withJar(String jar)
Configure the BOS path for step's .jar file.
|
JavaStepConfig |
withMainClass(String mainClass)
Configure the main class for the step.
|
JavaStepConfig |
withName(String name)
Configure the name of the step.
|
addAdditionalFile, addProperty, getActionOnFailure, getAdditionalFiles, getName, getProperties, getType, setActionOnFailure, setAdditionalFiles, setName, setProperties, setType, withAdditionalFiles, withProperties, withTypepublic JavaStepConfig withJar(String jar)
jar - The BOS path for the step's .jar file.public JavaStepConfig withMainClass(String mainClass)
mainClass - The main class for the step.public JavaStepConfig withArguments(String arguments)
arguments - The arguments for the step.public JavaStepConfig withActionOnFailure(String actionOnFailure)
withActionOnFailure in class StepConfigactionOnFailure - The action on step's failure.public JavaStepConfig withName(String name)
withName in class StepConfigname - The name of the step.public JavaStepConfig withAdditionalFile(String remote, String local)
remote - The remote file of the additional file.local - The local file of the additional file.Copyright © 2023. All rights reserved.