JdbcJobInstanceDao
with an in-memory database. Scheduled for removal in v5.0.@Deprecated public class MapJobInstanceDao extends java.lang.Object implements JobInstanceDao
JobInstanceDao
.Constructor and Description |
---|
MapJobInstanceDao()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Deprecated.
|
JobInstance |
createJobInstance(java.lang.String jobName,
JobParameters jobParameters)
Deprecated.
Create a JobInstance with given name and parameters.
|
java.util.List<JobInstance> |
findJobInstancesByName(java.lang.String jobName,
int start,
int count)
Deprecated.
Fetch the last job instances with the provided name, sorted backwards by
primary key, using a 'like' criteria
|
JobInstance |
getJobInstance(JobExecution jobExecution)
Deprecated.
Fetch the JobInstance for the provided JobExecution.
|
JobInstance |
getJobInstance(java.lang.Long instanceId)
Deprecated.
Fetch the job instance with the provided identifier.
|
JobInstance |
getJobInstance(java.lang.String jobName,
JobParameters jobParameters)
Deprecated.
Find the job instance that matches the given name and parameters.
|
int |
getJobInstanceCount(java.lang.String jobName)
Deprecated.
Query the repository for the number of unique
JobInstance s
associated with the supplied job name. |
java.util.List<JobInstance> |
getJobInstances(java.lang.String jobName,
int start,
int count)
Deprecated.
Fetch the last job instances with the provided name, sorted backwards by
primary key.
|
java.util.List<java.lang.String> |
getJobNames()
Deprecated.
Retrieve the names of all job instances sorted alphabetically - i.e.
|
JobInstance |
getLastJobInstance(java.lang.String jobName)
Deprecated.
Fetch the last job instance by Id for the given job.
|
public void clear()
public JobInstance createJobInstance(java.lang.String jobName, JobParameters jobParameters)
JobInstanceDao
createJobInstance
in interface JobInstanceDao
jobName
- String
containing the name of the job.jobParameters
- JobParameters
containing the parameters for
the JobInstance.JobInstance
instance that was created.@Nullable public JobInstance getJobInstance(java.lang.String jobName, JobParameters jobParameters)
JobInstanceDao
getJobInstance
in interface JobInstanceDao
jobName
- the name of the jobjobParameters
- the parameters with which the job was executedJobInstance
object matching the job name and
JobParameters
or null
@Nullable public JobInstance getJobInstance(@Nullable java.lang.Long instanceId)
JobInstanceDao
getJobInstance
in interface JobInstanceDao
instanceId
- the job identifiernull
if it doesn't existpublic 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 JobInstanceDao
jobName
- the job namestart
- the start index of the instances to returncount
- the maximum number of objects to return@Nullable public JobInstance getLastJobInstance(java.lang.String jobName)
JobInstanceDao
getLastJobInstance
in interface JobInstanceDao
jobName
- name of the job@Nullable public JobInstance getJobInstance(JobExecution jobExecution)
JobInstanceDao
getJobInstance
in interface JobInstanceDao
jobExecution
- the JobExecutionnull
if it doesn't exist.public int getJobInstanceCount(@Nullable java.lang.String jobName) throws NoSuchJobException
JobInstanceDao
JobInstance
s
associated with the supplied job name.getJobInstanceCount
in interface JobInstanceDao
jobName
- the name of the job to query forJobInstance
s that exist within the
associated job repositoryNoSuchJobException
- thrown if no Job has the jobName specified.public java.util.List<JobInstance> findJobInstancesByName(java.lang.String jobName, int start, int count)
JobInstanceDao
findJobInstancesByName
in interface JobInstanceDao
jobName
- String
containing the name of the job.start
- int containing the offset of where list of job instances
results should begin.count
- int containing the number of job instances to return.JobInstance
for the job name requested.