public class CleanupSavedValuesStrategy extends java.lang.Object implements MaintenanceCleanupStrategy<ItemModel,CronJobModel>
MaintenanceCleanupStrategy removes all old SavedValuesModels for
any ItemModel which are *over* the given threshold.
If a model has 30 saved values and the threshold is set to 20 - the twentieth oldest entries are removed.| Constructor and Description |
|---|
CleanupSavedValuesStrategy() |
| 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<ItemModel> 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 FlexibleSearchQuery createFetchQuery(CronJobModel cjm)
MaintenanceCleanupStrategyFlexibleSearchQuery object here which searches for the items to be removed.createFetchQuery in interface MaintenanceCleanupStrategy<ItemModel,CronJobModel>public void process(java.util.List<ItemModel> 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<ItemModel,CronJobModel>public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
public void setModelService(ModelService modelService)
Copyright © 2018 SAP SE. All Rights Reserved.