Interface StepRegistry
- All Known Implementing Classes:
MapStepRegistry
public interface StepRegistry
- Author:
- Sebastien Gerard, Stephane Nicoll
-
Method Summary
Modifier and TypeMethodDescriptionReturns theStepof the specified job based on its name.voidregister(String jobName, Collection<Step> steps) Registers all the step instances of the given job.voidunregisterStepsFromJob(String jobName) Unregisters all the steps instances of the given job.
-
Method Details
-
register
Registers all the step instances of the given job. If the job is already registered, the methodunregisterStepsFromJob(String)is called before registering the given steps.- Parameters:
jobName- the give job namesteps- the job steps- Throws:
DuplicateJobException- if a job with the same job name has already been registered.
-
unregisterStepsFromJob
Unregisters all the steps instances of the given job. If the job is not registered, nothing happens.- Parameters:
jobName- the given job name
-
getStep
Returns theStepof the specified job based on its name.- Parameters:
jobName- the name of the jobstepName- the name of the step to retrieve- Returns:
- the step with the given name belonging to the mentioned job
- Throws:
NoSuchJobException- no such job with that name existsNoSuchStepException- no such step with that name for that job exists
-