public class MapStepRegistry extends Object implements StepRegistry
StepRegistry. Access to the map is
synchronized, guarded by an internal lock.| Constructor and Description |
|---|
MapStepRegistry() |
| 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.
|
public void register(String jobName, Collection<Step> steps) throws DuplicateJobException
StepRegistryStepRegistry.unregisterStepsFromJob(String) is called before registering
the given steps.register in interface StepRegistryjobName - the give job namesteps - the job stepsDuplicateJobException - if a job with the same job name has already been registered.public void unregisterStepsFromJob(String jobName)
StepRegistryunregisterStepsFromJob in interface StepRegistryjobName - the given job namepublic Step getStep(String jobName, String stepName) throws NoSuchJobException
StepRegistryStep of the specified job based on its name.getStep in interface StepRegistryjobName - the name of the jobstepName - the name of the step to retrieveNoSuchJobException - no such job with that name existsCopyright © 2014 Pivotal. All rights reserved.