|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.camunda.bpm.engine.impl.migration.batch.MigrationBatchJobHandler
public class MigrationBatchJobHandler
Job handler for batch migration jobs. The batch migration job migrates a list of process instances.
Field Summary | |
---|---|
static MigrationBatchJobDeclaration |
JOB_DECLARATION
|
Constructor Summary | |
---|---|
MigrationBatchJobHandler()
|
Method Summary | |
---|---|
protected JobEntity |
createBatchJob(JobDefinitionEntity jobDefinition,
ByteArrayEntity configurationEntity)
|
protected MigrationBatchConfiguration |
createConfigurationForIds(MigrationPlan migrationPlan,
List<String> idsForJob)
|
boolean |
createJobs(BatchEntity batch)
Creates batch jobs for a batch. |
void |
deleteJobs(BatchEntity batch)
Delete all jobs for a batch. |
void |
execute(BatchJobConfiguration configuration,
ExecutionEntity execution,
CommandContext commandContext,
String tenantId)
|
JobDeclaration<?,MessageEntity> |
getJobDeclaration()
Get the job declaration for batch jobs. |
String |
getType()
|
BatchJobConfiguration |
newConfiguration(String canonicalString)
|
MigrationBatchConfiguration |
readConfiguration(byte[] serializedConfiguration)
Read the serialized configuration of the batch. |
protected ByteArrayEntity |
saveConfiguration(ByteArrayManager byteArrayManager,
MigrationBatchConfiguration jobConfiguration)
|
byte[] |
writeConfiguration(MigrationBatchConfiguration configuration)
Converts the configuration of the batch to a byte array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final MigrationBatchJobDeclaration JOB_DECLARATION
Constructor Detail |
---|
public MigrationBatchJobHandler()
Method Detail |
---|
public String getType()
getType
in interface JobHandler<BatchJobConfiguration>
public JobDeclaration<?,MessageEntity> getJobDeclaration()
BatchJobHandler
getJobDeclaration
in interface BatchJobHandler<MigrationBatchConfiguration>
public byte[] writeConfiguration(MigrationBatchConfiguration configuration)
BatchJobHandler
writeConfiguration
in interface BatchJobHandler<MigrationBatchConfiguration>
configuration
- the configuration object
public MigrationBatchConfiguration readConfiguration(byte[] serializedConfiguration)
BatchJobHandler
readConfiguration
in interface BatchJobHandler<MigrationBatchConfiguration>
serializedConfiguration
- the serialized configuration
public boolean createJobs(BatchEntity batch)
BatchJobHandler
createJobs
in interface BatchJobHandler<MigrationBatchConfiguration>
batch
- the batch to create jobs for
protected MigrationBatchConfiguration createConfigurationForIds(MigrationPlan migrationPlan, List<String> idsForJob)
protected ByteArrayEntity saveConfiguration(ByteArrayManager byteArrayManager, MigrationBatchConfiguration jobConfiguration)
protected JobEntity createBatchJob(JobDefinitionEntity jobDefinition, ByteArrayEntity configurationEntity)
public void deleteJobs(BatchEntity batch)
BatchJobHandler
deleteJobs
in interface BatchJobHandler<MigrationBatchConfiguration>
batch
- the batch to delete jobs forpublic void execute(BatchJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId)
execute
in interface JobHandler<BatchJobConfiguration>
public BatchJobConfiguration newConfiguration(String canonicalString)
newConfiguration
in interface JobHandler<BatchJobConfiguration>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |