CCF
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
aft::State Struct Reference

#include <state.h>

Public Member Functions

 State (const ccf::NodeId &node_id_)
 
 State ()=default
 

Public Attributes

ccf::pal::Mutex lock
 
ccf::NodeId node_id
 
ccf::View current_view = 0
 
ccf::kv::Version last_idx = 0
 
ccf::kv::Version commit_idx = 0
 
ViewHistory view_history
 
std::deque< Indexcommittable_indices
 
ccf::kv::LeadershipState leadership_state = ccf::kv::LeadershipState::None
 
ccf::kv::MembershipState membership_state
 
std::optional< ccf::kv::RetirementPhaseretirement_phase = std::nullopt
 
std::optional< ccf::SeqNoretirement_idx = std::nullopt
 
std::optional< ccf::SeqNoretirement_committable_idx = std::nullopt
 
std::optional< ccf::SeqNoretired_committed_idx = std::nullopt
 

Constructor & Destructor Documentation

◆ State() [1/2]

aft::State::State ( const ccf::NodeId node_id_)
inline

◆ State() [2/2]

aft::State::State ( )
default

Member Data Documentation

◆ commit_idx

ccf::kv::Version aft::State::commit_idx = 0

◆ committable_indices

std::deque<Index> aft::State::committable_indices

◆ current_view

ccf::View aft::State::current_view = 0

◆ last_idx

ccf::kv::Version aft::State::last_idx = 0

◆ leadership_state

◆ lock

ccf::pal::Mutex aft::State::lock

◆ membership_state

ccf::kv::MembershipState aft::State::membership_state

◆ node_id

ccf::NodeId aft::State::node_id

◆ retired_committed_idx

std::optional<ccf::SeqNo> aft::State::retired_committed_idx = std::nullopt

◆ retirement_committable_idx

std::optional<ccf::SeqNo> aft::State::retirement_committable_idx = std::nullopt

◆ retirement_idx

std::optional<ccf::SeqNo> aft::State::retirement_idx = std::nullopt

◆ retirement_phase

std::optional<ccf::kv::RetirementPhase> aft::State::retirement_phase = std::nullopt

◆ view_history

ViewHistory aft::State::view_history

The documentation for this struct was generated from the following file: