@Service public class UpdateSettingsServiceImpl extends Object implements UpdateSettingsService
Constructor and Description |
---|
UpdateSettingsServiceImpl(PruneService pruneService,
PruneCheckingDAO pruneCheckingDAO,
File propertiesFile)
Instantiates a new Update settings service.
|
Modifier and Type | Method and Description |
---|---|
SetExpiryCheckResponseDTO |
checkIfSomeLogsWillBePruned(double updatedPruningValue)
Get the amount of logs that would be pruned if prune settings was changed to this value.
|
void |
updatePruningDelayProperty(double updatedPruningValue)
Updates log expiry time and accordingly reschedules prunings.
|
@Autowired public UpdateSettingsServiceImpl(PruneService pruneService, PruneCheckingDAO pruneCheckingDAO, @Value(value="${property.path}") File propertiesFile)
pruneService
- the prune servicepruneCheckingDAO
- the prune checking daopropertiesFile
- the property file pathpublic SetExpiryCheckResponseDTO checkIfSomeLogsWillBePruned(double updatedPruningValue)
UpdateSettingsService
checkIfSomeLogsWillBePruned
in interface UpdateSettingsService
updatedPruningValue
- new possible setting@Transactional public void updatePruningDelayProperty(double updatedPruningValue)
UpdateSettingsService
updatePruningDelayProperty
in interface UpdateSettingsService
updatedPruningValue
- new log expiry value in daysCopyright © 2020. All rights reserved.