Enum Class FilePolicy

java.lang.Object
java.lang.Enum<FilePolicy>
org.apache.jena.rdfpatch.filelog.FilePolicy
All Implemented Interfaces:
Serializable, Comparable<FilePolicy>, Constable

public enum FilePolicy extends Enum<FilePolicy>
File naming strategies for rotating files.
  • Enum Constant Details

    • DATE

      public static final FilePolicy DATE
      Date based - "filename-yyyy-mm-dd", with nightly rollover.
    • TIMESTAMP

      public static final FilePolicy TIMESTAMP
      Timestamp with explicit roll over by calling ManagedOutput.rotate() The file format is "filename-yyyy-mm-dd_hh-mm-ss".
    • INDEX

      public static final FilePolicy INDEX
      Files are filename-0001, filename-0002, .. and "rotate" means next index.
    • SHIFT

      public static final FilePolicy SHIFT
      Always write to a file with the base filename. On rotate, the files are shifted up as filename.001, filename.002, ... and the base filename used for a new file.
    • FIXED

      public static final FilePolicy FIXED
      Use a fixed file
  • Method Details

    • values

      public static FilePolicy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FilePolicy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • policy

      public static FilePolicy policy(String name)