public class JobLocatorStepLocator extends Object implements StepLocator
Constructor and Description |
---|
JobLocatorStepLocator()
Convenience constructor for declarative configuration.
|
JobLocatorStepLocator(ListableJobLocator jobLocator)
Create an instance from this
JobLocator . |
Modifier and Type | Method and Description |
---|---|
Step |
getStep(String path)
Locate a step by referencing it through its parent job with a separator,
e.g.
|
Collection<String> |
getStepNames()
Loop through all the jobs and pull out their step names.
|
void |
setJobLocator(ListableJobLocator jobLocator) |
public JobLocatorStepLocator(ListableJobLocator jobLocator)
JobLocator
.jobLocator
- a JobLocator
public JobLocatorStepLocator()
public void setJobLocator(ListableJobLocator jobLocator)
jobLocator
- the jobLocator to setpublic Step getStep(String path) throws NoSuchStepException
job-name/step-name
. The separator defaults to a forward
slash.getStep
in interface StepLocator
NoSuchStepException
StepLocator.getStep(String)
public Collection<String> getStepNames()
getStep(String)
(i.e.
with a separator).getStepNames
in interface StepLocator
StepLocator.getStepNames()
Copyright © 2015. All rights reserved.