|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.core.configuration.support.GroupAwareJob
public class GroupAwareJob
A Job that can optionally prepend a group name to another job's name,
to make it fit a naming convention for type or origin. E.g. the source job
might be overnightJob and the group
financeDepartment, which would result in a Job with
identical functionality but named financeDepartment.overnightJob
. The use of a "." separator for elements is deliberate, since it is a "safe"
character in a URL.
| Constructor Summary | |
|---|---|
GroupAwareJob(Job delegate)
Create a new Job with the delegate and no group name. |
|
GroupAwareJob(String groupName,
Job delegate)
Create a new Job with the given group name and delegate. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
void |
execute(JobExecution execution)
Run the JobExecution and update the meta information like status
and statistics as necessary. |
JobParametersIncrementer |
getJobParametersIncrementer()
If clients need to generate new parameters for the next execution in a sequence they can use this incrementer. |
JobParametersValidator |
getJobParametersValidator()
A validator for the job parameters of a JobExecution. |
String |
getName()
Concatenates the group name and the delegate job name (joining with a "."). |
int |
hashCode()
|
boolean |
isRestartable()
Flag to indicate if this job can be restarted, at least in principle. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GroupAwareJob(Job delegate)
Job with the delegate and no group name.
delegate - a delegate for the features of a regular Job
public GroupAwareJob(String groupName,
Job delegate)
Job with the given group name and delegate.
groupName - the group name to prependdelegate - a delegate for the features of a regular Job| Method Detail |
|---|
public void execute(JobExecution execution)
JobJobExecution and update the meta information like status
and statistics as necessary. This method should not throw any exceptions
for failed execution. Clients should be careful to inspect the
JobExecution status to determine success or failure.
execute in interface Jobexecution - a JobExecutionpublic String getName()
getName in interface JobJob.getName()public boolean isRestartable()
Job
isRestartable in interface Jobpublic JobParametersIncrementer getJobParametersIncrementer()
Job
getJobParametersIncrementer in interface Jobpublic JobParametersValidator getJobParametersValidator()
JobJobExecution. Clients of
a Job may need to validate the parameters for a launch, before or during
the execution.
getJobParametersValidator in interface Jobpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||