Class GeneratedContentCleaner

java.lang.Object
org.pentaho.platform.admin.GeneratedContentCleaner
All Implemented Interfaces:
org.pentaho.platform.api.action.IAction

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

    Constructors
    Constructor
    Description
    This class permanently deletes generated files which are older than the provided age.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    long
     
    void
    setAge(long age)
    This method sets the age in milliseconds that the cleaner will use for checking if content should be removed

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.pentaho.platform.api.action.IAction

    isExecutionSuccessful
  • Constructor Details

    • 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 Details

    • 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