public class MapStepRegistry extends java.lang.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(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.
|
public void register(java.lang.String jobName,
java.util.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(java.lang.String jobName)
StepRegistryunregisterStepsFromJob in interface StepRegistryjobName - the given job namepublic Step getStep(java.lang.String jobName, java.lang.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 exists