类 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

        public JavaStepConfig()
    • 方法详细资料

      • 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