Class HousekeepingInternalDataJob

  • All Implemented Interfaces:
    org.quartz.Job

    public class HousekeepingInternalDataJob
    extends java.lang.Object
    implements org.quartz.Job
    • Constructor Detail

      • HousekeepingInternalDataJob

        public HousekeepingInternalDataJob​(step.core.controller.ControllerSettingAccessor settingAccessor,
                                           step.plugins.measurements.raw.MeasurementAccessor measurementAccessor,
                                           step.core.timeseries.TimeSeries timeSeries,
                                           HousekeepingExecutionAccessor housekeepingExecutionAccessor,
                                           HousekeepingManager housekeepingManager)
        Performs the housekeeping (deletes the expired executions, measurements and time series)
        Parameters:
        settingAccessor - the controller setting (to resolve the actual parameters: 'housekeeping enabled', 'ttl', 'expired limit', 'exclude retained executions from search'. All these setting should be resolved dynamically, because they can be changed (from UI)
    • Method Detail

      • execute

        public void execute​(org.quartz.JobExecutionContext jobExecutionContext)
                     throws org.quartz.JobExecutionException
        Specified by:
        execute in interface org.quartz.Job
        Throws:
        org.quartz.JobExecutionException
      • isExcludeRetainedFromSearch

        protected boolean isExcludeRetainedFromSearch()
      • getExecutionsLimit

        protected int getExecutionsLimit()
      • getHousekeepingTtl

        protected long getHousekeepingTtl()
      • getHousekeepingEnabled

        protected boolean getHousekeepingEnabled()