Class SimpleDistributedProcessExecutionAnalysisContext
- java.lang.Object
-
- de.hybris.platform.processing.distributed.simple.context.SimpleDistributedProcessExecutionAnalysisContext
-
- All Implemented Interfaces:
DistributedProcessHandler.ProcessExecutionAnalysisContext
public class SimpleDistributedProcessExecutionAnalysisContext extends java.lang.Object implements DistributedProcessHandler.ProcessExecutionAnalysisContext
-
-
Field Summary
Fields Modifier and Type Field Description protected DistributedProcessHandler.ProcessExecutionAnalysisContextconcreteCtxprotected DistributedProcessServicedistributedProcessServiceprotected FlexibleSearchServiceflexibleSearchServiceprotected ModelServicemodelServiceprotected DistributedProcessModelprocess
-
Constructor Summary
Constructors Constructor Description SimpleDistributedProcessExecutionAnalysisContext(FlexibleSearchService flexibleSearchService, ModelService modelService, DistributedProcessService distributedProcessService, DistributedProcessModel process)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected longcountBatches(java.lang.String countQuery)protected DistributedProcessHandler.ProcessExecutionAnalysisContextcreateConcreteCtx()java.util.stream.Stream<DistributedProcessHandler.ModelWithDependencies<BatchModel>>nextExecutionInputBatches()DistributedProcessHandler.ModelWithDependencies<DistributedProcessModel>prepareProcessForNextExecution()booleanprocessFailed()booleanprocessSucceeded()protected booleanthereAreUnfinishedBatches()protected booleanthereAreUnretryableBatches()
-
-
-
Field Detail
-
flexibleSearchService
protected final FlexibleSearchService flexibleSearchService
-
modelService
protected final ModelService modelService
-
distributedProcessService
protected final DistributedProcessService distributedProcessService
-
process
protected final DistributedProcessModel process
-
concreteCtx
protected final DistributedProcessHandler.ProcessExecutionAnalysisContext concreteCtx
-
-
Constructor Detail
-
SimpleDistributedProcessExecutionAnalysisContext
public SimpleDistributedProcessExecutionAnalysisContext(FlexibleSearchService flexibleSearchService, ModelService modelService, DistributedProcessService distributedProcessService, DistributedProcessModel process)
-
-
Method Detail
-
createConcreteCtx
protected DistributedProcessHandler.ProcessExecutionAnalysisContext createConcreteCtx()
-
thereAreUnfinishedBatches
protected boolean thereAreUnfinishedBatches()
-
thereAreUnretryableBatches
protected boolean thereAreUnretryableBatches()
-
countBatches
protected long countBatches(java.lang.String countQuery)
-
processFailed
public boolean processFailed()
- Specified by:
processFailedin interfaceDistributedProcessHandler.ProcessExecutionAnalysisContext
-
processSucceeded
public boolean processSucceeded()
- Specified by:
processSucceededin interfaceDistributedProcessHandler.ProcessExecutionAnalysisContext
-
nextExecutionInputBatches
public java.util.stream.Stream<DistributedProcessHandler.ModelWithDependencies<BatchModel>> nextExecutionInputBatches()
- Specified by:
nextExecutionInputBatchesin interfaceDistributedProcessHandler.ProcessExecutionAnalysisContext
-
prepareProcessForNextExecution
public DistributedProcessHandler.ModelWithDependencies<DistributedProcessModel> prepareProcessForNextExecution()
- Specified by:
prepareProcessForNextExecutionin interfaceDistributedProcessHandler.ProcessExecutionAnalysisContext
-
-