public class MapJobInstanceDao extends Object implements JobInstanceDao
JobInstanceDao
.Constructor and Description |
---|
MapJobInstanceDao() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
JobInstance |
createJobInstance(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(Long instanceId)
Fetch the job instance with the provided identifier.
|
JobInstance |
getJobInstance(String jobName,
JobParameters jobParameters)
Find the job instance that matches the given name and parameters.
|
List<JobInstance> |
getJobInstances(String jobName,
int start,
int count)
Fetch the last job instances with the provided name, sorted backwards by
primary key.
|
List<String> |
getJobNames()
Retrieve the names of all job instances sorted alphabetically - i.e.
|
public void clear()
public JobInstance createJobInstance(String jobName, JobParameters jobParameters)
JobInstanceDao
createJobInstance
in interface JobInstanceDao
public JobInstance getJobInstance(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 nullpublic JobInstance getJobInstance(Long instanceId)
JobInstanceDao
getJobInstance
in interface JobInstanceDao
instanceId
- the job identifierpublic List<String> getJobNames()
JobInstanceDao
getJobNames
in interface JobInstanceDao
public List<JobInstance> getJobInstances(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 returnpublic JobInstance getJobInstance(JobExecution jobExecution)
JobInstanceDao
getJobInstance
in interface JobInstanceDao
jobExecution
- the JobExecutionCopyright © 2014 Pivotal. All rights reserved.