|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.batch.AbstractProcessInstanceBatchJobHandler<T>
public abstract class AbstractProcessInstanceBatchJobHandler<T extends AbstractProcessInstanceBatchConfiguration>
Common methods for batch job handlers based on process instances, providing serialization, configuration instantiation, etc.
| Constructor Summary | |
|---|---|
AbstractProcessInstanceBatchJobHandler()
|
|
| Method Summary | |
|---|---|
protected JobEntity |
createBatchJob(BatchEntity batch,
ByteArrayEntity configuration)
|
protected abstract T |
createJobConfiguration(T configuration,
List<String> processIdsForJob)
|
boolean |
createJobs(BatchEntity batch)
Creates batch jobs for a batch. |
void |
deleteJobs(BatchEntity batch)
Delete all jobs for a batch. |
abstract JobDeclaration<BatchJobContext,MessageEntity> |
getJobDeclaration()
Get the job declaration for batch jobs. |
protected abstract JsonObjectConverter<T> |
getJsonConverterInstance()
|
BatchJobConfiguration |
newConfiguration(String canonicalString)
|
void |
onDelete(BatchJobConfiguration configuration,
JobEntity jobEntity)
Clean up before job is deleted. |
protected void |
postProcessJob(T configuration,
JobEntity job)
|
T |
readConfiguration(byte[] serializedConfiguration)
Read the serialized configuration of the batch. |
protected ByteArrayEntity |
saveConfiguration(ByteArrayManager byteArrayManager,
T jobConfiguration)
|
byte[] |
writeConfiguration(T 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 |
| Methods inherited from interface org.camunda.bpm.engine.impl.jobexecutor.JobHandler |
|---|
execute, getType |
| Constructor Detail |
|---|
public AbstractProcessInstanceBatchJobHandler()
| Method Detail |
|---|
public abstract JobDeclaration<BatchJobContext,MessageEntity> getJobDeclaration()
BatchJobHandler
getJobDeclaration in interface BatchJobHandler<T extends AbstractProcessInstanceBatchConfiguration>public boolean createJobs(BatchEntity batch)
BatchJobHandler
createJobs in interface BatchJobHandler<T extends AbstractProcessInstanceBatchConfiguration>batch - the batch to create jobs for
protected abstract T createJobConfiguration(T configuration,
List<String> processIdsForJob)
protected void postProcessJob(T configuration,
JobEntity job)
protected JobEntity createBatchJob(BatchEntity batch,
ByteArrayEntity configuration)
public void deleteJobs(BatchEntity batch)
BatchJobHandler
deleteJobs in interface BatchJobHandler<T extends AbstractProcessInstanceBatchConfiguration>batch - the batch to delete jobs forpublic BatchJobConfiguration newConfiguration(String canonicalString)
newConfiguration in interface JobHandler<BatchJobConfiguration>
public void onDelete(BatchJobConfiguration configuration,
JobEntity jobEntity)
JobHandler
onDelete in interface JobHandler<BatchJobConfiguration>configuration - the job handler configurationjobEntity - the job entity to be deleted
protected ByteArrayEntity saveConfiguration(ByteArrayManager byteArrayManager,
T jobConfiguration)
public byte[] writeConfiguration(T configuration)
BatchJobHandler
writeConfiguration in interface BatchJobHandler<T extends AbstractProcessInstanceBatchConfiguration>configuration - the configuration object
public T readConfiguration(byte[] serializedConfiguration)
BatchJobHandler
readConfiguration in interface BatchJobHandler<T extends AbstractProcessInstanceBatchConfiguration>serializedConfiguration - the serialized configuration
protected abstract JsonObjectConverter<T> getJsonConverterInstance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||