Represents the data needed to log a "ragged trim" decision to disk. More...
#include <restart_state.hpp>
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 |
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.
|
inline |
Definition at line 29 of file restart_state.hpp.
derecho::RaggedTrim::DEFAULT_SERIALIZATION_SUPPORT | ( | RaggedTrim | , |
subgroup_id | , | ||
shard_num | , | ||
vid | , | ||
leader_id | , | ||
max_received_by_sender | |||
) |
int32_t derecho::RaggedTrim::leader_id |
Definition at line 27 of file restart_state.hpp.
std::vector<int32_t> derecho::RaggedTrim::max_received_by_sender |
Definition at line 28 of file restart_state.hpp.
uint32_t derecho::RaggedTrim::shard_num |
Definition at line 25 of file restart_state.hpp.
subgroup_id_t derecho::RaggedTrim::subgroup_id |
Definition at line 24 of file restart_state.hpp.
int derecho::RaggedTrim::vid |
Definition at line 26 of file restart_state.hpp.