Class BatchBuilder
- java.lang.Object
-
- org.camunda.bpm.engine.impl.batch.builder.BatchBuilder
-
public class BatchBuilder extends 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 String
tenantId
protected Integer
totalJobsCount
protected 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(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(String tenantId)
BatchBuilder
totalJobs(int totalJobsCount)
BatchBuilder
type(String batchType)
protected void
writeOperationLog()
-
-
-
Field Detail
-
commandContext
protected CommandContext commandContext
-
config
protected BatchConfiguration config
-
tenantId
protected String tenantId
-
type
protected String type
-
totalJobsCount
protected 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(String tenantId)
-
config
public BatchBuilder config(BatchConfiguration config)
-
type
public BatchBuilder type(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(String batchType)
-
-