Class DefaultExportConfiguration

java.lang.Object
com.levigo.jadice.web.server.config.DefaultExportConfiguration
All Implemented Interfaces:
ExportConfiguration

public class DefaultExportConfiguration extends Object implements ExportConfiguration
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the amount of downloads that can take place before the export-file is removed
    int
    Returns the interval (in minutes) that defines how often the cleanup scheduler will run.
    int
    Returns the time (in minutes) that defines how long an export-temp-file will be kept before the cleanup scheduler will remove it
    Returns the path, where export temp files will be stored. defaults to java.io.tempdir
    void
    setMaxDownloadCount(int maxDownloadCount)
    Sets the amount of downloads that can take place before the export-file is removed
    void
    setTempFileCleanupInterval(int tempFileCleanupInterval)
    Sets the interval (in minutes) that defines how often the cleanup scheduler will run.
    void
    setTempFileMaxAge(int tempFileMaxAge)
    sets the time (in minutes) that defines how long an export-temp-file will be kept before the cleanup scheduler will remove it
    void
    setTempFolderPath(String tempFolderPath)
    Sets the path, where export temp files will be stored.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultExportConfiguration

      public DefaultExportConfiguration()
  • Method Details

    • getMaxDownloadCount

      public int getMaxDownloadCount()
      Description copied from interface: ExportConfiguration
      Returns the amount of downloads that can take place before the export-file is removed
      Specified by:
      getMaxDownloadCount in interface ExportConfiguration
      Returns:
      the amount of downloads that can take place before the export-file is removed
    • setMaxDownloadCount

      public void setMaxDownloadCount(int maxDownloadCount)
      Description copied from interface: ExportConfiguration
      Sets the amount of downloads that can take place before the export-file is removed
      Specified by:
      setMaxDownloadCount in interface ExportConfiguration
      Parameters:
      maxDownloadCount - the amount of downloads that can take place before the export-file is removed
    • getTempFileCleanupInterval

      public int getTempFileCleanupInterval()
      Description copied from interface: ExportConfiguration
      Returns the interval (in minutes) that defines how often the cleanup scheduler will run.
      Specified by:
      getTempFileCleanupInterval in interface ExportConfiguration
      Returns:
      the interval (in minutes) that defines how often the cleanup scheduler will run
    • setTempFileCleanupInterval

      public void setTempFileCleanupInterval(int tempFileCleanupInterval)
      Description copied from interface: ExportConfiguration
      Sets the interval (in minutes) that defines how often the cleanup scheduler will run.
      Specified by:
      setTempFileCleanupInterval in interface ExportConfiguration
      Parameters:
      tempFileCleanupInterval - the interval (in minutes) that defines how often the cleanup scheduler will run
    • getTempFolderPath

      public String getTempFolderPath()
      Description copied from interface: ExportConfiguration
      Returns the path, where export temp files will be stored. defaults to java.io.tempdir
      Specified by:
      getTempFolderPath in interface ExportConfiguration
      Returns:
      Customize Toolbar…
    • setTempFolderPath

      public void setTempFolderPath(String tempFolderPath)
      Description copied from interface: ExportConfiguration
      Sets the path, where export temp files will be stored.
      Specified by:
      setTempFolderPath in interface ExportConfiguration
      Parameters:
      tempFolderPath - the path, where export temp files will be stored
    • getTempFileMaxAge

      public int getTempFileMaxAge()
      Description copied from interface: ExportConfiguration
      Returns the time (in minutes) that defines how long an export-temp-file will be kept before the cleanup scheduler will remove it
      Specified by:
      getTempFileMaxAge in interface ExportConfiguration
      Returns:
      the time (in minutes) that defines how long an export-temp-file will be kept before the cleanup scheduler will remove it
    • setTempFileMaxAge

      public void setTempFileMaxAge(int tempFileMaxAge)
      Description copied from interface: ExportConfiguration
      sets the time (in minutes) that defines how long an export-temp-file will be kept before the cleanup scheduler will remove it
      Specified by:
      setTempFileMaxAge in interface ExportConfiguration
      Parameters:
      tempFileMaxAge - the time (in minutes) that defines how long an export-temp-file will be kept before * the cleanup scheduler will remove it