Class

miniraft.state.Log

FileBasedLog

Related Doc: package Log

Permalink

class FileBasedLog[Command] extends Log[Command] with StrictLogging

Linear Supertypes
StrictLogging, Log[Command], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FileBasedLog
  2. StrictLogging
  3. Log
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FileBasedLog(dir: Path, asBytes: Formatter[Command, Array[Byte]], applyToStateMachine: (LogEntry[Command]) ⇒ Unit)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def append(newEntries: List[LogEntry[Command]]): Log[Command]

    Permalink

    Writes the entry as:

    Writes the entry as:

    <dir> / <index> / command    # contains the bytes of the command
    <dir> / <index> / .term      # contains the term

    once an entry is committed, the empty file

    <dir> / <index> / .committed

    will be created. If a .committed file exists in this append then an exception is thrown

    Definition Classes
    FileBasedLogLog
  5. def append(newEntry: LogEntry[Command]): Log[Command]

    Permalink

    Note - implementations need to override one of the two appends

    Note - implementations need to override one of the two appends

    Definition Classes
    Log
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def at(index: Int): Option[LogEntry[Command]]

    Permalink
    Definition Classes
    FileBasedLogLog
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def commit(index: LogIndex): Log[Command]

    Permalink
    Definition Classes
    FileBasedLogLog
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(other: Any): Boolean

    Permalink
    Definition Classes
    Log → AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    Log → AnyRef → Any
  15. def isCommitted(index: Int): Boolean

    Permalink
    Definition Classes
    FileBasedLogLog
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def lastCommittedIndex: LogIndex

    Permalink
    Definition Classes
    FileBasedLogLog
  18. def lastTerm: Term

    Permalink
    Definition Classes
    Log
  19. def lastUnappliedIndex: LogIndex

    Permalink
    Definition Classes
    FileBasedLogLog
  20. def latestCommittedEntry: Option[LogEntry[Command]]

    Permalink
    Definition Classes
    FileBasedLogLog
  21. def latestUnappliedEntry: Option[LogEntry[Command]]

    Permalink
    Definition Classes
    FileBasedLogLog
  22. val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    StrictLogging
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toString(): String

    Permalink
    Definition Classes
    Log → AnyRef → Any
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from StrictLogging

Inherited from Log[Command]

Inherited from AnyRef

Inherited from Any

Ungrouped