public interface StepRegistry
Modifier and Type | Method and Description |
---|---|
Step |
getStep(java.lang.String jobName,
java.lang.String stepName)
Returns the
Step of the specified job based on its name. |
void |
register(java.lang.String jobName,
java.util.Collection<Step> steps)
Registers all the step of the given job.
|
void |
unregisterStepsFromJob(java.lang.String jobName)
Unregisters all the steps of the given job.
|
void register(java.lang.String jobName, java.util.Collection<Step> steps) throws DuplicateJobException
unregisterStepsFromJob(String)
is called before registering
the given steps.jobName
- the give job namesteps
- the job stepsDuplicateJobException
- if a job with the same job name has already been registered.void unregisterStepsFromJob(java.lang.String jobName)
jobName
- the given job nameStep getStep(java.lang.String jobName, java.lang.String stepName) throws NoSuchJobException, NoSuchStepException
Step
of the specified job based on its name.jobName
- the name of the jobstepName
- the name of the step to retrieveNoSuchJobException
- no such job with that name existsNoSuchStepException
- no such step with that name for that job exists