MySQL 8.4.2
Source Code Documentation
Election_member_info Class Reference

#include <primary_election_utils.h>

Public Member Functions

 Election_member_info (const std::string uuid, const Member_version &version, bool is_primary)
 
std::string & get_uuid ()
 
Member_versionget_member_version ()
 
bool is_primary ()
 
bool member_left ()
 
bool has_channels ()
 
bool is_information_set ()
 
void set_has_running_channels (bool running_channels)
 Set the flag that tells if the member has channels. More...
 
void set_information_set (bool set)
 Set the flag that tells if this class was updated. More...
 
void set_member_left (bool left)
 Did the member left the group. More...
 

Private Attributes

std::string member_uuid
 The member uuid. More...
 
Member_version member_version
 This member version. More...
 
bool is_member_primary
 Is this member the primary. More...
 
bool has_running_channels
 Does the member has running channels. More...
 
bool has_member_left
 Did the member leave? More...
 
bool info_is_set
 Was the info for this member set. More...
 

Constructor & Destructor Documentation

◆ Election_member_info()

Election_member_info::Election_member_info ( const std::string  uuid,
const Member_version version,
bool  is_primary 
)

Member Function Documentation

◆ get_member_version()

Member_version & Election_member_info::get_member_version ( )
Returns
The member version

◆ get_uuid()

std::string & Election_member_info::get_uuid ( )
Returns
The member uuid

◆ has_channels()

bool Election_member_info::has_channels ( )
Returns
this member has channels?

◆ is_information_set()

bool Election_member_info::is_information_set ( )
Returns
was this member information updated

◆ is_primary()

bool Election_member_info::is_primary ( )
Note
This only returns true for single primary mode
Returns
Is this member a primary?

◆ member_left()

bool Election_member_info::member_left ( )
Returns
Did the member left the group

◆ set_has_running_channels()

void Election_member_info::set_has_running_channels ( bool  running_channels)

Set the flag that tells if the member has channels.

Parameters
running_channelsthe member has channels?

◆ set_information_set()

void Election_member_info::set_information_set ( bool  set)

Set the flag that tells if this class was updated.

Parameters
setwas the info updated?

◆ set_member_left()

void Election_member_info::set_member_left ( bool  left)

Did the member left the group.

Parameters
leftdid the member left the group

Member Data Documentation

◆ has_member_left

bool Election_member_info::has_member_left
private

Did the member leave?

◆ has_running_channels

bool Election_member_info::has_running_channels
private

Does the member has running channels.

◆ info_is_set

bool Election_member_info::info_is_set
private

Was the info for this member set.

◆ is_member_primary

bool Election_member_info::is_member_primary
private

Is this member the primary.

◆ member_uuid

std::string Election_member_info::member_uuid
private

The member uuid.

◆ member_version

Member_version Election_member_info::member_version
private

This member version.


The documentation for this class was generated from the following files: