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

Represents the data needed to log a "ragged trim" decision to disk. More...

#include <restart_state.hpp>

Inheritance diagram for derecho::RaggedTrim:
Inheritance graph
[legend]
Collaboration diagram for derecho::RaggedTrim:
Collaboration graph
[legend]

Public Member Functions

 RaggedTrim (subgroup_id_t subgroup_id, uint32_t shard_num, int vid, int32_t leader_id, std::vector< int32_t > max_received_by_sender)
 
 DEFAULT_SERIALIZATION_SUPPORT (RaggedTrim, subgroup_id, shard_num, vid, leader_id, max_received_by_sender)
 
- Public Member Functions inherited from mutils::ByteRepresentable
virtual std::size_t to_bytes (char *v) const =0
 Write this class's marshalled representation into the array found at v. More...
 
virtual void post_object (const std::function< void(char const *const, std::size_t)> &) const =0
 Pass a pointer to a buffer containing this class's marshalled representation into the function f. More...
 
virtual std::size_t bytes_size () const =0
 the size of the marshalled representation of this object. More...
 
virtual ~ByteRepresentable ()
 

Public Attributes

subgroup_id_t subgroup_id
 
uint32_t shard_num
 
int vid
 
int32_t leader_id
 
std::vector< int32_t > max_received_by_sender
 

Detailed Description

Represents the data needed to log a "ragged trim" decision to disk.

There will be one of these per subgroup that a node belongs to, because each subgroup decides its ragged edge cleanup separately.

Definition at line 23 of file restart_state.hpp.

Constructor & Destructor Documentation

◆ RaggedTrim()

derecho::RaggedTrim::RaggedTrim ( subgroup_id_t  subgroup_id,
uint32_t  shard_num,
int  vid,
int32_t  leader_id,
std::vector< int32_t >  max_received_by_sender 
)
inline

Definition at line 29 of file restart_state.hpp.

Member Function Documentation

◆ DEFAULT_SERIALIZATION_SUPPORT()

derecho::RaggedTrim::DEFAULT_SERIALIZATION_SUPPORT ( RaggedTrim  ,
subgroup_id  ,
shard_num  ,
vid  ,
leader_id  ,
max_received_by_sender   
)

Member Data Documentation

◆ leader_id

int32_t derecho::RaggedTrim::leader_id

Definition at line 27 of file restart_state.hpp.

◆ max_received_by_sender

std::vector<int32_t> derecho::RaggedTrim::max_received_by_sender

Definition at line 28 of file restart_state.hpp.

◆ shard_num

uint32_t derecho::RaggedTrim::shard_num

Definition at line 25 of file restart_state.hpp.

◆ subgroup_id

subgroup_id_t derecho::RaggedTrim::subgroup_id

Definition at line 24 of file restart_state.hpp.

◆ vid

int derecho::RaggedTrim::vid

Definition at line 26 of file restart_state.hpp.


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