OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
cbdc::locking_shard::rpc Namespace Reference

Data Structures

struct  apply_response
 Empty type for the apply response. More...
 
class  client
 RPC client for the mutable interface to a locking shard raft cluster. More...
 
struct  discard_params
 Empty type for discard command parameters. More...
 
struct  discard_response
 Empty type for the discard response. More...
 
struct  request
 Request to a shard. More...
 
class  status_client
 Client for interacting with the read-only port on 2PC shards. More...
 
class  status_server
 Server for handling TX and UHS ID status requests. More...
 
struct  tx_status_request
 RPC message for clients to use to request the status of a TX ID. More...
 
struct  uhs_status_request
 RPC message for clients to use to request the status of a UHS ID. More...
 

Typedefs

using lock_params = std::vector<tx>
 Transactions whose outputs the locking shard should lock.
 
using apply_params = std::vector<bool>
 Vector of bools.
 
using lock_response = std::vector<bool>
 Response from a lock command, a vector of flags indicating which transactions in the batch had their relevant inputs successfully locked.
 
using response = std::variant<lock_response, apply_response, discard_response>
 Response to a locking shard request.
 
using status_request = std::variant<uhs_status_request, tx_status_request>
 Status request RPC message wrapper, holding either a UHS ID or TX ID query request.
 
using status_response = bool
 Status response RPC messages indicating whether the shard contains given UHS or TX ID.
 

Typedef Documentation

◆ apply_params

using cbdc::locking_shard::rpc::apply_params = std::vector<bool>

Vector of bools.

True if the locking shard should complete the transaction at the same index in the previous batch. False if the locking shard should unlock the transaction.

Definition at line 17 of file uhs/twophase/locking_shard/messages.hpp.

◆ lock_params

Transactions whose outputs the locking shard should lock.

Definition at line 13 of file uhs/twophase/locking_shard/messages.hpp.

◆ lock_response

using cbdc::locking_shard::rpc::lock_response = std::vector<bool>

Response from a lock command, a vector of flags indicating which transactions in the batch had their relevant inputs successfully locked.

Definition at line 40 of file uhs/twophase/locking_shard/messages.hpp.

◆ response

Response to a locking shard request.

Definition at line 57 of file uhs/twophase/locking_shard/messages.hpp.

◆ status_request

Status request RPC message wrapper, holding either a UHS ID or TX ID query request.

Definition at line 28 of file status_messages.hpp.

◆ status_response

Status response RPC messages indicating whether the shard contains given UHS or TX ID.

Definition at line 32 of file status_messages.hpp.