
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, removeJobInstanceaddJob, addStepExecution, createStepExecution, getJob, getJobNames, jobExistsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddJob, addStepExecution, createStepExecution, getJob, getJobNames, jobExistspublic MongoRepository(Properties configProperties)
public static MongoRepository create(Properties configProperties)
public JobInstanceImpl getJobInstance(long jobInstanceId)
getJobInstance in interface JobRepositorygetJobInstance in class AbstractPersistentRepositorypublic int getJobInstanceCount(String jobName)
public void updateJobExecution(JobExecutionImpl jobExecution, boolean fullUpdate, boolean saveJobParameters)
updateJobExecution in interface JobRepositoryupdateJobExecution in class AbstractRepositorypublic JobExecutionImpl getJobExecution(long jobExecutionId)
getJobExecution in interface JobRepositorygetJobExecution in class AbstractPersistentRepositorypublic List<javax.batch.runtime.JobExecution> getJobExecutions(javax.batch.runtime.JobInstance jobInstance)
public List<Long> getRunningExecutions(String jobName)
JobRepositoryjobName - the name of the job, not nullAbstractJobOperator.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 JobRepositorysavePersistentData in class AbstractRepositorypublic void addPartitionExecution(StepExecutionImpl enclosingStepExecution, PartitionExecutionImpl partitionExecution)
addPartitionExecution in interface JobRepositoryaddPartitionExecution in class AbstractRepositorypublic StepExecutionImpl findOriginalStepExecutionForRestart(String stepName, JobExecutionImpl jobExecutionToRestart, ClassLoader classLoader)
findOriginalStepExecutionForRestart in interface JobRepositoryfindOriginalStepExecutionForRestart in class AbstractPersistentRepositorypublic List<PartitionExecutionImpl> getPartitionExecutions(long stepExecutionId, StepExecutionImpl stepExecution, boolean notCompletedOnly, ClassLoader classLoader)
getPartitionExecutions in interface JobRepositorygetPartitionExecutions in class AbstractRepositorypublic 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 © 2018 JBoss by Red Hat. All rights reserved.