类 MapStepRegistry
- java.lang.Object
- org.springframework.batch.core.configuration.support.MapStepRegistry
- 所有已实现的接口:
StepRegistry
public class MapStepRegistry extends java.lang.Object implements StepRegistry
Simple map-based implementation ofStepRegistry
. Access to the map is synchronized, guarded by an internal lock.- 作者:
- Sebastien Gerard, Stephane Nicoll
构造器概要
构造器 构造器 说明 MapStepRegistry()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Step
getStep(java.lang.String jobName, java.lang.String stepName)
Returns theStep
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.
构造器详细资料
MapStepRegistry
public MapStepRegistry()
方法详细资料
register
public void register(java.lang.String jobName, java.util.Collection<Step> steps) throws DuplicateJobException
从接口复制的说明:StepRegistry
Registers all the step of the given job. If the job is already registered, the methodStepRegistry.unregisterStepsFromJob(String)
is called before registering the given steps.- 指定者:
register
在接口中StepRegistry
- 参数:
jobName
- the give job namesteps
- the job steps- 抛出:
DuplicateJobException
- if a job with the same job name has already been registered.
unregisterStepsFromJob
public void unregisterStepsFromJob(java.lang.String jobName)
从接口复制的说明:StepRegistry
Unregisters all the steps of the given job. If the job is not registered, nothing happens.- 指定者:
unregisterStepsFromJob
在接口中StepRegistry
- 参数:
jobName
- the given job name
getStep
public Step getStep(java.lang.String jobName, java.lang.String stepName) throws NoSuchJobException
从接口复制的说明:StepRegistry
Returns theStep
of the specified job based on its name.- 指定者:
getStep
在接口中StepRegistry
- 参数:
jobName
- the name of the jobstepName
- the name of the step to retrieve- 返回:
- the step with the given name belonging to the mentioned job
- 抛出:
NoSuchJobException
- no such job with that name exists