24#ifndef GROUP_VALIDATION_MESSAGE_INCLUDED
25#define GROUP_VALIDATION_MESSAGE_INCLUDED
106 const unsigned char *)
override;
The base message for group validation messages.
Definition: group_validation_message.h:31
uint member_weight
The member election weight.
Definition: group_validation_message.h:116
bool has_slave_channels() const
Does the member has running channels.
Definition: group_validation_message.cc:42
enum_payload_item_type
Enum for message payload.
Definition: group_validation_message.h:34
@ PIT_VALIDATION_CHANNEL
Definition: group_validation_message.h:37
@ PIT_VALIDATION_TYPE
Definition: group_validation_message.h:36
@ PIT_SENT_TIMESTAMP
Definition: group_validation_message.h:39
@ PIT_MAX
Definition: group_validation_message.h:40
@ PIT_UNKNOWN
Definition: group_validation_message.h:35
@ PIT_MEMBER_WEIGHT
Definition: group_validation_message.h:38
Group_validation_message(bool has_channels, uint member_weight_arg)
Class constructor.
Definition: group_validation_message.cc:28
enum_validation_message_type group_validation_message_type
The message type.
Definition: group_validation_message.h:110
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:90
void decode_payload(const unsigned char *buffer, const unsigned char *) override
Message decoding method.
Definition: group_validation_message.cc:50
void encode_payload(std::vector< unsigned char > *buffer) const override
Encodes the message contents for transmission.
Definition: group_validation_message.cc:71
uint get_member_weight() const
The election weight of this member.
Definition: group_validation_message.cc:46
~Group_validation_message() override
Class destructor.
enum_validation_message_type
Enum for the types of validation action.
Definition: group_validation_message.h:44
@ GROUP_VALIDATION_MESSAGE_END
Definition: group_validation_message.h:47
@ GROUP_VALIDATION_UNKNOWN_MESSAGE
Definition: group_validation_message.h:45
@ ELECTION_VALIDATION_MESSAGE
Definition: group_validation_message.h:46
bool has_channels
Does the member has channels?
Definition: group_validation_message.h:113
This is the base GCS plugin message.
Definition: gcs_plugin_messages.h:64
Some integer typedefs for easier portability.
unsigned char uchar
Definition: my_inttypes.h:52
Definition: buf0block_hint.cc:30
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:76
mutable_buffer buffer(void *p, size_t n) noexcept
Definition: buffer.h:418