Class NullJobRepository
java.lang.Object
com.github.marschall.spring.batch.inmemory.NullJobRepository
- All Implemented Interfaces:
org.springframework.batch.core.repository.explore.JobExplorer,JobRepository
Null implementation of
JobExplorer-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateJobExecution(JobInstance jobInstance, org.springframework.batch.core.job.parameters.JobParameters jobParameters, org.springframework.batch.infrastructure.item.ExecutionContext executionContext) createJobInstance(String jobName, org.springframework.batch.core.job.parameters.JobParameters jobParameters) createStepExecution(String stepName, JobExecution jobExecution) voiddeleteJobExecution(JobExecution jobExecution) voiddeleteJobInstance(JobInstance jobInstance) voiddeleteStepExecution(StepExecution stepExecution) findJobExecutions(JobInstance jobInstance) findJobInstances(String jobName) findJobInstancesByJobName(String jobName, int start, int count) findJobInstancesByName(String jobName, int start, int count) findRunningJobExecutions(String jobName) @Nullable JobExecutiongetJobExecution(long executionId) getJobExecutions(JobInstance jobInstance) @Nullable JobInstancegetJobInstance(long jobInstanceId) @Nullable JobInstancegetJobInstance(String jobName, org.springframework.batch.core.job.parameters.JobParameters jobParameters) longgetJobInstanceCount(String jobName) getJobInstances(String jobName, int start, int count) @Nullable JobExecutiongetLastJobExecution(String jobName, org.springframework.batch.core.job.parameters.JobParameters jobParameters) @Nullable JobExecutiongetLastJobExecution(JobInstance jobInstance) @Nullable JobInstancegetLastJobInstance(String jobName) @Nullable StepExecutiongetLastStepExecution(JobInstance jobInstance, String stepName) @Nullable StepExecutiongetStepExecution(long stepExecutionId) @Nullable StepExecutiongetStepExecution(long jobExecutionId, long stepExecutionId) longgetStepExecutionCount(JobInstance jobInstance, String stepName) booleanisJobInstanceExists(String jobName, org.springframework.batch.core.job.parameters.JobParameters jobParameters) voidupdate(JobExecution jobExecution) voidupdate(StepExecution stepExecution) voidupdateExecutionContext(JobExecution jobExecution) voidupdateExecutionContext(StepExecution stepExecution)
-
Constructor Details
-
NullJobRepository
public NullJobRepository()
-
-
Method Details
-
isJobInstanceExists
public boolean isJobInstanceExists(String jobName, org.springframework.batch.core.job.parameters.JobParameters jobParameters) - Specified by:
isJobInstanceExistsin interfaceorg.springframework.batch.core.repository.explore.JobExplorer
-
createJobInstance
public JobInstance createJobInstance(String jobName, org.springframework.batch.core.job.parameters.JobParameters jobParameters) - Specified by:
createJobInstancein interfaceJobRepository
-
createJobExecution
public JobExecution createJobExecution(JobInstance jobInstance, org.springframework.batch.core.job.parameters.JobParameters jobParameters, org.springframework.batch.infrastructure.item.ExecutionContext executionContext) - Specified by:
createJobExecutionin interfaceJobRepository
-
createStepExecution
- Specified by:
createStepExecutionin interfaceJobRepository
-
update
- Specified by:
updatein interfaceJobRepository
-
update
- Specified by:
updatein interfaceJobRepository
-
updateExecutionContext
- Specified by:
updateExecutionContextin interfaceJobRepository
-
updateExecutionContext
- Specified by:
updateExecutionContextin interfaceJobRepository
-
getLastStepExecution
- Specified by:
getLastStepExecutionin interfaceorg.springframework.batch.core.repository.explore.JobExplorer- Specified by:
getLastStepExecutionin interfaceJobRepository
-
getStepExecutionCount
- Specified by:
getStepExecutionCountin interfaceorg.springframework.batch.core.repository.explore.JobExplorer- Specified by:
getStepExecutionCountin interfaceJobRepository
-
getLastJobExecution
public @Nullable JobExecution getLastJobExecution(String jobName, org.springframework.batch.core.job.parameters.JobParameters jobParameters) - Specified by:
getLastJobExecutionin interfaceorg.springframework.batch.core.repository.explore.JobExplorer- Specified by:
getLastJobExecutionin interfaceJobRepository
-
getJobNames
- Specified by:
getJobNamesin interfaceorg.springframework.batch.core.repository.explore.JobExplorer- Specified by:
getJobNamesin interfaceJobRepository
-
findJobInstancesByName
- Specified by:
findJobInstancesByNamein interfaceorg.springframework.batch.core.repository.explore.JobExplorer
-
findJobExecutions
- Specified by:
findJobExecutionsin interfaceorg.springframework.batch.core.repository.explore.JobExplorer
-
getJobInstance
public @Nullable JobInstance getJobInstance(String jobName, org.springframework.batch.core.job.parameters.JobParameters jobParameters) - Specified by:
getJobInstancein interfaceorg.springframework.batch.core.repository.explore.JobExplorer- Specified by:
getJobInstancein interfaceJobRepository
-
deleteStepExecution
- Specified by:
deleteStepExecutionin interfaceJobRepository
-
deleteJobExecution
- Specified by:
deleteJobExecutionin interfaceJobRepository
-
deleteJobInstance
- Specified by:
deleteJobInstancein interfaceJobRepository
-
findJobInstancesByJobName
- Specified by:
findJobInstancesByJobNamein interfaceorg.springframework.batch.core.repository.explore.JobExplorer
-
getJobInstances
- Specified by:
getJobInstancesin interfaceorg.springframework.batch.core.repository.explore.JobExplorer- Specified by:
getJobInstancesin interfaceJobRepository
-
findJobInstances
- Specified by:
findJobInstancesin interfaceJobRepository
-
getJobInstance
- Specified by:
getJobInstancein interfaceorg.springframework.batch.core.repository.explore.JobExplorer- Specified by:
getJobInstancein interfaceJobRepository
-
getLastJobInstance
- Specified by:
getLastJobInstancein interfaceorg.springframework.batch.core.repository.explore.JobExplorer- Specified by:
getLastJobInstancein interfaceJobRepository
-
getJobInstanceCount
- Specified by:
getJobInstanceCountin interfaceorg.springframework.batch.core.repository.explore.JobExplorer- Specified by:
getJobInstanceCountin interfaceJobRepository- Throws:
NoSuchJobException
-
getJobExecution
- Specified by:
getJobExecutionin interfaceorg.springframework.batch.core.repository.explore.JobExplorer- Specified by:
getJobExecutionin interfaceJobRepository
-
getJobExecutions
- Specified by:
getJobExecutionsin interfaceorg.springframework.batch.core.repository.explore.JobExplorer- Specified by:
getJobExecutionsin interfaceJobRepository
-
getLastJobExecution
- Specified by:
getLastJobExecutionin interfaceorg.springframework.batch.core.repository.explore.JobExplorer- Specified by:
getLastJobExecutionin interfaceJobRepository
-
findRunningJobExecutions
- Specified by:
findRunningJobExecutionsin interfaceorg.springframework.batch.core.repository.explore.JobExplorer- Specified by:
findRunningJobExecutionsin interfaceJobRepository
-
getStepExecution
- Specified by:
getStepExecutionin interfaceorg.springframework.batch.core.repository.explore.JobExplorer- Specified by:
getStepExecutionin interfaceJobRepository
-
getStepExecution
- Specified by:
getStepExecutionin interfaceJobRepository
-