Class DefaultKieModuleCleanupStrategy
java.lang.Object
de.hybris.platform.ruleengine.cronjob.DefaultKieModuleCleanupStrategy
- All Implemented Interfaces:
MaintenanceCleanupStrategy<DroolsKIEModuleModel,CronJobModel>
public class DefaultKieModuleCleanupStrategy
extends Object
implements MaintenanceCleanupStrategy<DroolsKIEModuleModel,CronJobModel>
A Cleanup Job Strategy to search and clean up old serialized KieModules.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFetchQuery(CronJobModel cronJob) Implement and return aFlexibleSearchQueryobject here which searches for the items to be removed.protected ConfigurationServiceprotected FlexibleSearchServiceprotected MediaServiceprotected ModelServiceprotected intvoidprocess(List<DroolsKIEModuleModel> elements) Based on the givenFlexibleSearchQueryofMaintenanceCleanupStrategy.createFetchQuery(CronJobModel)the job pages through the results and with each sublist (contains the concrete instances of the items) of the large result this method is called.voidsetConfigurationService(ConfigurationService configurationService) voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService) voidsetMediaService(MediaService mediaService) voidsetModelService(ModelService modelService)
-
Field Details
-
LAST_VERSIONS_OF_KIE_MODULES_TO_KEEP
- See Also:
-
-
Constructor Details
-
DefaultKieModuleCleanupStrategy
public DefaultKieModuleCleanupStrategy()
-
-
Method Details
-
createFetchQuery
Description copied from interface:MaintenanceCleanupStrategyImplement and return aFlexibleSearchQueryobject here which searches for the items to be removed.- Specified by:
createFetchQueryin interfaceMaintenanceCleanupStrategy<DroolsKIEModuleModel,CronJobModel>
-
process
Description copied from interface:MaintenanceCleanupStrategyBased on the givenFlexibleSearchQueryofMaintenanceCleanupStrategy.createFetchQuery(CronJobModel)the job pages through the results and with each sublist (contains the concrete instances of the items) of the large result this method is called. Implement here the remove logic for each item element.- Specified by:
processin interfaceMaintenanceCleanupStrategy<DroolsKIEModuleModel,CronJobModel>
-
getNumberOfLastVersionsOfKieModuleToKeep
protected int getNumberOfLastVersionsOfKieModuleToKeep() -
getModelService
-
setModelService
-
getMediaService
-
setMediaService
-
getConfigurationService
-
setConfigurationService
-
getFlexibleSearchService
-
setFlexibleSearchService
-