public abstract class AbstractRepository extends Object implements JobRepository
Constructor and Description |
---|
AbstractRepository() |
Modifier and Type | Method and Description |
---|---|
void |
addJob(ApplicationAndJobName applicationAndJobName,
Job job) |
void |
addPartitionExecution(StepExecutionImpl enclosingStepExecution,
PartitionExecutionImpl partitionExecution) |
void |
addStepExecution(JobExecutionImpl jobExecution,
StepExecutionImpl stepExecution) |
StepExecutionImpl |
createStepExecution(String stepName) |
Job |
getJob(ApplicationAndJobName applicationAndJobName) |
Set<String> |
getJobNames()
Gets all the job names from the job repository.
|
List<PartitionExecutionImpl> |
getPartitionExecutions(long stepExecutionId,
StepExecutionImpl stepExecution,
boolean notCompletedOnly,
ClassLoader classLoader) |
boolean |
jobExists(String jobName)
Checks if a job with the specified
jobName exists or not. |
void |
removeJob(String jobId) |
void |
savePersistentData(javax.batch.runtime.JobExecution jobExecution,
AbstractStepExecution stepOrPartitionExecution) |
void |
updateJobExecution(JobExecutionImpl jobExecution,
boolean fullUpdate,
boolean saveJobParameters) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countStepStartTimes, createJobExecution, createJobInstance, findOriginalStepExecutionForRestart, getJobExecution, getJobExecutions, getJobInstance, getJobInstanceCount, getJobInstances, getRunningExecutions, getStepExecutions, removeJobExecutions, removeJobInstance, updateStepExecution
public void addJob(ApplicationAndJobName applicationAndJobName, Job job)
addJob
in interface JobRepository
public Job getJob(ApplicationAndJobName applicationAndJobName)
getJob
in interface JobRepository
public boolean jobExists(String jobName)
JobRepository
jobName
exists or not.jobExists
in interface JobRepository
jobName
- the job name to checkpublic Set<String> getJobNames()
JobRepository
getJobNames
in interface JobRepository
public void removeJob(String jobId)
removeJob
in interface JobRepository
public StepExecutionImpl createStepExecution(String stepName)
createStepExecution
in interface JobRepository
public void addStepExecution(JobExecutionImpl jobExecution, StepExecutionImpl stepExecution)
addStepExecution
in interface JobRepository
public void savePersistentData(javax.batch.runtime.JobExecution jobExecution, AbstractStepExecution stepOrPartitionExecution)
savePersistentData
in interface JobRepository
public void updateJobExecution(JobExecutionImpl jobExecution, boolean fullUpdate, boolean saveJobParameters)
updateJobExecution
in interface JobRepository
public void addPartitionExecution(StepExecutionImpl enclosingStepExecution, PartitionExecutionImpl partitionExecution)
addPartitionExecution
in interface JobRepository
public List<PartitionExecutionImpl> getPartitionExecutions(long stepExecutionId, StepExecutionImpl stepExecution, boolean notCompletedOnly, ClassLoader classLoader)
getPartitionExecutions
in interface JobRepository
Copyright © 2017 JBoss by Red Hat. All rights reserved.