|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.core.repository.dao.MapJobInstanceDao
public class MapJobInstanceDao
In-memory implementation of JobInstanceDao.
| Constructor Summary | |
|---|---|
MapJobInstanceDao()
|
|
| Method Summary | |
|---|---|
static void |
clear()
|
JobInstance |
createJobInstance(java.lang.String jobName,
JobParameters jobParameters)
Create a JobInstance with given name and parameters. |
JobInstance |
getJobInstance(JobExecution jobExecution)
Fetch the JobInstance for the provided JobExecution. |
JobInstance |
getJobInstance(java.lang.Long instanceId)
Fetch the job instance with the provided identifier. |
JobInstance |
getJobInstance(java.lang.String jobName,
JobParameters jobParameters)
Find the job instance that matches the given name and parameters. |
java.util.List<JobInstance> |
getJobInstances(java.lang.String jobName,
int start,
int count)
Fetch the last job instances with the provided name, sorted backwards by primary key. |
java.util.List<java.lang.String> |
getJobNames()
Retrieve the names of all job instances sorted alphabetically - i.e. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapJobInstanceDao()
| Method Detail |
|---|
public static void clear()
public JobInstance createJobInstance(java.lang.String jobName,
JobParameters jobParameters)
JobInstanceDao
createJobInstance in interface JobInstanceDao
public JobInstance getJobInstance(java.lang.String jobName,
JobParameters jobParameters)
JobInstanceDao
getJobInstance in interface JobInstanceDaojobName - the name of the jobjobParameters - the parameters with which the job was executed
JobInstance object matching the job name and
JobParameters or nullpublic JobInstance getJobInstance(java.lang.Long instanceId)
JobInstanceDao
getJobInstance in interface JobInstanceDaoinstanceId - the job identifier
public java.util.List<java.lang.String> getJobNames()
JobInstanceDao
getJobNames in interface JobInstanceDao
public java.util.List<JobInstance> getJobInstances(java.lang.String jobName,
int start,
int count)
JobInstanceDao
getJobInstances in interface JobInstanceDaojobName - the job namestart - the start index of the instances to returncount - the maximum number of objects to return
public JobInstance getJobInstance(JobExecution jobExecution)
JobInstanceDao
getJobInstance in interface JobInstanceDaojobExecution - the JobExecution
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||