|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.core.job.AbstractJob
public abstract class AbstractJob
Batch domain object representing a job. Job is an explicit abstraction representing the configuration of a job specified by a developer. It should be noted that restart policy is applied to the job as a whole and not to a step.
| Constructor Summary | |
|---|---|
AbstractJob()
Default constructor. |
|
AbstractJob(String name)
Convenience constructor to immediately add name (which is mandatory but not final). |
|
| Method Summary | |
|---|---|
void |
addStep(Step step)
|
String |
getName()
|
List |
getSteps()
|
boolean |
isRestartable()
|
void |
setBeanName(String name)
Set the name property if it is not already set. |
void |
setName(String name)
Set the name property. |
void |
setRestartable(boolean restartable)
|
void |
setSteps(List steps)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.springframework.batch.core.Job |
|---|
execute |
| Constructor Detail |
|---|
public AbstractJob()
public AbstractJob(String name)
name - | Method Detail |
|---|
public void setBeanName(String name)
setBeanName in interface BeanNameAwareBeanNameAware.setBeanName(java.lang.String)public void setName(String name)
setBeanName(java.lang.String)public String getName()
getName in interface Jobpublic List getSteps()
getSteps in interface Jobpublic void setSteps(List steps)
public void addStep(Step step)
public void setRestartable(boolean restartable)
public boolean isRestartable()
isRestartable in interface Jobpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||