Package fr.becpg.repo.batch
Interface BatchQueueService
- All Known Implementing Classes:
BatchQueueServiceImpl
public interface BatchQueueService
BatchQueueService interface.
- Version:
- $Id: $Id
- Author:
- matthieu
-
Method Summary
Modifier and TypeMethodDescriptionbooleancancelBatch(String batchId) cancelBatch.getBatchesInQueue.org.alfresco.repo.batch.BatchMonitorgetLastRunningBatch.getRunningBatchInfo.booleanisBatchInQueue(BatchInfo batchInfo) isBatchInQueue.<T> BooleanqueueBatch(BatchInfo batchInfo, List<BatchStep<T>> batchSteps) queueBatch.<T> BooleanqueueBatch(BatchInfo batchInfo, List<BatchStep<T>> batchSteps, BatchClosingHook closingHook) queueBatch.<T> BooleanqueueBatch(BatchInfo batchInfo, org.alfresco.repo.batch.BatchProcessWorkProvider<T> workProvider, org.alfresco.repo.batch.BatchProcessor.BatchProcessWorker<T> processWorker, BatchErrorCallback errorCallback) queueBatch.booleanremoveBatchFromQueue(String batchId) removeBatchFromQueue.
-
Method Details
-
queueBatch
<T> Boolean queueBatch(BatchInfo batchInfo, org.alfresco.repo.batch.BatchProcessWorkProvider<T> workProvider, org.alfresco.repo.batch.BatchProcessor.BatchProcessWorker<T> processWorker, BatchErrorCallback errorCallback) queueBatch.
- Type Parameters:
T- a T class- Parameters:
batchInfo- aBatchInfoobjectworkProvider- aBatchProcessWorkProviderobjectprocessWorker- aBatchProcessor.BatchProcessWorkerobjecterrorCallback- aBatchErrorCallbackobject- Returns:
- a
Booleanobject
-
queueBatch
queueBatch.
-
isBatchInQueue
isBatchInQueue.
- Parameters:
batchInfo- aBatchInfoobject- Returns:
- a boolean
-
queueBatch
<T> Boolean queueBatch(BatchInfo batchInfo, List<BatchStep<T>> batchSteps, BatchClosingHook closingHook) queueBatch.
- Type Parameters:
T- a T class- Parameters:
batchInfo- aBatchInfoobjectbatchSteps- aListobjectclosingHook- aBatchClosingHookobject- Returns:
- a
Booleanobject
-
getBatchesInQueue
getBatchesInQueue.
- Returns:
- a
Listobject
-
removeBatchFromQueue
removeBatchFromQueue.
- Parameters:
batchId- aStringobject- Returns:
- a boolean
-
getLastRunningBatch
org.alfresco.repo.batch.BatchMonitor getLastRunningBatch()getLastRunningBatch.
- Returns:
- a
BatchMonitorobject
-
cancelBatch
cancelBatch.
- Parameters:
batchId- aStringobject- Returns:
- a boolean
-
getRunningBatchInfo
String getRunningBatchInfo()getRunningBatchInfo.
- Returns:
- a
Stringobject
-