Class SegmentFile

java.lang.Object
io.camunda.zeebe.journal.file.SegmentFile

public final class SegmentFile extends Object
Segment file utility.
Author:
Jordan Halterman
  • Method Details

    • isSegmentFile

      public static boolean isSegmentFile(String name, File file)
      Returns a boolean value indicating whether the given file appears to be a parsable segment file.
      Throws:
      NullPointerException - if file is null
    • isSegmentFile

      public static boolean isSegmentFile(String journalName, String fileName)
      Returns a boolean value indicating whether the given file appears to be a parsable segment file.
      Parameters:
      journalName - the name of the journal
      fileName - the name of the file to check
      Throws:
      NullPointerException - if file is null
    • file

      public File file()
      Returns the segment file.
      Returns:
      The segment file.
    • name

      public String name()
    • getFileMarkedForDeletion

      public Path getFileMarkedForDeletion()
    • isDeletedSegmentFile

      public static boolean isDeletedSegmentFile(String journalName, String fileName)