Class HistoryCleanupJobHandler
java.lang.Object
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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(HistoryCleanupJobHandlerConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId) protected HistoryCleanupRemovalTime
getType()
protected HistoryCleanupHandler
initCleanupHandler
(HistoryCleanupJobHandlerConfiguration configuration, CommandContext commandContext) protected boolean
isHistoryCleanupStrategyRemovalTimeBased
(CommandContext commandContext) protected boolean
isWithinBatchWindow
(CommandContext commandContext) newConfiguration
(String canonicalString) void
onDelete
(HistoryCleanupJobHandlerConfiguration configuration, JobEntity jobEntity) Clean up before job is deleted.
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
HistoryCleanupJobHandler
public HistoryCleanupJobHandler()
-
-
Method Details
-
execute
public void execute(HistoryCleanupJobHandlerConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId) - Specified by:
execute
in interfaceJobHandler<HistoryCleanupJobHandlerConfiguration>
-
getTimeBasedHandler
-
initCleanupHandler
protected HistoryCleanupHandler initCleanupHandler(HistoryCleanupJobHandlerConfiguration configuration, CommandContext commandContext) -
isHistoryCleanupStrategyRemovalTimeBased
-
isWithinBatchWindow
-
newConfiguration
- Specified by:
newConfiguration
in interfaceJobHandler<HistoryCleanupJobHandlerConfiguration>
-
getType
- Specified by:
getType
in interfaceJobHandler<HistoryCleanupJobHandlerConfiguration>
-
onDelete
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 interfaceJobHandler<HistoryCleanupJobHandlerConfiguration>
- Parameters:
configuration
- the job handler configurationjobEntity
- the job entity to be deleted
-