libuav original
Dependents: UAVCAN UAVCAN_Subscriber
IRaftLeaderMonitor Class Reference
Allocator has to implement this interface so the RaftCore can inform it when a new entry gets committed to the log. More...
#include <raft_core.hpp>
Inherited by CommitHandler, and Server [private].
Public Member Functions | |
| virtual void | handleLogCommitOnLeader (const Entry &committed_entry)=0 |
| This method will be invoked when a new log entry is committed (only if the local server is the current Leader). | |
| virtual void | handleLocalLeadershipChange (bool local_node_is_leader)=0 |
| Invoked by the Raft core when the local node becomes a leader or ceases to be one. | |
Detailed Description
Allocator has to implement this interface so the RaftCore can inform it when a new entry gets committed to the log.
Definition at line 32 of file raft_core.hpp.
Member Function Documentation
| virtual void handleLocalLeadershipChange | ( | bool | local_node_is_leader ) | [pure virtual] |
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.
| virtual void handleLogCommitOnLeader | ( | const Entry & | committed_entry ) | [pure virtual] |
This method will be invoked when a new log entry is committed (only if the local server is the current Leader).
Generated on Tue Jul 12 2022 17:17:38 by
1.7.2