learner

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AQConstructor

type AQConstructor interface {
	CreateTally(inst int32) quorum.QuorumTally
}

type BcastAcceptLearner

type BcastAcceptLearner struct {
	AQConstructor
	// contains filtered or unexported fields
}

find out that a ballot is chosen, find out the value of a ballot equal to or greater than

func GetBcastAcceptLearner

func GetBcastAcceptLearner(qrmC AQConstructor) BcastAcceptLearner

func (*BcastAcceptLearner) GetChosen

func (l *BcastAcceptLearner) GetChosen(inst int32) (stdpaxosproto.Ballot, []*state.Command, int32)

func (*BcastAcceptLearner) HasLearntValue

func (l *BcastAcceptLearner) HasLearntValue(inst int32) bool

func (*BcastAcceptLearner) IsChosen

func (l *BcastAcceptLearner) IsChosen(inst int32) bool

func (*BcastAcceptLearner) ProposalAccepted

func (l *BcastAcceptLearner) ProposalAccepted(inst int32, ballot stdpaxosproto.Ballot, aid int32)

func (*BcastAcceptLearner) ProposalChosen

func (l *BcastAcceptLearner) ProposalChosen(inst int32, ballot stdpaxosproto.Ballot)

func (*BcastAcceptLearner) ProposalValue

func (l *BcastAcceptLearner) ProposalValue(inst int32, ballot stdpaxosproto.Ballot, commands []*state.Command, whose int32)

type DesignatedLearner

type DesignatedLearner struct {
	AQConstructor
	// contains filtered or unexported fields
}

func GetDesignedLearner

func GetDesignedLearner(qrmC AQConstructor) DesignatedLearner

func (*DesignatedLearner) GetChosen

func (l *DesignatedLearner) GetChosen(inst int32) (stdpaxosproto.Ballot, []*state.Command, int32)

func (*DesignatedLearner) HasLearntValue

func (l *DesignatedLearner) HasLearntValue(inst int32) bool

func (*DesignatedLearner) IsChosen

func (l *DesignatedLearner) IsChosen(inst int32) bool

func (*DesignatedLearner) ProposalAccepted

func (l *DesignatedLearner) ProposalAccepted(inst int32, ballot stdpaxosproto.Ballot, aid int32)

func (*DesignatedLearner) ProposalChosen

func (l *DesignatedLearner) ProposalChosen(inst int32, ballot stdpaxosproto.Ballot)

func (*DesignatedLearner) ProposalValue

func (l *DesignatedLearner) ProposalValue(inst int32, ballot stdpaxosproto.Ballot, commands []*state.Command, whose int32)

type Learner

type Learner interface {
	//ClientValueProposed(inst32, batching.ProposalBatch)
	ProposalAccepted(inst int32, ballot stdpaxosproto.Ballot, by int32)
	ProposalValue(inst int32, ballot stdpaxosproto.Ballot, cmd []*state.Command, whosecmd int32)
	ProposalChosen(inst int32, ballot stdpaxosproto.Ballot)
	IsChosen(int32) bool       // has chosen ballot
	HasLearntValue(int32) bool // has learnt value
	GetChosen(int32) (stdpaxosproto.Ballot, []*state.Command, int32)
}

type Minimal

func GetMinimalGroupAQConstructorr

func GetMinimalGroupAQConstructorr(n, f int32, ids []int32, constructor quorumsystem.AcceptanceQuorumsConstructor, me int32) Minimal

func (*Minimal) CreateTally

func (q *Minimal) CreateTally(inst int32) quorum.QuorumTally

type Standard

type Standard struct {
	quorumsystem.AcceptanceQuorumsConstructor
	Aids []int32
	MyID int32
}

func GetStandardGroupAQConstructorr

func GetStandardGroupAQConstructorr(ids []int32, constructor quorumsystem.AcceptanceQuorumsConstructor, me int32) Standard

func (*Standard) CreateTally

func (q *Standard) CreateTally(inst int32) quorum.QuorumTally

Jump to

Keyboard shortcuts

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