org.silverpeas.util.data
Class TemporaryDataManagementSettings

java.lang.Object
  extended by org.silverpeas.util.data.TemporaryDataManagementSettings

public class TemporaryDataManagementSettings
extends Object

All settings around the temporary data management services.

Author:
Yohann Chastagnier

Field Summary
protected static ResourceLocator settings
           
 
Constructor Summary
TemporaryDataManagementSettings()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

settings

protected static ResourceLocator settings
Constructor Detail

TemporaryDataManagementSettings

public TemporaryDataManagementSettings()
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.


Copyright © 2016 Silverpeas. All Rights Reserved.