Documentation ¶
Index ¶
- Constants
- Variables
- type Batcher
- type Client
- type CommandId
- type CommandIdCache
- type CommunicationSupply
- type MAAcks
- type MAAcksCache
- type MAccept
- type MAcceptAck
- type MAcceptAckCache
- type MAcceptCache
- type MCommit
- type MCommitCache
- type MRecordAck
- type MRecordAckCache
- type MReply
- type MReplyCache
- type MSync
- type MSyncCache
- type MSyncReply
- type MSyncReplyCache
- type Replica
- type Timer
Constants ¶
View Source
const ( NORMAL = iota RECOVERING )
status
View Source
const ( START = iota ACCEPT COMMIT )
phase
View Source
const ( HISTORY_SIZE = 10010001 TRUE = uint8(1) FALSE = uint8(0) ORDERED = uint8(2) )
Variables ¶
View Source
var MaxDescRoutines = 100
Functions ¶
This section is empty.
Types ¶
type Batcher ¶
type Batcher struct {
// contains filtered or unexported fields
}
func NewBatcher ¶
func (*Batcher) SendAccept ¶
func (*Batcher) SendAcceptAck ¶
func (b *Batcher) SendAcceptAck(a *MAcceptAck)
type Client ¶
type Client struct { *client.BufferClient N int Q replica.ThreeQuarters M replica.Majority // contains filtered or unexported fields }
type CommandId ¶
func (*CommandId) BinarySize ¶
type CommandIdCache ¶
type CommandIdCache struct {
// contains filtered or unexported fields
}
func NewCommandIdCache ¶
func NewCommandIdCache() *CommandIdCache
func (*CommandIdCache) Get ¶
func (p *CommandIdCache) Get() *CommandId
func (*CommandIdCache) Put ¶
func (p *CommandIdCache) Put(t *CommandId)
type CommunicationSupply ¶
type CommunicationSupply struct {
// contains filtered or unexported fields
}
type MAAcks ¶
type MAAcks struct { Acks []MAcceptAck Accepts []MAccept }
func (*MAAcks) BinarySize ¶
func (*MAAcks) New ¶
func (m *MAAcks) New() fastrpc.Serializable
type MAAcksCache ¶
type MAAcksCache struct {
// contains filtered or unexported fields
}
func NewMAAcksCache ¶
func NewMAAcksCache() *MAAcksCache
func (*MAAcksCache) Get ¶
func (p *MAAcksCache) Get() *MAAcks
func (*MAAcksCache) Put ¶
func (p *MAAcksCache) Put(t *MAAcks)
type MAccept ¶
func (*MAccept) BinarySize ¶
func (*MAccept) New ¶
func (m *MAccept) New() fastrpc.Serializable
type MAcceptAck ¶
func (*MAcceptAck) BinarySize ¶
func (t *MAcceptAck) BinarySize() (nbytes int, sizeKnown bool)
func (*MAcceptAck) Marshal ¶
func (t *MAcceptAck) Marshal(wire io.Writer)
func (*MAcceptAck) New ¶
func (m *MAcceptAck) New() fastrpc.Serializable
type MAcceptAckCache ¶
type MAcceptAckCache struct {
// contains filtered or unexported fields
}
func NewMAcceptAckCache ¶
func NewMAcceptAckCache() *MAcceptAckCache
func (*MAcceptAckCache) Get ¶
func (p *MAcceptAckCache) Get() *MAcceptAck
func (*MAcceptAckCache) Put ¶
func (p *MAcceptAckCache) Put(t *MAcceptAck)
type MAcceptCache ¶
type MAcceptCache struct {
// contains filtered or unexported fields
}
func NewMAcceptCache ¶
func NewMAcceptCache() *MAcceptCache
func (*MAcceptCache) Get ¶
func (p *MAcceptCache) Get() *MAccept
func (*MAcceptCache) Put ¶
func (p *MAcceptCache) Put(t *MAccept)
type MCommit ¶
func (*MCommit) BinarySize ¶
func (*MCommit) New ¶
func (m *MCommit) New() fastrpc.Serializable
type MCommitCache ¶
type MCommitCache struct {
// contains filtered or unexported fields
}
func NewMCommitCache ¶
func NewMCommitCache() *MCommitCache
func (*MCommitCache) Get ¶
func (p *MCommitCache) Get() *MCommit
func (*MCommitCache) Put ¶
func (p *MCommitCache) Put(t *MCommit)
type MRecordAck ¶
func (*MRecordAck) BinarySize ¶
func (t *MRecordAck) BinarySize() (nbytes int, sizeKnown bool)
func (*MRecordAck) Marshal ¶
func (t *MRecordAck) Marshal(wire io.Writer)
func (*MRecordAck) New ¶
func (m *MRecordAck) New() fastrpc.Serializable
type MRecordAckCache ¶
type MRecordAckCache struct {
// contains filtered or unexported fields
}
func NewMRecordAckCache ¶
func NewMRecordAckCache() *MRecordAckCache
func (*MRecordAckCache) Get ¶
func (p *MRecordAckCache) Get() *MRecordAck
func (*MRecordAckCache) Put ¶
func (p *MRecordAckCache) Put(t *MRecordAck)
type MReply ¶
func (*MReply) BinarySize ¶
func (*MReply) New ¶
func (m *MReply) New() fastrpc.Serializable
type MReplyCache ¶
type MReplyCache struct {
// contains filtered or unexported fields
}
func NewMReplyCache ¶
func NewMReplyCache() *MReplyCache
func (*MReplyCache) Get ¶
func (p *MReplyCache) Get() *MReply
func (*MReplyCache) Put ¶
func (p *MReplyCache) Put(t *MReply)
type MSync ¶
type MSync struct {
CmdId CommandId
}
func (*MSync) BinarySize ¶
func (*MSync) New ¶
func (m *MSync) New() fastrpc.Serializable
type MSyncCache ¶
type MSyncCache struct {
// contains filtered or unexported fields
}
func NewMSyncCache ¶
func NewMSyncCache() *MSyncCache
func (*MSyncCache) Get ¶
func (p *MSyncCache) Get() *MSync
func (*MSyncCache) Put ¶
func (p *MSyncCache) Put(t *MSync)
type MSyncReply ¶
func (*MSyncReply) BinarySize ¶
func (t *MSyncReply) BinarySize() (nbytes int, sizeKnown bool)
func (*MSyncReply) Marshal ¶
func (t *MSyncReply) Marshal(wire io.Writer)
func (*MSyncReply) New ¶
func (m *MSyncReply) New() fastrpc.Serializable
type MSyncReplyCache ¶
type MSyncReplyCache struct {
// contains filtered or unexported fields
}
func NewMSyncReplyCache ¶
func NewMSyncReplyCache() *MSyncReplyCache
func (*MSyncReplyCache) Get ¶
func (p *MSyncReplyCache) Get() *MSyncReply
func (*MSyncReplyCache) Put ¶
func (p *MSyncReplyCache) Put(t *MSyncReply)
Click to show internal directories.
Click to hide internal directories.