
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_ |
Definition at line 20 of file distributed/server.cpp.
|
inline |
Definition at line 35 of file distributed/server.cpp.
|
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.
|
inlineprivatevirtual |
Definition at line 24 of file distributed/server.cpp.
|
private |
Definition at line 22 of file distributed/server.cpp.