Class NullJobRepository

java.lang.Object
com.github.marschall.spring.batch.inmemory.NullJobRepository
All Implemented Interfaces:
org.springframework.batch.core.repository.explore.JobExplorer, JobRepository

public final class NullJobRepository extends Object implements JobRepository
Null implementation of JobExplorer
  • Constructor Details

    • NullJobRepository

      public NullJobRepository()
  • Method Details

    • isJobInstanceExists

      public boolean isJobInstanceExists(String jobName, org.springframework.batch.core.job.parameters.JobParameters jobParameters)
      Specified by:
      isJobInstanceExists in interface org.springframework.batch.core.repository.explore.JobExplorer
    • createJobInstance

      public JobInstance createJobInstance(String jobName, org.springframework.batch.core.job.parameters.JobParameters jobParameters)
      Specified by:
      createJobInstance in interface JobRepository
    • createJobExecution

      public JobExecution createJobExecution(JobInstance jobInstance, org.springframework.batch.core.job.parameters.JobParameters jobParameters, org.springframework.batch.infrastructure.item.ExecutionContext executionContext)
      Specified by:
      createJobExecution in interface JobRepository
    • createStepExecution

      public StepExecution createStepExecution(String stepName, JobExecution jobExecution)
      Specified by:
      createStepExecution in interface JobRepository
    • update

      public void update(JobExecution jobExecution)
      Specified by:
      update in interface JobRepository
    • update

      public void update(StepExecution stepExecution)
      Specified by:
      update in interface JobRepository
    • updateExecutionContext

      public void updateExecutionContext(StepExecution stepExecution)
      Specified by:
      updateExecutionContext in interface JobRepository
    • updateExecutionContext

      public void updateExecutionContext(JobExecution jobExecution)
      Specified by:
      updateExecutionContext in interface JobRepository
    • getLastStepExecution

      public @Nullable StepExecution getLastStepExecution(JobInstance jobInstance, String stepName)
      Specified by:
      getLastStepExecution in interface org.springframework.batch.core.repository.explore.JobExplorer
      Specified by:
      getLastStepExecution in interface JobRepository
    • getStepExecutionCount

      public long getStepExecutionCount(JobInstance jobInstance, String stepName)
      Specified by:
      getStepExecutionCount in interface org.springframework.batch.core.repository.explore.JobExplorer
      Specified by:
      getStepExecutionCount in interface JobRepository
    • getLastJobExecution

      public @Nullable JobExecution getLastJobExecution(String jobName, org.springframework.batch.core.job.parameters.JobParameters jobParameters)
      Specified by:
      getLastJobExecution in interface org.springframework.batch.core.repository.explore.JobExplorer
      Specified by:
      getLastJobExecution in interface JobRepository
    • getJobNames

      public List<String> getJobNames()
      Specified by:
      getJobNames in interface org.springframework.batch.core.repository.explore.JobExplorer
      Specified by:
      getJobNames in interface JobRepository
    • findJobInstancesByName

      public List<JobInstance> findJobInstancesByName(String jobName, int start, int count)
      Specified by:
      findJobInstancesByName in interface org.springframework.batch.core.repository.explore.JobExplorer
    • findJobExecutions

      public List<JobExecution> findJobExecutions(JobInstance jobInstance)
      Specified by:
      findJobExecutions in interface org.springframework.batch.core.repository.explore.JobExplorer
    • getJobInstance

      public @Nullable JobInstance getJobInstance(String jobName, org.springframework.batch.core.job.parameters.JobParameters jobParameters)
      Specified by:
      getJobInstance in interface org.springframework.batch.core.repository.explore.JobExplorer
      Specified by:
      getJobInstance in interface JobRepository
    • deleteStepExecution

      public void deleteStepExecution(StepExecution stepExecution)
      Specified by:
      deleteStepExecution in interface JobRepository
    • deleteJobExecution

      public void deleteJobExecution(JobExecution jobExecution)
      Specified by:
      deleteJobExecution in interface JobRepository
    • deleteJobInstance

      public void deleteJobInstance(JobInstance jobInstance)
      Specified by:
      deleteJobInstance in interface JobRepository
    • findJobInstancesByJobName

      public List<JobInstance> findJobInstancesByJobName(String jobName, int start, int count)
      Specified by:
      findJobInstancesByJobName in interface org.springframework.batch.core.repository.explore.JobExplorer
    • getJobInstances

      public List<JobInstance> getJobInstances(String jobName, int start, int count)
      Specified by:
      getJobInstances in interface org.springframework.batch.core.repository.explore.JobExplorer
      Specified by:
      getJobInstances in interface JobRepository
    • findJobInstances

      public List<JobInstance> findJobInstances(String jobName)
      Specified by:
      findJobInstances in interface JobRepository
    • getJobInstance

      public @Nullable JobInstance getJobInstance(long jobInstanceId)
      Specified by:
      getJobInstance in interface org.springframework.batch.core.repository.explore.JobExplorer
      Specified by:
      getJobInstance in interface JobRepository
    • getLastJobInstance

      public @Nullable JobInstance getLastJobInstance(String jobName)
      Specified by:
      getLastJobInstance in interface org.springframework.batch.core.repository.explore.JobExplorer
      Specified by:
      getLastJobInstance in interface JobRepository
    • getJobInstanceCount

      public long getJobInstanceCount(String jobName) throws NoSuchJobException
      Specified by:
      getJobInstanceCount in interface org.springframework.batch.core.repository.explore.JobExplorer
      Specified by:
      getJobInstanceCount in interface JobRepository
      Throws:
      NoSuchJobException
    • getJobExecution

      public @Nullable JobExecution getJobExecution(long executionId)
      Specified by:
      getJobExecution in interface org.springframework.batch.core.repository.explore.JobExplorer
      Specified by:
      getJobExecution in interface JobRepository
    • getJobExecutions

      public List<JobExecution> getJobExecutions(JobInstance jobInstance)
      Specified by:
      getJobExecutions in interface org.springframework.batch.core.repository.explore.JobExplorer
      Specified by:
      getJobExecutions in interface JobRepository
    • getLastJobExecution

      public @Nullable JobExecution getLastJobExecution(JobInstance jobInstance)
      Specified by:
      getLastJobExecution in interface org.springframework.batch.core.repository.explore.JobExplorer
      Specified by:
      getLastJobExecution in interface JobRepository
    • findRunningJobExecutions

      public Set<JobExecution> findRunningJobExecutions(String jobName)
      Specified by:
      findRunningJobExecutions in interface org.springframework.batch.core.repository.explore.JobExplorer
      Specified by:
      findRunningJobExecutions in interface JobRepository
    • getStepExecution

      public @Nullable StepExecution getStepExecution(long jobExecutionId, long stepExecutionId)
      Specified by:
      getStepExecution in interface org.springframework.batch.core.repository.explore.JobExplorer
      Specified by:
      getStepExecution in interface JobRepository
    • getStepExecution

      public @Nullable StepExecution getStepExecution(long stepExecutionId)
      Specified by:
      getStepExecution in interface JobRepository