Class SimpleAbstractDistributedProcessCreationData
- java.lang.Object
-
- de.hybris.platform.processing.distributed.simple.data.SimpleAbstractDistributedProcessCreationData
-
- All Implemented Interfaces:
ProcessCreationData
- Direct Known Subclasses:
CollectionBasedCreationData,QueryBasedCreationData
public abstract class SimpleAbstractDistributedProcessCreationData extends java.lang.Object implements ProcessCreationData
-
-
Field Summary
Fields Modifier and Type Field Description protected intbatchSizeprotected static intDEFAULT_BATCH_SIZEprotected static intDEFAULT_NUM_RETRIESprotected java.lang.StringhandlerIdprotected java.lang.StringnodeGroupprotected intnumOfRetriesprotected java.lang.StringprocessIdprotected java.lang.Class<? extends SimpleDistributedProcessModel>processModelClassprotected java.lang.StringscriptCode
-
Constructor Summary
Constructors Modifier Constructor Description protectedSimpleAbstractDistributedProcessCreationData(java.lang.String handlerId, java.lang.String processId, java.lang.String scriptCode, java.lang.String nodeGroup, java.lang.Integer batchSize, java.lang.Integer numOfRetries, java.lang.Class<? extends SimpleDistributedProcessModel> processModelClass)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intgetBatchSize()java.lang.StringgetHandlerBeanId()Responsible for returning spring bean id which will act as aDistributedProcessHandlerfor created process.java.lang.StringgetNodeGroup()Responsible for returning the node group, which may be assigned for the distributed process.intgetNumOfRetries()java.lang.StringgetProcessId()java.lang.Class<? extends SimpleDistributedProcessModel>getProcessModelClass()java.lang.StringgetScriptCode()abstract java.util.stream.Stream<? extends SimpleBatchCreationData>initialBatches()Responsible for returning stream for creating initial batches used by distributed process.
-
-
-
Field Detail
-
DEFAULT_BATCH_SIZE
protected static final int DEFAULT_BATCH_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_NUM_RETRIES
protected static final int DEFAULT_NUM_RETRIES
- See Also:
- Constant Field Values
-
processId
protected final java.lang.String processId
-
handlerId
protected final java.lang.String handlerId
-
scriptCode
protected final java.lang.String scriptCode
-
nodeGroup
protected final java.lang.String nodeGroup
-
batchSize
protected final int batchSize
-
numOfRetries
protected final int numOfRetries
-
processModelClass
protected final java.lang.Class<? extends SimpleDistributedProcessModel> processModelClass
-
-
Constructor Detail
-
SimpleAbstractDistributedProcessCreationData
protected SimpleAbstractDistributedProcessCreationData(java.lang.String handlerId, java.lang.String processId, java.lang.String scriptCode, java.lang.String nodeGroup, java.lang.Integer batchSize, java.lang.Integer numOfRetries, java.lang.Class<? extends SimpleDistributedProcessModel> processModelClass)
-
-
Method Detail
-
getProcessId
public java.lang.String getProcessId()
-
getNumOfRetries
public int getNumOfRetries()
-
getBatchSize
public int getBatchSize()
-
getScriptCode
public java.lang.String getScriptCode()
-
getProcessModelClass
public java.lang.Class<? extends SimpleDistributedProcessModel> getProcessModelClass()
-
initialBatches
public abstract java.util.stream.Stream<? extends SimpleBatchCreationData> initialBatches()
Description copied from interface:ProcessCreationDataResponsible for returning stream for creating initial batches used by distributed process.- Specified by:
initialBatchesin interfaceProcessCreationData- Returns:
- Stream of batch data
-
getHandlerBeanId
public java.lang.String getHandlerBeanId()
Description copied from interface:ProcessCreationDataResponsible for returning spring bean id which will act as aDistributedProcessHandlerfor created process.- Specified by:
getHandlerBeanIdin interfaceProcessCreationData- Returns:
- handler bean id
-
getNodeGroup
public java.lang.String getNodeGroup()
Description copied from interface:ProcessCreationDataResponsible for returning the node group, which may be assigned for the distributed process.- Specified by:
getNodeGroupin interfaceProcessCreationData- Returns:
- node group
-
-