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 CommandContext
commandContext
protected BatchConfiguration
config
protected OperationLogHandler
operationLogHandler
protected OperationLogInstanceCountHandler
operationLogInstanceCountHandler
protected Permission
permission
protected PermissionHandler
permissionHandler
protected java.lang.String
tenantId
protected java.lang.Integer
totalJobsCount
protected java.lang.String
type
-
Constructor Summary
Constructors Constructor Description BatchBuilder(CommandContext commandContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Batch
build()
protected int
calculateInvocationsPerBatchJob(java.lang.String batchType)
protected int
calculateTotalJobs(int instanceCount, int invocationPerBatchJobCount)
protected void
checkPermissions()
BatchBuilder
config(BatchConfiguration config)
protected BatchEntity
configure(BatchEntity batch)
BatchBuilder
operationLogHandler(OperationLogHandler operationLogHandler)
BatchBuilder
operationLogHandler(OperationLogInstanceCountHandler operationLogHandler)
BatchBuilder
permission(Permission permission)
BatchBuilder
permissionHandler(PermissionHandler permissionCheckHandler)
protected void
save(BatchEntity batch)
protected void
setTotalJobs(BatchEntity batch, int invocationPerBatchJobCount)
BatchBuilder
tenantId(java.lang.String tenantId)
BatchBuilder
totalJobs(int totalJobsCount)
BatchBuilder
type(java.lang.String batchType)
protected void
writeOperationLog()
-
-
-
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)
-
-