org.camunda.bpm.engine.impl.batch
Class BatchStatisticsEntity

java.lang.Object
  extended by org.camunda.bpm.engine.impl.batch.BatchEntity
      extended by org.camunda.bpm.engine.impl.batch.BatchStatisticsEntity
All Implemented Interfaces:
Batch, BatchStatistics, DbEntity, HasDbRevision, Nameable

public class BatchStatisticsEntity
extends BatchEntity
implements BatchStatistics


Field Summary
protected  int failedJobs
           
protected  int remainingJobs
           
 
Fields inherited from class org.camunda.bpm.engine.impl.batch.BatchEntity
BATCH_MONITOR_JOB_DECLARATION, BATCH_SEED_JOB_DECLARATION, batchJobDefinition, batchJobDefinitionId, batchJobHandler, batchJobsPerSeed, configuration, id, invocationsPerBatchJob, jobsCreated, monitorJobDefinition, monitorJobDefinitionId, revision, seedJobDefinition, seedJobDefinitionId, suspensionState, tenantId, totalJobs, type
 
Fields inherited from interface org.camunda.bpm.engine.batch.Batch
TYPE_PROCESS_INSTANCE_MIGRATION
 
Constructor Summary
BatchStatisticsEntity()
           
 
Method Summary
 int getCompletedJobs()
           The number of completed batch execution jobs.
 int getFailedJobs()
           The number of failed batch execution jobs.
 int getJobsToCreate()
           
 int getRemainingJobs()
           The number of remaining batch execution jobs.
 void setFailedJobs(int failedJobs)
           
 void setRemainingJobs(int remainingJobs)
           
 String toString()
           
 
Methods inherited from class org.camunda.bpm.engine.impl.batch.BatchEntity
calculateMonitorJobDueDate, createBatchJobDefinition, createMonitorJob, createMonitorJobDefinition, createSeedJob, createSeedJobDefinition, delete, deleteMonitorJob, deleteSeedJob, fireHistoricEndEvent, fireHistoricStartEvent, getBatchJobDefinition, getBatchJobDefinitionId, getBatchJobHandler, getBatchJobsPerSeed, getConfiguration, getConfigurationBytes, getId, getInvocationsPerBatchJob, getJobsCreated, getMonitorJobDefinition, getMonitorJobDefinitionId, getName, getPersistentState, getRevision, getRevisionNext, getSeedJobDefinition, getSeedJobDefinitionId, getSuspensionState, getTenantId, getTotalJobs, getType, isCompleted, isSuspended, setBatchJobDefinitionId, setBatchJobsPerSeed, setConfiguration, setConfigurationBytes, setId, setInvocationsPerBatchJob, setJobsCreated, setMonitorJobDefinitionId, setRevision, setSeedJobDefinitionId, 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, getId, getInvocationsPerBatchJob, getJobsCreated, getMonitorJobDefinitionId, getSeedJobDefinitionId, getTenantId, getTotalJobs, getType, isSuspended
 

Field Detail

remainingJobs

protected int remainingJobs

failedJobs

protected int failedJobs
Constructor Detail

BatchStatisticsEntity

public BatchStatisticsEntity()
Method Detail

getRemainingJobs

public int getRemainingJobs()
Description copied from interface: BatchStatistics

The 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 and BatchStatistics.getFailedJobs() for the number of failed batch execution jobs.

Specified by:
getRemainingJobs in interface BatchStatistics
Returns:
the number of remaining batch execution jobs

setRemainingJobs

public void setRemainingJobs(int remainingJobs)

getCompletedJobs

public int getCompletedJobs()
Description copied from interface: BatchStatistics

The 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 and BatchStatistics.getFailedJobs() for the number of failed batch execution jobs.

Specified by:
getCompletedJobs in interface BatchStatistics
Returns:
the number of completed batch execution jobs

getFailedJobs

public int getFailedJobs()
Description copied from interface: BatchStatistics

The 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 and BatchStatistics.getCompletedJobs() ()} for the number of completed batch execution jobs.

Specified by:
getFailedJobs in interface BatchStatistics
Returns:
the number of failed batch execution jobs

setFailedJobs

public void setFailedJobs(int failedJobs)

getJobsToCreate

public int getJobsToCreate()

toString

public String toString()
Overrides:
toString in class BatchEntity


Copyright © 2016 camunda services GmbH. All rights reserved.