Package io.camunda.zeebe.journal.file
Class SegmentFile
java.lang.Object
io.camunda.zeebe.journal.file.SegmentFile
Segment file utility.
- Author:
- Jordan Halterman
-
Method Summary
Modifier and TypeMethodDescriptionfile()Returns the segment file.static booleanisDeletedSegmentFile(String journalName, String fileName) static booleanisSegmentFile(String name, File file) Returns a boolean value indicating whether the given file appears to be a parsable segment file.static booleanisSegmentFile(String journalName, String fileName) Returns a boolean value indicating whether the given file appears to be a parsable segment file.name()
-
Method Details
-
isSegmentFile
Returns a boolean value indicating whether the given file appears to be a parsable segment file.- Throws:
NullPointerException- iffileis null
-
isSegmentFile
Returns a boolean value indicating whether the given file appears to be a parsable segment file.- Parameters:
journalName- the name of the journalfileName- the name of the file to check- Throws:
NullPointerException- iffileis null
-
file
Returns the segment file.- Returns:
- The segment file.
-
name
-
getFileMarkedForDeletion
-
isDeletedSegmentFile
-