Uses of Class
org.springframework.batch.core.JobInstance
Package
Description
Core domain context for Spring Batch covering jobs, steps, configuration and execution
abstractions.
Interfaces and related classes to support meta data browsing.
Specific implementations of explorer concerns.
Interfaces and simple implementations of launch concerns.
Support classes for use in bootstrap and launch implementations or configurations.
Interfaces and generic implementations of repository concerns.
Specific implementations of dao concerns.
Specific implementations of repository concerns.
Utility classes for batch job/step testing.
-
Uses of JobInstance in org.springframework.batch.core
Modifier and TypeMethodDescriptionvoid
JobExecution.setJobInstance
(JobInstance jobInstance) Set theJobInstance
used by theJobExecution
.ModifierConstructorDescriptionJobExecution
(JobInstance job, Long id, JobParameters jobParameters) Because a JobExecution is not valid unless the job is set, this constructor is the only valid one from a modeling point of view.JobExecution
(JobInstance job, JobParameters jobParameters) Constructor for transient (unsaved) instances. -
Uses of JobInstance in org.springframework.batch.core.explore
Modifier and TypeMethodDescriptionJobExplorer.getJobInstance
(Long instanceId) default JobInstance
JobExplorer.getJobInstance
(String jobName, JobParameters jobParameters) default JobInstance
JobExplorer.getLastJobInstance
(String jobName) Find the last job instance, by ID, for the given job.Modifier and TypeMethodDescriptionJobExplorer.findJobInstancesByJobName
(String jobName, int start, int count) FetchJobInstance
values in descending order of creation (and, therefore, usually of first execution) with a 'like' or wildcard criteria.JobExplorer.getJobInstances
(String jobName, int start, int count) FetchJobInstance
values in descending order of creation (and, therefore, usually, of first execution).Modifier and TypeMethodDescriptionJobExplorer.getJobExecutions
(JobInstance jobInstance) Retrieve job executions by their job instance.default JobExecution
JobExplorer.getLastJobExecution
(JobInstance jobInstance) Find the lastJobExecution
that has been created for a givenJobInstance
. -
Uses of JobInstance in org.springframework.batch.core.explore.support
Modifier and TypeMethodDescriptionSimpleJobExplorer.getJobInstance
(Long instanceId) SimpleJobExplorer.getJobInstance
(String jobName, JobParameters jobParameters) SimpleJobExplorer.getLastJobInstance
(String jobName) Modifier and TypeMethodDescriptionSimpleJobExplorer.findJobInstancesByJobName
(String jobName, int start, int count) SimpleJobExplorer.getJobInstances
(String jobName, int start, int count) Modifier and TypeMethodDescriptionSimpleJobExplorer.getJobExecutions
(JobInstance jobInstance) SimpleJobExplorer.getLastJobExecution
(JobInstance jobInstance) -
Uses of JobInstance in org.springframework.batch.core.launch
Modifier and TypeMethodDescriptiondefault JobInstance
JobOperator.getJobInstance
(String jobName, JobParameters jobParameters) -
Uses of JobInstance in org.springframework.batch.core.launch.support
Modifier and TypeMethodDescriptionSimpleJobOperator.getJobInstance
(String jobName, JobParameters jobParameters) -
Uses of JobInstance in org.springframework.batch.core.repository
Modifier and TypeMethodDescriptionJobRepository.createJobInstance
(String jobName, JobParameters jobParameters) Create a newJobInstance
with the name and job parameters provided.default JobInstance
JobRepository.getJobInstance
(String jobName, JobParameters jobParameters) Modifier and TypeMethodDescriptiondefault List<JobInstance>
JobRepository.findJobInstancesByName
(String jobName, int start, int count) Fetch the last job instances with the provided name, sorted backwards by primary key, using a 'like' criteriaModifier and TypeMethodDescriptiondefault void
JobRepository.deleteJobInstance
(JobInstance jobInstance) Delete the job instance object graph (ie the job instance with all associated job executions along with their respective object graphs as specified inJobRepository.deleteJobExecution(JobExecution)
).default List<JobExecution>
JobRepository.findJobExecutions
(JobInstance jobInstance) Return allJobExecution
s for givenJobInstance
, sorted backwards by creation order (so the first element is the most recent).JobRepository.getLastStepExecution
(JobInstance jobInstance, String stepName) long
JobRepository.getStepExecutionCount
(JobInstance jobInstance, String stepName) -
Uses of JobInstance in org.springframework.batch.core.repository.dao
Modifier and TypeMethodDescriptionJdbcJobInstanceDao.createJobInstance
(String jobName, JobParameters jobParameters) In this JDBC implementation a job instance id is obtained by asking the jobInstanceIncrementer (which is likely a sequence) for the next long value, and then passing the Id and parameter values into an INSERT statement.JobInstanceDao.createJobInstance
(String jobName, JobParameters jobParameters) Create a JobInstance with given name and parameters.JdbcJobInstanceDao.getJobInstance
(Long instanceId) JdbcJobInstanceDao.getJobInstance
(String jobName, JobParameters jobParameters) The job table is queried for any jobs that match the given identifier, adding them to a list via the RowMapper callback.JdbcJobInstanceDao.getJobInstance
(JobExecution jobExecution) JobInstanceDao.getJobInstance
(Long instanceId) Fetch the job instance with the provided identifier.JobInstanceDao.getJobInstance
(String jobName, JobParameters jobParameters) Find the job instance that matches the given name and parameters.JobInstanceDao.getJobInstance
(JobExecution jobExecution) Fetch the JobInstance for the provided JobExecution.JdbcJobInstanceDao.getLastJobInstance
(String jobName) default JobInstance
JobInstanceDao.getLastJobInstance
(String jobName) Fetch the last job instance by Id for the given job.Modifier and TypeMethodDescriptionJdbcJobInstanceDao.findJobInstancesByName
(String jobName, int start, int count) JobInstanceDao.findJobInstancesByName
(String jobName, int start, int count) Fetch the last job instances with the provided name, sorted backwards by primary key, using a 'like' criteriaJdbcJobInstanceDao.getJobInstances
(String jobName, int start, int count) JobInstanceDao.getJobInstances
(String jobName, int start, int count) Fetch the last job instances with the provided name, sorted backwards by primary key.Modifier and TypeMethodDescriptionlong
JdbcStepExecutionDao.countStepExecutions
(JobInstance jobInstance, String stepName) default long
StepExecutionDao.countStepExecutions
(JobInstance jobInstance, String stepName) Counts all theStepExecution
for a given step name.void
JdbcJobInstanceDao.deleteJobInstance
(JobInstance jobInstance) Delete the job instance.default void
JobInstanceDao.deleteJobInstance
(JobInstance jobInstance) Delete the job instance.JdbcJobExecutionDao.findJobExecutions
(JobInstance job) JobExecutionDao.findJobExecutions
(JobInstance jobInstance) Return allJobExecution
s for givenJobInstance
, sorted backwards by creation order (so the first element is the most recent).JdbcJobExecutionDao.getLastJobExecution
(JobInstance jobInstance) JobExecutionDao.getLastJobExecution
(JobInstance jobInstance) Find the lastJobExecution
to have been created for a givenJobInstance
.JdbcStepExecutionDao.getLastStepExecution
(JobInstance jobInstance, String stepName) default StepExecution
StepExecutionDao.getLastStepExecution
(JobInstance jobInstance, String stepName) Retrieve the lastStepExecution
for a givenJobInstance
ordered by creation time and then id. -
Uses of JobInstance in org.springframework.batch.core.repository.support
Modifier and TypeMethodDescriptionSimpleJobRepository.createJobInstance
(String jobName, JobParameters jobParameters) SimpleJobRepository.getJobInstance
(String jobName, JobParameters jobParameters) Modifier and TypeMethodDescriptionSimpleJobRepository.findJobInstancesByName
(String jobName, int start, int count) Modifier and TypeMethodDescriptionvoid
SimpleJobRepository.deleteJobInstance
(JobInstance jobInstance) SimpleJobRepository.findJobExecutions
(JobInstance jobInstance) SimpleJobRepository.getLastStepExecution
(JobInstance jobInstance, String stepName) long
SimpleJobRepository.getStepExecutionCount
(JobInstance jobInstance, String stepName) -
Uses of JobInstance in org.springframework.batch.test
Modifier and TypeMethodDescriptionstatic JobInstance
MetaDataInstanceFactory.createJobInstance()
Create aJobInstance
with default parameters.static JobInstance
MetaDataInstanceFactory.createJobInstance
(String jobName, Long instanceId) Create aJobInstance
with the parameters provided.