23#ifndef GROUP_VALIDATION_MESSAGE_INCLUDED
24#define GROUP_VALIDATION_MESSAGE_INCLUDED
105 const unsigned char *)
override;
The base message for group validation messages.
Definition: group_validation_message.h:30
uint member_weight
The member election weight.
Definition: group_validation_message.h:115
bool has_slave_channels() const
Does the member has running channels.
Definition: group_validation_message.cc:41
enum_payload_item_type
Enum for message payload.
Definition: group_validation_message.h:33
@ PIT_VALIDATION_CHANNEL
Definition: group_validation_message.h:36
@ PIT_VALIDATION_TYPE
Definition: group_validation_message.h:35
@ PIT_SENT_TIMESTAMP
Definition: group_validation_message.h:38
@ PIT_MAX
Definition: group_validation_message.h:39
@ PIT_UNKNOWN
Definition: group_validation_message.h:34
@ PIT_MEMBER_WEIGHT
Definition: group_validation_message.h:37
Group_validation_message(bool has_channels, uint member_weight_arg)
Class constructor.
Definition: group_validation_message.cc:27
enum_validation_message_type group_validation_message_type
The message type.
Definition: group_validation_message.h:109
static uint64_t get_sent_timestamp(const unsigned char *buffer, size_t length)
Return the time at which the message contained in the buffer was sent.
Definition: group_validation_message.cc:89
void decode_payload(const unsigned char *buffer, const unsigned char *) override
Message decoding method.
Definition: group_validation_message.cc:49
void encode_payload(std::vector< unsigned char > *buffer) const override
Encodes the message contents for transmission.
Definition: group_validation_message.cc:70
uint get_member_weight() const
The election weight of this member.
Definition: group_validation_message.cc:45
~Group_validation_message() override
Class destructor.
enum_validation_message_type
Enum for the types of validation action.
Definition: group_validation_message.h:43
@ GROUP_VALIDATION_MESSAGE_END
Definition: group_validation_message.h:46
@ GROUP_VALIDATION_UNKNOWN_MESSAGE
Definition: group_validation_message.h:44
@ ELECTION_VALIDATION_MESSAGE
Definition: group_validation_message.h:45
bool has_channels
Does the member has channels?
Definition: group_validation_message.h:112
This is the base GCS plugin message.
Definition: gcs_plugin_messages.h:63
Some integer typedefs for easier portability.
unsigned char uchar
Definition: my_inttypes.h:51
Definition: buf0block_hint.cc:29
bool length(const dd::Spatial_reference_system *srs, const Geometry *g1, double *length, bool *null) noexcept
Computes the length of linestrings and multilinestrings.
Definition: length.cc:75
mutable_buffer buffer(void *p, size_t n) noexcept
Definition: buffer.h:417