mencius

package
v0.0.0-...-5782b8f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const CHAN_BUFFER_SIZE = 200000
View Source
const FALSE = uint8(0)
View Source
const MAX_SKIPS_WAITING = 500
View Source
const NB_INST_TO_SKIP = 100000
View Source
const TRUE = uint8(1)
View Source
const WAIT_BEFORE_SKIP_MS = 250

Variables

This section is empty.

Functions

This section is empty.

Types

type DelayedSkip

type DelayedSkip struct {
	// contains filtered or unexported fields
}

type Instance

type Instance struct {
	// contains filtered or unexported fields
}

type InstanceStatus

type InstanceStatus int
const (
	PREPARING InstanceStatus = iota
	ACCEPTED
	READY
	COMMITTED
	EXECUTED
)

type LeaderBookkeeping

type LeaderBookkeeping struct {
	// contains filtered or unexported fields
}

type Replica

type Replica struct {
	*genericsmr.Replica // extends a generic Paxos replica

	Shutdown bool
	// contains filtered or unexported fields
}

func NewReplica

func NewReplica(replica *genericsmr.Replica, id int, peerAddrList []string, thrifty bool, exec bool, lread bool, dreply bool, durable bool, failures int, storageLoc string, emulatedSS bool, emulatedWriteTime time.Duration, deadTime int32, batchwait int, skipwaitMs int, maxSkipsAwaiting int, batch bool) *Replica

func (*Replica) BatchingEnabled

func (r *Replica) BatchingEnabled() bool

func (*Replica) CloseUp

func (r *Replica) CloseUp()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL