FileApplicationJournal

org.sigilaris.node.jvm.storage.file.FileApplicationJournal
See theFileApplicationJournal companion object
final class FileApplicationJournal extends DurableJournal[IO]

Authoritative local-filesystem journal. Every successful write includes the file/directory durability barriers; SwayDB or other indexes may be rebuilt from this history. Unsupported atomic moves or directory force fail closed. Deployment requires a trusted local filesystem that honors those JDK durability operations; this backend cannot attest remote filesystem behavior.

Opening acquires an exclusive process lock but leaves the backend fenced. Call recover before any write or ordinary blob read. A truncated frame is retained unchanged and never treated as evidence that a claim was absent.

Attributes

Companion
object
Source
FileApplicationJournal.scala
Graph
Supertypes
trait DurableJournal[IO]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def append(record: JournalRecord): Result[IO, Unit]

Attributes

Source
FileApplicationJournal.scala
def putBlob(namespace: Text, digest: Hash, bytes: Bytes): Result[IO, Unit]

Attributes

Source
FileApplicationJournal.scala
def readBlob(namespace: Text, digest: Hash): Result[IO, Bytes]

Attributes

Source
FileApplicationJournal.scala
def recover: Result[IO, Vector[JournalRecord]]

Attributes

Source
FileApplicationJournal.scala