Package step.plugins.housekeeping
Class HousekeepingInternalDataJob
- java.lang.Object
-
- step.plugins.housekeeping.HousekeepingInternalDataJob
-
- All Implemented Interfaces:
org.quartz.Job
public class HousekeepingInternalDataJob extends java.lang.Object implements org.quartz.Job
-
-
Constructor Summary
Constructors Constructor Description 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(org.quartz.JobExecutionContext jobExecutionContext)
protected int
getExecutionsLimit()
protected boolean
getHousekeepingEnabled()
protected long
getHousekeepingTtl()
protected boolean
isExcludeRetainedFromSearch()
-
-
-
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 interfaceorg.quartz.Job
- Throws:
org.quartz.JobExecutionException
-
isExcludeRetainedFromSearch
protected boolean isExcludeRetainedFromSearch()
-
getExecutionsLimit
protected int getExecutionsLimit()
-
getHousekeepingTtl
protected long getHousekeepingTtl()
-
getHousekeepingEnabled
protected boolean getHousekeepingEnabled()
-
-