Package

miniraft

state

Permalink

package state

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. state
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class AppendEntries(term: Term, leaderId: NodeId, prevLogIndex: LogIndex, prevLogTerm: Term, entries: List[LogEntry], leaderCommit: LogIndex) extends RaftRequest with Product with Serializable

    Permalink
  2. case class AppendEntriesResponse(term: Term, success: Boolean, matchIndex: LogIndex) extends RaftResponse with Product with Serializable

    Permalink
  3. trait Command extends AnyRef

    Permalink
  4. case class LeaderState(viewById: Map[NodeId, NodeView]) extends Product with Serializable

    Permalink
  5. case class Log(entries: List[LogEntry] = Nil) extends Product with Serializable

    Permalink
  6. case class LogEntry(term: Term, index: LogIndex, command: Command) extends Product with Serializable

    Permalink
  7. type LogIndex = Int

    Permalink
  8. type NodeId = String

    Permalink
  9. sealed trait NodeRole extends AnyRef

    Permalink
  10. case class NodeView(nextIndex: LogIndex, matchIndex: LogIndex) extends Product with Serializable

    Permalink
  11. case class PersistentState(currentTerm: Term = Term(1), votedFor: Option[NodeId] = None, log: Log = Log()) extends Product with Serializable

    Permalink
  12. case class RaftNode(role: NodeRole, persistentState: PersistentState, volatileState: VolatileState) extends Product with Serializable

    Permalink
  13. sealed trait RaftRequest extends AnyRef

    Permalink
  14. sealed trait RaftResponse extends AnyRef

    Permalink
  15. case class RequestVote(term: Term, candidateId: NodeId, lastLogIndex: LogIndex, lastLogTerm: Term) extends RaftRequest with Product with Serializable

    Permalink
  16. case class RequestVoteResponse(term: Term, granted: Boolean) extends RaftResponse with Product with Serializable

    Permalink
  17. class ServerState extends AnyRef

    Permalink
  18. case class Term(t: Int) extends Product with Serializable

    Permalink
  19. trait Transport extends AnyRef

    Permalink
  20. case class VolatileState(commitIndex: LogIndex = 0, lastApplied: LogIndex = 0) extends Product with Serializable

    Permalink

Value Members

  1. object Candidate extends NodeRole with Product with Serializable

    Permalink
  2. object Follower extends NodeRole with Product with Serializable

    Permalink
  3. object Leader extends NodeRole with Product with Serializable

    Permalink
  4. object LeaderState extends Serializable

    Permalink
  5. object RaftNode extends Serializable

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped