org.camunda.bpm.engine.impl.jobexecutor.historycleanup
Class HistoryCleanupJobHandler

java.lang.Object
  extended by org.camunda.bpm.engine.impl.jobexecutor.historycleanup.HistoryCleanupJobHandler
All Implemented Interfaces:
JobHandler<HistoryCleanupJobHandlerConfiguration>

public class HistoryCleanupJobHandler
extends Object
implements JobHandler<HistoryCleanupJobHandlerConfiguration>

Job handler for history cleanup job.

Author:
Svetlana Dorokhova

Field Summary
static String TYPE
           
 
Constructor Summary
HistoryCleanupJobHandler()
           
 
Method Summary
 void execute(HistoryCleanupJobHandlerConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId)
           
 Integer getBatchSizeThreshold(CommandContext commandContext)
           
 String getType()
           
 HistoryCleanupJobHandlerConfiguration newConfiguration(String canonicalString)
           
 void onDelete(HistoryCleanupJobHandlerConfiguration 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

HistoryCleanupJobHandler

public HistoryCleanupJobHandler()
Method Detail

getType

public String getType()
Specified by:
getType in interface JobHandler<HistoryCleanupJobHandlerConfiguration>

execute

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

newConfiguration

public HistoryCleanupJobHandlerConfiguration newConfiguration(String canonicalString)
Specified by:
newConfiguration in interface JobHandler<HistoryCleanupJobHandlerConfiguration>

onDelete

public void onDelete(HistoryCleanupJobHandlerConfiguration 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<HistoryCleanupJobHandlerConfiguration>
Parameters:
configuration - the job handler configuration
jobEntity - the job entity to be deleted

getBatchSizeThreshold

public Integer getBatchSizeThreshold(CommandContext commandContext)


Copyright © 2017 camunda services GmbH. All rights reserved.