OpenCBDC Transaction Processor
|
NuRaft state machine implementation for a runtime locking shard. More...
#include <state_machine.hpp>
Public Member Functions | |
auto | commit (uint64_t log_idx, nuraft::buffer &data) -> nuraft::ptr< nuraft::buffer > override |
Commit the given raft log entry at the given log index, and return the result. | |
auto | apply_snapshot (nuraft::snapshot &) -> bool override |
Not implemented for runtime locking shard. | |
auto | last_snapshot () -> nuraft::ptr< nuraft::snapshot > override |
Not implemented for runtime locking shard. | |
auto | last_commit_index () -> uint64_t override |
Returns the most recently committed log entry index. | |
void | create_snapshot (nuraft::snapshot &, nuraft::async_result< bool >::handler_type &) override |
Not implemented for runtime locking shard. | |
auto | get_shard () const -> std::shared_ptr< replicated_shard > |
Returns the replicated shard implementation managed by the state machine. | |
NuRaft state machine implementation for a runtime locking shard.
Definition at line 17 of file parsec/runtime_locking_shard/state_machine.hpp.
|
override |
Not implemented for runtime locking shard.
Definition at line 36 of file parsec/runtime_locking_shard/state_machine.cpp.
|
override |
Commit the given raft log entry at the given log index, and return the result.
log_idx | raft log index of the log entry. |
data | serialized RPC request. |
Definition at line 15 of file parsec/runtime_locking_shard/state_machine.cpp.
References cbdc::from_buffer(), and cbdc::make_buffer().
|
override |
Not implemented for runtime locking shard.
Definition at line 48 of file parsec/runtime_locking_shard/state_machine.cpp.
|
nodiscard |
Returns the replicated shard implementation managed by the state machine.
Definition at line 96 of file parsec/runtime_locking_shard/state_machine.cpp.
|
override |
Returns the most recently committed log entry index.
Definition at line 44 of file parsec/runtime_locking_shard/state_machine.cpp.
|
override |
Not implemented for runtime locking shard.
Definition at line 40 of file parsec/runtime_locking_shard/state_machine.cpp.