Class BatchStatisticsEntity
- All Implemented Interfaces:
Batch,BatchStatistics,DbEntity,HasDbReferences,HasDbRevision,Nameable
-
Field Summary
FieldsFields inherited from class org.camunda.bpm.engine.impl.batch.BatchEntity
BATCH_MONITOR_JOB_DECLARATION, BATCH_SEED_JOB_DECLARATION, batchJobDefinition, batchJobDefinitionId, batchJobHandler, batchJobsPerSeed, configuration, createUserId, executionStartTime, id, invocationsPerBatchJob, jobsCreated, monitorJobDefinition, monitorJobDefinitionId, revision, seedJobDefinition, seedJobDefinitionId, startTime, suspensionState, tenantId, totalJobs, typeFields inherited from interface org.camunda.bpm.engine.batch.Batch
TYPE_BATCH_SET_REMOVAL_TIME, TYPE_CORRELATE_MESSAGE, TYPE_DECISION_SET_REMOVAL_TIME, TYPE_HISTORIC_DECISION_INSTANCE_DELETION, TYPE_HISTORIC_PROCESS_INSTANCE_DELETION, TYPE_PROCESS_INSTANCE_DELETION, TYPE_PROCESS_INSTANCE_MIGRATION, TYPE_PROCESS_INSTANCE_MODIFICATION, TYPE_PROCESS_INSTANCE_RESTART, TYPE_PROCESS_INSTANCE_UPDATE_SUSPENSION_STATE, TYPE_PROCESS_SET_REMOVAL_TIME, TYPE_SET_EXTERNAL_TASK_RETRIES, TYPE_SET_JOB_RETRIES, TYPE_SET_VARIABLES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThe number of completed batch execution jobs.intThe number of failed batch execution jobs.intintThe number of remaining batch execution jobs.voidsetFailedJobs(int failedJobs) voidsetRemainingJobs(int remainingJobs) toString()Methods inherited from class org.camunda.bpm.engine.impl.batch.BatchEntity
calculateMonitorJobDueDate, createBatchJobDefinition, createMonitorJob, createMonitorJobDefinition, createSeedJob, createSeedJobDefinition, delete, deleteMonitorJob, deleteSeedJob, deleteVariables, fireHistoricEndEvent, fireHistoricStartEvent, fireHistoricUpdateEvent, getBatchJobDefinition, getBatchJobDefinitionId, getBatchJobHandler, getBatchJobsPerSeed, getConfiguration, getConfigurationBytes, getCreateUserId, getExecutionStartTime, getId, getInvocationsPerBatchJob, getJobsCreated, getMonitorJobDefinition, getMonitorJobDefinitionId, getName, getPersistentState, getReferencedEntitiesIdAndClass, getReferencedEntityIds, getRevision, getRevisionNext, getSeedJobDefinition, getSeedJobDefinitionId, getStartTime, getSuspensionState, getTenantId, getTotalJobs, getType, isCompleted, isSuspended, setBatchJobDefinitionId, setBatchJobsPerSeed, setConfiguration, setConfigurationBytes, setCreateUserId, setExecutionStartTime, setId, setInvocationsPerBatchJob, setJobsCreated, setMonitorJobDefinitionId, setRevision, setSeedJobDefinitionId, setStartTime, setSuspensionState, setTenantId, setTotalJobs, setTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.camunda.bpm.engine.batch.Batch
getBatchJobDefinitionId, getBatchJobsPerSeed, getCreateUserId, getExecutionStartTime, getId, getInvocationsPerBatchJob, getJobsCreated, getMonitorJobDefinitionId, getSeedJobDefinitionId, getStartTime, getTenantId, getTotalJobs, getType, isSuspendedMethods inherited from interface org.camunda.bpm.engine.impl.db.HasDbReferences
getDependentEntities
-
Field Details
-
remainingJobs
protected int remainingJobs -
failedJobs
protected int failedJobs
-
-
Constructor Details
-
BatchStatisticsEntity
public BatchStatisticsEntity()
-
-
Method Details
-
getRemainingJobs
public int getRemainingJobs()Description copied from interface:BatchStatisticsThe number of remaining batch execution jobs. This does include failed batch execution jobs and batch execution jobs which still have to be created by the seed job.
See
Batch.getTotalJobs()for the number of all batch execution jobs,BatchStatistics.getCompletedJobs()for the number of completed batch execution jobs andBatchStatistics.getFailedJobs()for the number of failed batch execution jobs.- Specified by:
getRemainingJobsin interfaceBatchStatistics- Returns:
- the number of remaining batch execution jobs
-
setRemainingJobs
public void setRemainingJobs(int remainingJobs) -
getCompletedJobs
public int getCompletedJobs()Description copied from interface:BatchStatisticsThe number of completed batch execution jobs. This does include aborted/deleted batch execution jobs.
See
Batch.getTotalJobs()for the number of all batch execution jobs,BatchStatistics.getRemainingJobs()()} for the number of remaining batch execution jobs andBatchStatistics.getFailedJobs()for the number of failed batch execution jobs.- Specified by:
getCompletedJobsin interfaceBatchStatistics- Returns:
- the number of completed batch execution jobs
-
getFailedJobs
public int getFailedJobs()Description copied from interface:BatchStatisticsThe number of failed batch execution jobs. This does not include aborted or deleted batch execution jobs.
See
Batch.getTotalJobs()for the number of all batch execution jobs,BatchStatistics.getRemainingJobs()()} for the number of remaining batch execution jobs andBatchStatistics.getCompletedJobs()()} for the number of completed batch execution jobs.- Specified by:
getFailedJobsin interfaceBatchStatistics- Returns:
- the number of failed batch execution jobs
-
setFailedJobs
public void setFailedJobs(int failedJobs) -
getJobsToCreate
public int getJobsToCreate() -
toString
- Overrides:
toStringin classBatchEntity
-