Class GeneratedContentCleaner

  • All Implemented Interfaces:
    org.pentaho.platform.api.action.IAction

    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
        Throws:
        Exception
      • getAge

        public long getAge()
        Returns:
        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
        Parameters:
        age - the age in milliseconds