Package org.silverpeas.core.io.temp
Class TemporaryDataManagementSetting
- java.lang.Object
-
- org.silverpeas.core.io.temp.TemporaryDataManagementSetting
-
public class TemporaryDataManagementSetting extends Object
All settings around the temporary data management services.- Author:
- Yohann Chastagnier
-
-
Field Summary
Fields Modifier and Type Field Description protected static SettingBundle
settings
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getJobCron()
Gets the CRON setting for the scheduler of the cleaning job.static long
getTimeAfterThatFilesMustBeDeleted()
Gets the time after that a file, according to its last modified date, must be deleted.static long
getTimeAfterThatFilesMustBeDeletedAtServerStart()
Gets the time after that a file, according to its last modified date, must be deleted at server start.
-
-
-
Field Detail
-
settings
protected static SettingBundle settings
-
-
Method Detail
-
getJobCron
public static String getJobCron()
Gets the CRON setting for the scheduler of the cleaning job.- Returns:
- a string that represents a cron setting.
-
getTimeAfterThatFilesMustBeDeleted
public static long getTimeAfterThatFilesMustBeDeleted()
Gets the time after that a file, according to its last modified date, must be deleted.- Returns:
- a time in milliseconds, 0 or negative value if files must be deleted each time the cleaning job is awaken up by the scheduler.
-
getTimeAfterThatFilesMustBeDeletedAtServerStart
public static long getTimeAfterThatFilesMustBeDeletedAtServerStart()
Gets the time after that a file, according to its last modified date, must be deleted at server start.- Returns:
- a time in milliseconds, 0 if files must be deleted immediately, -1 if no deletion at server start.
-
-