Documentation ¶
Index ¶
Constants ¶
View Source
const CHAN_BUFFER_SIZE = 200000
View Source
const COMMIT_GRACE_PERIOD = 10 * 1e9 // 10 second(s)
View Source
const FALSE = uint8(0)
View Source
const SLEEP_TIME_NS = 1e6
View Source
const TRUE = uint8(1)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstanceStatus ¶
type InstanceStatus int
const ( PREPARING InstanceStatus = iota PREPARED ACCEPTED COMMITTED )
type LeaderBookkeeping ¶
type LeaderBookkeeping struct {
// contains filtered or unexported fields
}
type Replica ¶
type Replica struct { *genericsmr.Replica // extends a generic Paxos replica IsLeader bool // does this replica think it is the leader Shutdown bool // contains filtered or unexported fields }
func NewReplica ¶
func (*Replica) BatchingEnabled ¶
func (*Replica) BeTheLeader ¶
func (r *Replica) BeTheLeader(args *genericsmrproto.BeTheLeaderArgs, reply *genericsmrproto.BeTheLeaderReply) error
Click to show internal directories.
Click to hide internal directories.