接口 StepRegistry

    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型方法说明
      StepgetStep​(java.lang.String jobName, java.lang.String stepName)
      Returns the Step of the specified job based on its name.
      voidregister​(java.lang.String jobName, java.util.Collection<Step> steps)
      Registers all the step of the given job.
      voidunregisterStepsFromJob​(java.lang.String jobName)
      Unregisters all the steps of the given job.
    • 方法详细资料

      • register

        void register​(java.lang.String jobName,
                      java.util.Collection<Step> steps)
               throws DuplicateJobException
        Registers all the step of the given job. If the job is already registered, the method unregisterStepsFromJob(String) is called before registering the given steps.
        参数:
        jobName - the give job name
        steps - the job steps
        抛出:
        DuplicateJobException - if a job with the same job name has already been registered.
      • unregisterStepsFromJob

        void unregisterStepsFromJob​(java.lang.String jobName)
        Unregisters all the steps of the given job. If the job is not registered, nothing happens.
        参数:
        jobName - the given job name
      • getStep

        Step getStep​(java.lang.String jobName,
                     java.lang.String stepName)
              throws NoSuchJobException,
                     NoSuchStepException
        Returns the Step of the specified job based on its name.
        参数:
        jobName - the name of the job
        stepName - the name of the step to retrieve
        返回:
        the step with the given name belonging to the mentioned job
        抛出:
        NoSuchJobException - no such job with that name exists
        NoSuchStepException - no such step with that name for that job exists