Class BatchStatisticsEntity
- java.lang.Object
-
- org.camunda.bpm.engine.impl.batch.BatchEntity
-
- org.camunda.bpm.engine.impl.batch.BatchStatisticsEntity
-
- All Implemented Interfaces:
Batch,BatchStatistics,DbEntity,HasDbReferences,HasDbRevision,Nameable
public class BatchStatisticsEntity extends BatchEntity implements BatchStatistics
-
-
Field Summary
Fields Modifier and Type Field Description protected intfailedJobsprotected intremainingJobs-
Fields 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, type
-
Fields 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 Constructor Description BatchStatisticsEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCompletedJobs()The number of completed batch execution jobs.intgetFailedJobs()The number of failed batch execution jobs.intgetJobsToCreate()intgetRemainingJobs()The number of remaining batch execution jobs.voidsetFailedJobs(int failedJobs)voidsetRemainingJobs(int remainingJobs)java.lang.StringtoString()-
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, setType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.batch.Batch
getBatchJobDefinitionId, getBatchJobsPerSeed, getCreateUserId, getExecutionStartTime, getId, getInvocationsPerBatchJob, getJobsCreated, getMonitorJobDefinitionId, getSeedJobDefinitionId, getStartTime, getTenantId, getTotalJobs, getType, isSuspended
-
Methods inherited from interface org.camunda.bpm.engine.impl.db.HasDbReferences
getDependentEntities
-
-
-
-
Method Detail
-
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
public java.lang.String toString()
- Overrides:
toStringin classBatchEntity
-
-