Package org.pentaho.platform.admin
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 GeneratedContentCleaner()
This class permanently deletes generated files which are older than the provided age.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
long
getAge()
void
setAge(long age)
This method sets the age in milliseconds that the cleaner will use for checking if content should be removed
-
-
-
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 interfaceorg.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
-
-