libuav original
Dependents: UAVCAN UAVCAN_Subscriber
Server Class Reference
This class implements the top-level allocation logic and server API. More...
#include <server.hpp>
Inherits uavcan::dynamic_node_id_server::AbstractServer, and uavcan::dynamic_node_id_server::distributed::IRaftLeaderMonitor.
Public Member Functions | |
| const RaftCore & | getRaftCore () const |
| These accessors are needed for debugging, visualization and testing. | |
| bool | guessIfAllDynamicNodesAreAllocated (const MonotonicDuration &allocation_activity_timeout=MonotonicDuration::fromMSec(Allocation::MAX_REQUEST_PERIOD_MS *2), const MonotonicDuration &min_uptime=MonotonicDuration::fromMSec(6000)) const |
| This can be used to guess if there are any un-allocated dynamic nodes left in the network. | |
| const NodeDiscoverer & | getNodeDiscoverer () const |
| This is useful for debugging/testing/monitoring. | |
Protected Types | |
| enum | NodeAwareness |
These values represent the level of awareness of a certain node by the server. More... | |
Private 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). | |
Detailed Description
This class implements the top-level allocation logic and server API.
Definition at line 25 of file distributed/server.hpp.
Member Enumeration Documentation
enum NodeAwareness [inherited] |
These values represent the level of awareness of a certain node by the server.
Definition at line 40 of file node_discoverer.hpp.
Member Function Documentation
| const NodeDiscoverer& getNodeDiscoverer | ( | ) | const [inherited] |
This is useful for debugging/testing/monitoring.
Definition at line 108 of file abstract_server.hpp.
| const RaftCore& getRaftCore | ( | ) | const |
These accessors are needed for debugging, visualization and testing.
Definition at line 279 of file distributed/server.hpp.
| bool guessIfAllDynamicNodesAreAllocated | ( | const MonotonicDuration & | allocation_activity_timeout = MonotonicDuration::fromMSec(Allocation::MAX_REQUEST_PERIOD_MS * 2), |
| const MonotonicDuration & | min_uptime = MonotonicDuration::fromMSec(6000) |
||
| ) | const [inherited] |
This can be used to guess if there are any un-allocated dynamic nodes left in the network.
Definition at line 68 of file abstract_server.hpp.
Generated on Tue Jul 12 2022 17:17:38 by
1.7.2