public class BatchEntity extends Object implements Batch, DbEntity, HasDbReferences, 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 |
createUserId |
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_BATCH_SET_REMOVAL_TIME, 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
Constructor and Description |
---|
BatchEntity() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDependentEntities
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 String createUserId
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 Batch
public void setTotalJobs(int totalJobs)
public int getJobsCreated()
getJobsCreated
in interface Batch
public void setJobsCreated(int jobsCreated)
public int getBatchJobsPerSeed()
getBatchJobsPerSeed
in interface Batch
public void setBatchJobsPerSeed(int batchJobsPerSeed)
public int getInvocationsPerBatchJob()
getInvocationsPerBatchJob
in interface Batch
public void setInvocationsPerBatchJob(int invocationsPerBatchJob)
public String getSeedJobDefinitionId()
getSeedJobDefinitionId
in interface Batch
public void setSeedJobDefinitionId(String seedJobDefinitionId)
public String getMonitorJobDefinitionId()
getMonitorJobDefinitionId
in interface Batch
public void setMonitorJobDefinitionId(String monitorJobDefinitionId)
public String getBatchJobDefinitionId()
getBatchJobDefinitionId
in interface Batch
public void setBatchJobDefinitionId(String batchJobDefinitionId)
public String getTenantId()
getTenantId
in interface Batch
public void setTenantId(String tenantId)
public String getCreateUserId()
getCreateUserId
in interface Batch
public void setCreateUserId(String createUserId)
public String getConfiguration()
public void setConfiguration(String configuration)
public void setSuspensionState(int state)
public int getSuspensionState()
public boolean isSuspended()
Batch
Indicates 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 Batch
ManagementService.suspendBatchById(String)
,
ManagementService.activateBatchById(String)
public void setRevision(int revision)
setRevision
in interface HasDbRevision
public int getRevision()
getRevision
in interface HasDbRevision
public int getRevisionNext()
getRevisionNext
in interface HasDbRevision
public JobDefinitionEntity getSeedJobDefinition()
public JobDefinitionEntity getMonitorJobDefinition()
public JobDefinitionEntity getBatchJobDefinition()
public byte[] getConfigurationBytes()
public void setConfigurationBytes(byte[] configuration)
public BatchJobHandler<?> getBatchJobHandler()
public Object getPersistentState()
DbEntity
getPersistentState
in interface DbEntity
public JobDefinitionEntity createSeedJobDefinition(String deploymentId)
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, boolean deleteJobs)
public void fireHistoricStartEvent()
public void fireHistoricEndEvent()
public boolean isCompleted()
public Set<String> getReferencedEntityIds()
HasDbReferences
Scope: IN-MEMORY references
getReferencedEntityIds
in interface HasDbReferences
public Map<String,Class> getReferencedEntitiesIdAndClass()
HasDbReferences
Scope: IN-MEMORY references
getReferencedEntitiesIdAndClass
in interface HasDbReferences
Copyright © 2021. All rights reserved.