Manages a replicated locking shard using Raft.
More...
#include <controller.hpp>
Manages a replicated locking shard using Raft.
Definition at line 19 of file uhs/twophase/locking_shard/controller.hpp.
◆ controller() [1/4]
cbdc::locking_shard::controller::controller |
( |
size_t | shard_id, |
|
|
size_t | node_id, |
|
|
config::options | opts, |
|
|
std::shared_ptr< logging::log > | logger ) |
Constructor.
- Parameters
-
shard_id | shard cluster ID. |
node_id | node ID within shard cluster. |
opts | configuration parameters. |
logger | log to use for output. |
Definition at line 17 of file uhs/twophase/locking_shard/controller.cpp.
◆ ~controller()
cbdc::locking_shard::controller::~controller |
( |
| ) |
|
|
default |
◆ controller() [2/4]
cbdc::locking_shard::controller::controller |
( |
| ) |
|
|
delete |
◆ controller() [3/4]
cbdc::locking_shard::controller::controller |
( |
const controller & | | ) |
|
|
delete |
◆ controller() [4/4]
cbdc::locking_shard::controller::controller |
( |
controller && | | ) |
|
|
delete |
◆ init()
auto cbdc::locking_shard::controller::init |
( |
| ) |
-> bool |
Initializes the locking shard by reading the pre-seed file if applicable, initializing the raft cluster, and starting listeners on the client and status client endpoints.
Opens the audit log and starts a periodic supply auditing thread.
- Returns
- false if initialization fails.
Definition at line 32 of file uhs/twophase/locking_shard/controller.cpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
The documentation for this class was generated from the following files: