ICAROUS
All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Modules Pages
Public Attributes | List of all members
raftAppData_t Struct Reference

Struct to hold raft app data.

#include <raft.h>

Public Attributes

CFE_SB_PipeId_t Raft_HbeatPipe
 Pipe variable.
 
CFE_SB_PipeId_t Raft_SchPipe
 Pipe for scheduler.
 
CFE_SB_PipeId_t Raft_VotePipe
 Pipe for client data.
 
CFE_SB_PipeId_t Raft_ClientPipe
 Pipe for client data.
 
CFE_SB_MsgPtr_t Raft_HbeatMsgPtr
 Pointer to SB message.
 
CFE_SB_MsgPtr_t Raft_SchMsgPtr
 Pointer to SB message.
 
CFE_SB_MsgPtr_t Raft_VoteMsgPtr
 Pointer to SB message.
 
CFE_SB_MsgPtr_t Raft_ClientMsgPtr
 Pipe for client data.
 
Role_e nodeRole
 Raft role of this node.
 
uint32_t nodeID
 Aircraft id of current node.
 
uint32_t leaderID
 Leader for the current network.
 
int32_t nodeTerm
 Raft node's term.
 
int32_t votedTerm
 Voted term.
 
uint32_t votedForNodeId
 Node id of candidate voted for.
 
int32_t nodeIntersection
 Current intersection of this node.
 
uint32_t totalVotesReceived
 Total votes received.
 
uint32_t totalNodes
 Total nodes in the network.
 
int32_t memberNodeID [MAX_NODES]
 Member node identifications.
 
uint32_t followerTimerId
 Follower heartbeat timer id.
 
uint32_t candidateTimerId
 Candidate election timer id.
 
uint32_t leaderTimerId
 Leader timer id.
 
uint32_t hbeatTimeoutCounter
 Heartbeat timeout counter.
 
uint32_t electionTimeoutCounter
 Election timeout counter.
 
uint32_t leaderTimeoutCounter
 Leader timeout counter.
 
report_t mergingData [MAX_NODES]
 Merging data from all nodes in the network.
 
uint32_t logDataIndex
 Log data index.
 
report_t ownshipMergingData
 Latest merging data from ownship.
 
bool electionInitiated
 Flag indicating if election was initiated.
 
bool neutralPipeInitialized
 Pipe configuration for neutral role initialized.
 
bool followerPipeInitialized
 Pipe configuration for follower role initialized.
 
bool candidatePipeInitialized
 Pipe configuration for candidate role initialized.
 
bool leaderPipeInitialized
 Pipe configuration for leader role initialized.
 
bool neutralFollower
 True if no leader is available.
 
FILE * logFile
 Log file for debugging purposes.
 
uint32_t followerTime
 
uint32_t candidateTime
 
uint32_t leaderTime
 
uint32_t followerTimeout
 Follower heartbeat timer id.
 
uint32_t candidateTimeout
 Candidate election timer id.
 
uint32_t leaderTimeout
 Leader timer id.
 
struct timespec ts
 
double timeNow
 
std::list< raftHbeat_theartBeatPipeIn
 
std::list< raftHbeat_theartBeatPipeOut
 
std::list< raftHbeatAck_theartBeatAckPipeIn
 
std::list< raftHbeatAck_theartBeatAckPipeOut
 
std::list< raftVoteRequest_tvoteRequestPipeIn
 
std::list< raftVoteRequest_tvoteRequestPipeOut
 
std::list< raftVoteResponse_tvoteResponsePipeIn
 
std::list< raftVoteResponse_tvoteResponsePipeOut
 
cDataLog_t dataLog
 

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