public final class MongoRepository extends AbstractPersistentRepository
Constructor and Description |
---|
MongoRepository(Properties configProperties) |
Modifier and Type | Method and Description |
---|---|
void |
addPartitionExecution(StepExecutionImpl enclosingStepExecution,
PartitionExecutionImpl partitionExecution) |
int |
countStepStartTimes(String stepName,
long jobInstanceId) |
static MongoRepository |
create(Properties configProperties) |
void |
executeRemoveQueries(String removeQueries)
Executes MongoDB remove queries.
|
StepExecutionImpl |
findOriginalStepExecutionForRestart(String stepName,
JobExecutionImpl jobExecutionToRestart,
ClassLoader classLoader) |
JobExecutionImpl |
getJobExecution(long jobExecutionId) |
List<javax.batch.runtime.JobExecution> |
getJobExecutions(javax.batch.runtime.JobInstance jobInstance) |
JobInstanceImpl |
getJobInstance(long jobInstanceId) |
int |
getJobInstanceCount(String jobName) |
List<javax.batch.runtime.JobInstance> |
getJobInstances(String jobName) |
List<PartitionExecutionImpl> |
getPartitionExecutions(long stepExecutionId,
StepExecutionImpl stepExecution,
boolean notCompletedOnly,
ClassLoader classLoader) |
List<Long> |
getRunningExecutions(String jobName)
Gets the ids of running job executions belonging to a specific job.
|
void |
savePersistentData(javax.batch.runtime.JobExecution jobExecution,
AbstractStepExecution stepOrPartitionExecution) |
void |
updateJobExecution(JobExecutionImpl jobExecution,
boolean fullUpdate,
boolean saveJobParameters) |
void |
updateStepExecution(javax.batch.runtime.StepExecution stepExecution) |
createJobExecution, createJobInstance, getStepExecutions, removeJob, removeJobExecutions, removeJobInstance
addJob, addStepExecution, createStepExecution, getJob, getJobNames, jobExists
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addJob, addStepExecution, createStepExecution, getJob, getJobNames, jobExists
public MongoRepository(Properties configProperties)
public static MongoRepository create(Properties configProperties)
public JobInstanceImpl getJobInstance(long jobInstanceId)
getJobInstance
in interface JobRepository
getJobInstance
in class AbstractPersistentRepository
public int getJobInstanceCount(String jobName)
public void updateJobExecution(JobExecutionImpl jobExecution, boolean fullUpdate, boolean saveJobParameters)
updateJobExecution
in interface JobRepository
updateJobExecution
in class AbstractRepository
public JobExecutionImpl getJobExecution(long jobExecutionId)
getJobExecution
in interface JobRepository
getJobExecution
in class AbstractPersistentRepository
public List<javax.batch.runtime.JobExecution> getJobExecutions(javax.batch.runtime.JobInstance jobInstance)
public List<Long> getRunningExecutions(String jobName)
JobRepository
jobName
- the name of the job, not nullJobOperatorImpl.getRunningExecutions(java.lang.String)
public void updateStepExecution(javax.batch.runtime.StepExecution stepExecution)
public void savePersistentData(javax.batch.runtime.JobExecution jobExecution, AbstractStepExecution stepOrPartitionExecution)
savePersistentData
in interface JobRepository
savePersistentData
in class AbstractRepository
public void addPartitionExecution(StepExecutionImpl enclosingStepExecution, PartitionExecutionImpl partitionExecution)
addPartitionExecution
in interface JobRepository
addPartitionExecution
in class AbstractRepository
public StepExecutionImpl findOriginalStepExecutionForRestart(String stepName, JobExecutionImpl jobExecutionToRestart, ClassLoader classLoader)
findOriginalStepExecutionForRestart
in interface JobRepository
findOriginalStepExecutionForRestart
in class AbstractPersistentRepository
public List<PartitionExecutionImpl> getPartitionExecutions(long stepExecutionId, StepExecutionImpl stepExecution, boolean notCompletedOnly, ClassLoader classLoader)
getPartitionExecutions
in interface JobRepository
getPartitionExecutions
in class AbstractRepository
public int countStepStartTimes(String stepName, long jobInstanceId)
public void executeRemoveQueries(String removeQueries)
removeQueries
- a series of remove queries delimited by semi-colon (;). For example,
db.PARTITION_EXECUTION.remove({ STEPEXECUTIONID: { $gt: 100 } });
db.STEP_EXECUTION.remove({ STEPEXECUTIONID: { $gt: 100 } });
db.JOB_EXECUTION.remove({ JOBEXECUTIONID: { $gt: 10 } });
db.JOB_INSTANCE.remove({ JOBINSTANCEID: { $gt: 10 } })Copyright © 2015 JBoss by Red Hat. All rights reserved.