org.silverpeas.util.data
Class TemporaryDataManagementSettings
java.lang.Object
org.silverpeas.util.data.TemporaryDataManagementSettings
public class TemporaryDataManagementSettings
- extends Object
All settings around the temporary data management services.
- Author:
- Yohann Chastagnier
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
settings
protected static ResourceLocator settings
TemporaryDataManagementSettings
public TemporaryDataManagementSettings()
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.
Copyright © 2016 Silverpeas. All Rights Reserved.