Class BatchBuilder
- java.lang.Object
-
- org.camunda.bpm.engine.impl.batch.builder.BatchBuilder
-
public class BatchBuilder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected CommandContextcommandContextprotected BatchConfigurationconfigprotected OperationLogHandleroperationLogHandlerprotected OperationLogInstanceCountHandleroperationLogInstanceCountHandlerprotected Permissionpermissionprotected PermissionHandlerpermissionHandlerprotected java.lang.StringtenantIdprotected java.lang.IntegertotalJobsCountprotected java.lang.Stringtype
-
Constructor Summary
Constructors Constructor Description BatchBuilder(CommandContext commandContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Batchbuild()protected intcalculateInvocationsPerBatchJob(java.lang.String batchType)protected intcalculateTotalJobs(int instanceCount, int invocationPerBatchJobCount)protected voidcheckPermissions()BatchBuilderconfig(BatchConfiguration config)protected BatchEntityconfigure(BatchEntity batch)BatchBuilderoperationLogHandler(OperationLogHandler operationLogHandler)BatchBuilderoperationLogHandler(OperationLogInstanceCountHandler operationLogHandler)BatchBuilderpermission(Permission permission)BatchBuilderpermissionHandler(PermissionHandler permissionCheckHandler)protected voidsave(BatchEntity batch)protected voidsetTotalJobs(BatchEntity batch, int invocationPerBatchJobCount)BatchBuildertenantId(java.lang.String tenantId)BatchBuildertotalJobs(int totalJobsCount)BatchBuildertype(java.lang.String batchType)protected voidwriteOperationLog()
-
-
-
Field Detail
-
commandContext
protected CommandContext commandContext
-
config
protected BatchConfiguration config
-
tenantId
protected java.lang.String tenantId
-
type
protected java.lang.String type
-
totalJobsCount
protected java.lang.Integer totalJobsCount
-
permission
protected Permission permission
-
permissionHandler
protected PermissionHandler permissionHandler
-
operationLogInstanceCountHandler
protected OperationLogInstanceCountHandler operationLogInstanceCountHandler
-
operationLogHandler
protected OperationLogHandler operationLogHandler
-
-
Constructor Detail
-
BatchBuilder
public BatchBuilder(CommandContext commandContext)
-
-
Method Detail
-
tenantId
public BatchBuilder tenantId(java.lang.String tenantId)
-
config
public BatchBuilder config(BatchConfiguration config)
-
type
public BatchBuilder type(java.lang.String batchType)
-
totalJobs
public BatchBuilder totalJobs(int totalJobsCount)
-
permission
public BatchBuilder permission(Permission permission)
-
permissionHandler
public BatchBuilder permissionHandler(PermissionHandler permissionCheckHandler)
-
operationLogHandler
public BatchBuilder operationLogHandler(OperationLogInstanceCountHandler operationLogHandler)
-
operationLogHandler
public BatchBuilder operationLogHandler(OperationLogHandler operationLogHandler)
-
build
public Batch build()
-
checkPermissions
protected void checkPermissions()
-
configure
protected BatchEntity configure(BatchEntity batch)
-
setTotalJobs
protected void setTotalJobs(BatchEntity batch, int invocationPerBatchJobCount)
-
save
protected void save(BatchEntity batch)
-
writeOperationLog
protected void writeOperationLog()
-
calculateTotalJobs
protected int calculateTotalJobs(int instanceCount, int invocationPerBatchJobCount)
-
calculateInvocationsPerBatchJob
protected int calculateInvocationsPerBatchJob(java.lang.String batchType)
-
-