public class BatchEntity extends Object implements Batch, DbEntity, Nameable, HasDbRevision
| Modifier and Type | Field and Description |
|---|---|
static BatchMonitorJobDeclaration |
BATCH_MONITOR_JOB_DECLARATION |
static BatchSeedJobDeclaration |
BATCH_SEED_JOB_DECLARATION |
protected JobDefinitionEntity |
batchJobDefinition |
protected String |
batchJobDefinitionId |
protected BatchJobHandler<?> |
batchJobHandler |
protected int |
batchJobsPerSeed |
protected ByteArrayField |
configuration |
protected String |
id |
protected int |
invocationsPerBatchJob |
protected int |
jobsCreated |
protected JobDefinitionEntity |
monitorJobDefinition |
protected String |
monitorJobDefinitionId |
protected int |
revision |
protected JobDefinitionEntity |
seedJobDefinition |
protected String |
seedJobDefinitionId |
protected int |
suspensionState |
protected String |
tenantId |
protected int |
totalJobs |
protected String |
type |
TYPE_HISTORIC_PROCESS_INSTANCE_DELETION, TYPE_PROCESS_INSTANCE_DELETION, TYPE_PROCESS_INSTANCE_MIGRATION, TYPE_SET_JOB_RETRIES| Constructor and Description |
|---|
BatchEntity() |
public static final BatchSeedJobDeclaration BATCH_SEED_JOB_DECLARATION
public static final BatchMonitorJobDeclaration BATCH_MONITOR_JOB_DECLARATION
protected String id
protected String type
protected int totalJobs
protected int jobsCreated
protected int batchJobsPerSeed
protected int invocationsPerBatchJob
protected String seedJobDefinitionId
protected String monitorJobDefinitionId
protected String batchJobDefinitionId
protected ByteArrayField configuration
protected String tenantId
protected int suspensionState
protected int revision
protected JobDefinitionEntity seedJobDefinition
protected JobDefinitionEntity monitorJobDefinition
protected JobDefinitionEntity batchJobDefinition
protected BatchJobHandler<?> batchJobHandler
public String getId()
public String getType()
public void setType(String type)
public int getTotalJobs()
getTotalJobs in interface Batchpublic void setTotalJobs(int totalJobs)
public int getJobsCreated()
getJobsCreated in interface Batchpublic void setJobsCreated(int jobsCreated)
public int getBatchJobsPerSeed()
getBatchJobsPerSeed in interface Batchpublic void setBatchJobsPerSeed(int batchJobsPerSeed)
public int getInvocationsPerBatchJob()
getInvocationsPerBatchJob in interface Batchpublic void setInvocationsPerBatchJob(int invocationsPerBatchJob)
public String getSeedJobDefinitionId()
getSeedJobDefinitionId in interface Batchpublic void setSeedJobDefinitionId(String seedJobDefinitionId)
public String getMonitorJobDefinitionId()
getMonitorJobDefinitionId in interface Batchpublic void setMonitorJobDefinitionId(String monitorJobDefinitionId)
public String getBatchJobDefinitionId()
getBatchJobDefinitionId in interface Batchpublic void setBatchJobDefinitionId(String batchJobDefinitionId)
public String getTenantId()
getTenantId in interface Batchpublic void setTenantId(String tenantId)
public String getConfiguration()
public void setConfiguration(String configuration)
public void setSuspensionState(int state)
public int getSuspensionState()
public boolean isSuspended()
BatchIndicates whether this batch is suspended. If a batch is suspended, the batch jobs will not be acquired by the job executor.
Note: It is still possible to manually suspend and activate
jobs and job definitions using the ManagementService, which will
not change the suspension state of the batch.
isSuspended in interface BatchManagementService.suspendBatchById(String),
ManagementService.activateBatchById(String)public void setRevision(int revision)
setRevision in interface HasDbRevisionpublic int getRevision()
getRevision in interface HasDbRevisionpublic int getRevisionNext()
getRevisionNext in interface HasDbRevisionpublic JobDefinitionEntity getSeedJobDefinition()
public JobDefinitionEntity getMonitorJobDefinition()
public JobDefinitionEntity getBatchJobDefinition()
public byte[] getConfigurationBytes()
public void setConfigurationBytes(byte[] configuration)
public BatchJobHandler<?> getBatchJobHandler()
public Object getPersistentState()
DbEntitygetPersistentState in interface DbEntitypublic JobDefinitionEntity createSeedJobDefinition()
public JobDefinitionEntity createMonitorJobDefinition()
public JobDefinitionEntity createBatchJobDefinition()
public JobEntity createSeedJob()
public void deleteSeedJob()
public JobEntity createMonitorJob(boolean setDueDate)
protected Date calculateMonitorJobDueDate()
public void deleteMonitorJob()
public void delete(boolean cascadeToHistory)
public void fireHistoricStartEvent()
public void fireHistoricEndEvent()
public boolean isCompleted()
Copyright © 2018. All rights reserved.