Public Member Functions | Private Member Functions | Private Attributes | List of all members
CommitHandler Class Reference
Inheritance diagram for CommitHandler:
Inheritance graph
[legend]

Public Member Functions

 CommitHandler (const std::string &id)
 
- Public Member Functions inherited from uavcan::dynamic_node_id_server::distributed::IRaftLeaderMonitor
virtual void handleLogCommitOnLeader (const Entry &committed_entry)=0
 
virtual ~IRaftLeaderMonitor ()
 

Private Member Functions

virtual void handleLocalLeadershipChange (bool local_node_is_leader)
 
virtual void handleLogCommitOnLeader (const uavcan::protocol::dynamic_node_id::server::Entry &entry)
 

Private Attributes

const std::string id_
 

Detailed Description

Definition at line 20 of file distributed/server.cpp.

Constructor & Destructor Documentation

◆ CommitHandler()

CommitHandler::CommitHandler ( const std::string &  id)
inline

Definition at line 35 of file distributed/server.cpp.

Member Function Documentation

◆ handleLocalLeadershipChange()

virtual void CommitHandler::handleLocalLeadershipChange ( bool  local_node_is_leader)
inlineprivatevirtual

Invoked by the Raft core when the local node becomes a leader or ceases to be one. By default the local node is not leader. It is possible to commit to the log right from this method.

Implements uavcan::dynamic_node_id_server::distributed::IRaftLeaderMonitor.

Definition at line 29 of file distributed/server.cpp.

◆ handleLogCommitOnLeader()

virtual void CommitHandler::handleLogCommitOnLeader ( const uavcan::protocol::dynamic_node_id::server::Entry &  entry)
inlineprivatevirtual

Definition at line 24 of file distributed/server.cpp.

Member Data Documentation

◆ id_

const std::string CommitHandler::id_
private

Definition at line 22 of file distributed/server.cpp.


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


uavcan_communicator
Author(s):
autogenerated on Fri Dec 13 2024 03:10:04