Class/Object

miniraft.state

RaftNode

Related Docs: object RaftNode | package state

Permalink

class RaftNode[T] extends AnyRef

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

Instance Constructors

  1. new RaftNode(id: NodeId, initialState: RaftState[T])

    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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def currentTerm: Term

    Permalink
  7. def endpoint(cluster: ClusterProtocol): RaftEndpoint[T]

    Permalink
  8. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    RaftNode → AnyRef → Any
  10. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    RaftNode → AnyRef → Any
  13. val id: NodeId

    Permalink
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def lastCommittedIndex: LogIndex

    Permalink
  16. def lastLogTerm: Term

    Permalink
  17. def lastUnappliedIndex: LogIndex

    Permalink
  18. def leaderId: Option[NodeId]

    Permalink
  19. def leaderState: Option[Map[NodeId, ClusterPeer]]

    Permalink
  20. def mkAppendEntries(idx: LogIndex, newEntries: List[LogEntry[T]]): AppendEntries[T]

    Permalink
  21. def mkLogEntry(index: LogIndex): Option[LogEntry[T]]

    Permalink
  22. def mkLogEntry(to: NodeId): Option[LogEntry[T]]

    Permalink

    to

    the node to send the entry to

    returns

    the LogEntry to send, if (1) we're the leader, (2) we know about the peer 'to', (3) an entry exists at the peer's match index

  23. def mkRequestVote(): RequestVote

    Permalink
  24. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  27. def onAppendEntries(ae: AppendEntries[T], cluster: ClusterProtocol): AppendEntriesResponse

    Permalink
  28. def onAppendEntriesResponse(from: NodeId, resp: AppendEntriesResponse, cluster: ClusterProtocol): Unit

    Permalink
  29. def onElectionTimeout(cluster: ClusterProtocol): Unit

    Permalink
  30. def onLeaderHeartbeatTimeout(cluster: ClusterProtocol): Unit

    Permalink
  31. final def onRequest(req: RaftRequest, cluster: ClusterProtocol): RaftResponse

    Permalink
  32. def onRequestVoteResponse(from: NodeId, resp: RequestVoteResponse, cluster: ClusterProtocol): Unit

    Permalink
  33. final def onResponse(from: NodeId, resp: RaftResponse, cluster: ClusterProtocol): Unit

    Permalink
  34. def onVoteRequest(vote: RequestVote, cluster: ClusterProtocol): RequestVoteResponse

    Permalink
  35. def raftNode: RaftState[T]

    Permalink
  36. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    RaftNode → AnyRef → Any
  38. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped