|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.baidubce.services.bmr.model.StepConfig
com.baidubce.services.bmr.model.JavaStepConfig
public class JavaStepConfig
Represent configuration for a custom jar step. 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 Summary | |
---|---|
JavaStepConfig()
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.baidubce.services.bmr.model.StepConfig |
---|
addAdditionalFile, addProperty, getActionOnFailure, getAdditionalFiles, getName, getProperties, getType, setActionOnFailure, setAdditionalFiles, setName, setProperties, setType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaStepConfig()
Method Detail |
---|
public 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)
actionOnFailure
- The action on step's failure.
public JavaStepConfig withName(String name)
name
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |