public class CleanUpLogsStrategy extends java.lang.Object implements MaintenanceCleanupStrategy<CronJobModel,CronJobModel>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CRON_JOBS_QUERY |
static java.lang.String |
JOB_LOGS_QUERY |
static java.lang.String |
LOG_FILES_QUERY |
| Constructor and Description |
|---|
CleanUpLogsStrategy() |
| Modifier and Type | Method and Description |
|---|---|
FlexibleSearchQuery |
createFetchQuery(CronJobModel cjm)
Implement and return a
FlexibleSearchQuery object here which searches for the items to be removed. |
void |
process(java.util.List<CronJobModel> elements)
Based on the given
FlexibleSearchQuery of MaintenanceCleanupStrategy.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. |
void |
setFlexibleSearchService(FlexibleSearchService flexibleSearchService) |
void |
setModelService(ModelService modelService) |
public static final java.lang.String JOB_LOGS_QUERY
public static final java.lang.String LOG_FILES_QUERY
public static final java.lang.String CRON_JOBS_QUERY
public FlexibleSearchQuery createFetchQuery(CronJobModel cjm)
MaintenanceCleanupStrategyFlexibleSearchQuery object here which searches for the items to be removed.createFetchQuery in interface MaintenanceCleanupStrategy<CronJobModel,CronJobModel>public void process(java.util.List<CronJobModel> elements)
MaintenanceCleanupStrategyFlexibleSearchQuery of MaintenanceCleanupStrategy.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.process in interface MaintenanceCleanupStrategy<CronJobModel,CronJobModel>public void setModelService(ModelService modelService)
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
Copyright © 2018 SAP SE. All Rights Reserved.