Packages

c

riff.raft

AppendStatus

final case class AppendStatus(leaderAppendResult: LogAppendSuccess, appended: Map[NodeId, AppendEntriesResponse], appendedCoords: Set[LogCoords], clusterSize: Int, committed: Set[LogCoords], errorAfterAppend: Option[Exception] = None) extends Product with Serializable

Represents the current state of the cluster following an append

appended

a map of the cluster ids to a flag indicating whether or not the node has appended the entry

appendedCoords

the log coords which have been appended on the leader

clusterSize

the size of the cluster

committed

the coordinates of committed entries on the leader after quarum has ack'd

errorAfterAppend

A means of letting observers know that a log append error has occurred, perhaps due to a leader change

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AppendStatus
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AppendStatus(leaderAppendResult: LogAppendSuccess, appended: Map[NodeId, AppendEntriesResponse], appendedCoords: Set[LogCoords], clusterSize: Int, committed: Set[LogCoords], errorAfterAppend: Option[Exception] = None)

    appended

    a map of the cluster ids to a flag indicating whether or not the node has appended the entry

    appendedCoords

    the log coords which have been appended on the leader

    clusterSize

    the size of the cluster

    committed

    the coordinates of committed entries on the leader after quarum has ack'd

    errorAfterAppend

    A means of letting observers know that a log append error has occurred, perhaps due to a leader change

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def allCommitted: Boolean
  5. val appended: Map[NodeId, AppendEntriesResponse]
  6. val appendedCoords: Set[LogCoords]
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  9. val clusterSize: Int
  10. val committed: Set[LogCoords]
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. val errorAfterAppend: Option[Exception]
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def isComplete: Boolean

    Meant to signal that we have all that we expect to -- acks from EVERY node in the cluster and the entries are committed.

    Meant to signal that we have all that we expect to -- acks from EVERY node in the cluster and the entries are committed.

    If a node is down, OR A LEADER CHANGE HAPPENS, CAUSING NOT ALL NODES TO ACK AN APPEND, then this may never be true.

    In the case, however, that not all nodes respond, we will notice the 'errorAfterAppend' field become set

    returns

    true if we've received all the messages expected

  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. val leaderAppendResult: LogAppendSuccess
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. def numberOfPeersContainingCommittedIndex: Int
  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AppendStatus → AnyRef → Any
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  27. def withCommit(coords: LogCoords): AppendStatus
  28. def withResult(from: NodeId, response: AppendEntriesResponse): AppendStatus

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped