Class CleanUpLogsStrategy
- java.lang.Object
-
- de.hybris.platform.jobs.maintenance.impl.CleanUpLogsStrategy
-
- All Implemented Interfaces:
MaintenanceCleanupStrategy<CronJobModel,CronJobModel>
public class CleanUpLogsStrategy extends java.lang.Object implements MaintenanceCleanupStrategy<CronJobModel,CronJobModel>
CleanUp JobLogs and LogFiles strategy.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCRON_JOBS_QUERYstatic java.lang.StringJOB_LOGS_QUERYstatic java.lang.StringLOG_FILES_QUERY
-
Constructor Summary
Constructors Constructor Description CleanUpLogsStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlexibleSearchQuerycreateFetchQuery(CronJobModel cjm)Implement and return aFlexibleSearchQueryobject here which searches for the items to be removed.voidprocess(java.util.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 Detail
-
JOB_LOGS_QUERY
public static final java.lang.String JOB_LOGS_QUERY
- See Also:
- Constant Field Values
-
LOG_FILES_QUERY
public static final java.lang.String LOG_FILES_QUERY
- See Also:
- Constant Field Values
-
CRON_JOBS_QUERY
public static final java.lang.String CRON_JOBS_QUERY
- See Also:
- Constant Field Values
-
-
Method Detail
-
createFetchQuery
public FlexibleSearchQuery createFetchQuery(CronJobModel cjm)
Description copied from interface:MaintenanceCleanupStrategyImplement and return aFlexibleSearchQueryobject here which searches for the items to be removed.- Specified by:
createFetchQueryin interfaceMaintenanceCleanupStrategy<CronJobModel,CronJobModel>
-
process
public void process(java.util.List<CronJobModel> elements)
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
public void setModelService(ModelService modelService)
-
setFlexibleSearchService
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
-
-