24#ifndef GROUP_VALIDATION_MESSAGE_INCLUDED
25#define GROUP_VALIDATION_MESSAGE_INCLUDED
93 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:103
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:34
@ PIT_VALIDATION_CHANNEL
Definition: group_validation_message.h:37
@ PIT_VALIDATION_TYPE
Definition: group_validation_message.h:36
@ PIT_MAX
Definition: group_validation_message.h:39
@ 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:27
enum_validation_message_type group_validation_message_type
The message type.
Definition: group_validation_message.h:97
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:100
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
mutable_buffer buffer(void *p, size_t n) noexcept
Definition: buffer.h:420
unsigned int uint
Definition: uca9-dump.cc:75