Class CleanUpLogsStrategy
java.lang.Object
de.hybris.platform.jobs.maintenance.impl.CleanUpLogsStrategy
- All Implemented Interfaces:
MaintenanceCleanupStrategy<CronJobModel,CronJobModel>
public class CleanUpLogsStrategy
extends Object
implements MaintenanceCleanupStrategy<CronJobModel,CronJobModel>
CleanUp JobLogs and LogFiles strategy.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionImplement and return aFlexibleSearchQueryobject here which searches for the items to be removed.voidprocess(List<CronJobModel> 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.voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService) voidsetModelService(ModelService modelService)
-
Field Details
-
JOB_LOGS_QUERY
- See Also:
-
LOG_FILES_QUERY
- See Also:
-
CRON_JOBS_QUERY
- See Also:
-
-
Constructor Details
-
CleanUpLogsStrategy
public CleanUpLogsStrategy()
-
-
Method Details
-
createFetchQuery
Description copied from interface:MaintenanceCleanupStrategyImplement and return aFlexibleSearchQueryobject here which searches for the items to be removed.- Specified by:
createFetchQueryin interfaceMaintenanceCleanupStrategy<CronJobModel,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<CronJobModel,CronJobModel>
-
setModelService
-
setFlexibleSearchService
-