类 JavaStepConfig
- java.lang.Object
-
- com.baidubce.services.bmr.model.StepConfig
-
- com.baidubce.services.bmr.model.JavaStepConfig
-
public class JavaStepConfig extends StepConfig
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.
-
-
构造器概要
构造器 构造器 说明 JavaStepConfig()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 JavaStepConfigwithActionOnFailure(String actionOnFailure)Configure the action on failure for the java step.JavaStepConfigwithAdditionalFile(String remote, String local)Configure the additional file for the step.JavaStepConfigwithArguments(String arguments)Configure the arguments for the step.JavaStepConfigwithJar(String jar)Configure the BOS path for step's .jar file.JavaStepConfigwithMainClass(String mainClass)Configure the main class for the step.JavaStepConfigwithName(String name)Configure the name of the step.-
从类继承的方法 com.baidubce.services.bmr.model.StepConfig
addAdditionalFile, addProperty, getActionOnFailure, getAdditionalFiles, getName, getProperties, getType, setActionOnFailure, setAdditionalFiles, setName, setProperties, setType, withAdditionalFiles, withProperties, withType
-
-
-
-
方法详细资料
-
withJar
public JavaStepConfig withJar(String jar)
Configure the BOS path for step's .jar file.- 参数:
jar- The BOS path for the step's .jar file.- 返回:
- JavaStepConfig
-
withMainClass
public JavaStepConfig withMainClass(String mainClass)
Configure the main class for the step.- 参数:
mainClass- The main class for the step.- 返回:
- JavaStepConfig
-
withArguments
public JavaStepConfig withArguments(String arguments)
Configure the arguments for the step.- 参数:
arguments- The arguments for the step.- 返回:
- JavaStepConfig
-
withActionOnFailure
public JavaStepConfig withActionOnFailure(String actionOnFailure)
Configure the action on failure for the java step. This property is set to enum value: "Continue": continue to execute other steps. "TerminateCluster": terminate the cluster when this step fails. "CancelAndWait": cancel the other pending steps and set the cluster's status to WAITING.- 覆盖:
withActionOnFailure在类中StepConfig- 参数:
actionOnFailure- The action on step's failure.- 返回:
- JavaStepConfig
-
withName
public JavaStepConfig withName(String name)
Configure the name of the step.- 覆盖:
withName在类中StepConfig- 参数:
name- The name of the step.- 返回:
- JavaStepConfig
-
withAdditionalFile
public JavaStepConfig withAdditionalFile(String remote, String local)
Configure the additional file for the step.- 参数:
remote- The remote file of the additional file.local- The local file of the additional file.- 返回:
- JavaStepConfig
-
-