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

java.lang.Object
  extended by org.camunda.bpm.engine.impl.batch.BatchMonitorJobHandler
All Implemented Interfaces:
JobHandler<BatchMonitorJobHandler.BatchMonitorJobConfiguration>

public class BatchMonitorJobHandler
extends Object
implements JobHandler<BatchMonitorJobHandler.BatchMonitorJobConfiguration>

Job handler for batch monitor jobs. The batch monitor job polls for the completion of the batch.


Nested Class Summary
static class BatchMonitorJobHandler.BatchMonitorJobConfiguration
           
 
Field Summary
static String TYPE
           
 
Constructor Summary
BatchMonitorJobHandler()
           
 
Method Summary
 void execute(BatchMonitorJobHandler.BatchMonitorJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId)
           
 String getType()
           
 BatchMonitorJobHandler.BatchMonitorJobConfiguration newConfiguration(String canonicalString)
           
 void onDelete(BatchMonitorJobHandler.BatchMonitorJobConfiguration configuration, JobEntity jobEntity)
          Clean up before job is deleted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final String TYPE
See Also:
Constant Field Values
Constructor Detail

BatchMonitorJobHandler

public BatchMonitorJobHandler()
Method Detail

getType

public String getType()
Specified by:
getType in interface JobHandler<BatchMonitorJobHandler.BatchMonitorJobConfiguration>

execute

public void execute(BatchMonitorJobHandler.BatchMonitorJobConfiguration configuration,
                    ExecutionEntity execution,
                    CommandContext commandContext,
                    String tenantId)
Specified by:
execute in interface JobHandler<BatchMonitorJobHandler.BatchMonitorJobConfiguration>

newConfiguration

public BatchMonitorJobHandler.BatchMonitorJobConfiguration newConfiguration(String canonicalString)
Specified by:
newConfiguration in interface JobHandler<BatchMonitorJobHandler.BatchMonitorJobConfiguration>

onDelete

public void onDelete(BatchMonitorJobHandler.BatchMonitorJobConfiguration configuration,
                     JobEntity jobEntity)
Description copied from interface: JobHandler
Clean up before job is deleted. Like removing of auxiliary entities specific for this job handler.

Specified by:
onDelete in interface JobHandler<BatchMonitorJobHandler.BatchMonitorJobConfiguration>
Parameters:
configuration - the job handler configuration
jobEntity - the job entity to be deleted


Copyright © 2017 camunda services GmbH. All rights reserved.