Class GeneratedContentCleaner

  • All Implemented Interfaces:

    public class GeneratedContentCleaner
    extends Object
    implements org.pentaho.platform.api.action.IAction
    • Constructor Detail

      • GeneratedContentCleaner

        public GeneratedContentCleaner()
        This class permanently deletes generated files which are older than the provided age. Generated content is determined by using file metadata. If a file contains the "RESERVEDMAPKEY_LINEAGE_ID" key in the metadata, then when know it is generated content (created from scheduler or run in background)
    • Method Detail

      • execute

        public void execute()
                     throws Exception
        Specified by:
        execute in interface org.pentaho.platform.api.action.IAction
      • getAge

        public long getAge()
        the age in milliseconds that the cleaner will use to determine if content should be removed
      • setAge

        public void setAge​(long age)
        This method sets the age in milliseconds that the cleaner will use for checking if content should be removed
        age - the age in milliseconds