#include <recovery_metadata_joiner_information.h>
◆ Recovery_metadata_joiner_information()
Recovery_metadata_joiner_information::Recovery_metadata_joiner_information |
( |
const std::string & |
view_id | ) |
|
|
inline |
◆ ~Recovery_metadata_joiner_information()
virtual Recovery_metadata_joiner_information::~Recovery_metadata_joiner_information |
( |
| ) |
|
|
inlinevirtual |
◆ delete_leaving_members_from_sender()
void Recovery_metadata_joiner_information::delete_leaving_members_from_sender |
( |
std::vector< Gcs_member_identifier > |
member_left | ) |
|
Delete the members that have left the group from the stored GCS Member ID of the valid sender list.
- Parameters
-
member_left | GCS Member ID of the member left the group. |
◆ is_joiner_recovery_metadata()
bool Recovery_metadata_joiner_information::is_joiner_recovery_metadata |
( |
const std::string & |
view_id | ) |
|
Does the metadata belongs to the joiners for which it was waiting?
- Parameters
-
view_id | The view ID of which metadata has to be compared |
- Returns
- the send status
- Return values
-
true | View-ID matches with the metadata in which joiner joined |
false | View-ID does not match with the metadata in which joiner joined |
◆ is_member_waiting_on_metadata()
bool Recovery_metadata_joiner_information::is_member_waiting_on_metadata |
( |
| ) |
|
Is the member joiner and waiting for the recovery metadata.
- Returns
- the send status
- Return values
-
true | Member is joiner and waiting for recovery metadata. |
false | Member is not joiner. |
◆ is_valid_sender_list_empty()
bool Recovery_metadata_joiner_information::is_valid_sender_list_empty |
( |
| ) |
|
Is there any member in the group that has the recovery metadata for the joiner?
- Returns
- the send status
- Return values
-
true | Atleast 1 server in the group has recovery metadata for the joiner. |
false | No server in the group has recovery metadata for the joiner. |
◆ set_valid_sender_list_of_joiner()
void Recovery_metadata_joiner_information::set_valid_sender_list_of_joiner |
( |
const std::vector< Gcs_member_identifier > & |
valid_senders | ) |
|
Saves the GCS Member ID of the metadata senders i.e.
members that were ONLINE when the join request was received. This members will save the recovery metadata till the joiner receives it.
- Parameters
-
valid_senders | GCS Member ID of the member having recovery metadata |
◆ m_joiner_view_id
const std::string Recovery_metadata_joiner_information::m_joiner_view_id |
|
private |
View ID on which joiner joined.
◆ m_valid_senders_for_joiner
Stores valid recovery metadata senders for joiner.
The documentation for this class was generated from the following files: