Derecho  0.9
Distributed systems toolkit for RDMA
Public Member Functions | Public Attributes | List of all members
sst::SSTParams Struct Reference

Constructor parameter pack for SST. More...

#include <sst.hpp>

Collaboration diagram for sst::SSTParams:
Collaboration graph
[legend]

Public Member Functions

 SSTParams (const std::vector< uint32_t > &_members, const uint32_t my_node_id, const failure_upcall_t failure_upcall=nullptr, const std::vector< char > already_failed={}, const bool start_predicate_thread=true)
 

Public Attributes

const std::vector< uint32_t > & members
 
const uint32_t my_node_id
 
const failure_upcall_t failure_upcall
 
const std::vector< char > already_failed
 
const bool start_predicate_thread
 

Detailed Description

Constructor parameter pack for SST.

Definition at line 124 of file sst.hpp.

Constructor & Destructor Documentation

◆ SSTParams()

sst::SSTParams::SSTParams ( const std::vector< uint32_t > &  _members,
const uint32_t  my_node_id,
const failure_upcall_t  failure_upcall = nullptr,
const std::vector< char >  already_failed = {},
const bool  start_predicate_thread = true 
)
inline
Parameters
_membersA vector of node IDs, each of which represents a node participating in the SST. The order of nodes in this vector is the order in which their rows will appear in the SST.
my_node_idThe ID of the local node
failure_upcallThe function to call when SST detects that a remote node has failed.
already_failedA boolean vector indicating whether a node identified in members has already failed at the time this SST is constructed (i.e. already_failed[i] is true if members[i] has failed).
start_predicate_threadWhether the predicate evaluation thread should be started immediately on construction of the SST. If false, predicate evaluation will not start until start_predicate_evalution() is called.

Definition at line 147 of file sst.hpp.

Member Data Documentation

◆ already_failed

const std::vector<char> sst::SSTParams::already_failed

Definition at line 128 of file sst.hpp.

◆ failure_upcall

const failure_upcall_t sst::SSTParams::failure_upcall

Definition at line 127 of file sst.hpp.

◆ members

const std::vector<uint32_t>& sst::SSTParams::members

Definition at line 125 of file sst.hpp.

◆ my_node_id

const uint32_t sst::SSTParams::my_node_id

Definition at line 126 of file sst.hpp.

◆ start_predicate_thread

const bool sst::SSTParams::start_predicate_thread

Definition at line 129 of file sst.hpp.


The documentation for this struct was generated from the following file: