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
StepRegistry
StepRegistry.unregisterStepsFromJob(String)
is called before registering
the given steps.register
in interface StepRegistry
jobName
- the give job namesteps
- the job stepsDuplicateJobException
- if a job with the same job name has already been registered.public void unregisterStepsFromJob(String jobName)
StepRegistry
unregisterStepsFromJob
in interface StepRegistry
jobName
- the given job namepublic Step getStep(String jobName, String stepName) throws NoSuchJobException
StepRegistry
Step
of the specified job based on its name.getStep
in interface StepRegistry
jobName
- the name of the jobstepName
- the name of the step to retrieveNoSuchJobException
- no such job with that name existsCopyright © 2014 Pivotal. All rights reserved.