public interface StepRegistry
Modifier and Type | Method and Description |
---|---|
Step |
getStep(String jobName,
String stepName)
Returns the
Step of the specified job based on its name. |
void |
register(String jobName,
Collection<Step> steps)
Registers all the step of the given job.
|
void |
unregisterStepsFromJob(String jobName)
Unregisters all the steps of the given job.
|
void register(String jobName, 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(String jobName)
jobName
- the given job nameStep getStep(String jobName, 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 existsCopyright © 2014 Pivotal. All rights reserved.