24#ifndef RECOVERY_MESSAGE_INCLUDED
25#define RECOVERY_MESSAGE_INCLUDED
107 const unsigned char *)
override;
This is the base GCS plugin message.
Definition: gcs_plugin_messages.h:64
Definition: recovery_message.h:34
std::string member_uuid
The member uuid where the message originated.
Definition: recovery_message.h:113
~Recovery_message() override
Message destructor.
Recovery_message_type get_recovery_message_type()
Returns this recovery message type.
Definition: recovery_message.h:86
const std::string & get_member_uuid()
Returns this message sender's uuid.
Definition: recovery_message.h:91
void decode_payload(const unsigned char *buffer, const unsigned char *) override
Message decoding method.
Definition: recovery_message.cc:41
Recovery_message(Recovery_message_type type, const std::string &member_uuid)
Message constructor.
Definition: recovery_message.cc:28
Recovery_message_type recovery_message_type
The message type.
Definition: recovery_message.h:111
enum_payload_item_type
Definition: recovery_message.h:36
@ PIT_MEMBER_UUID
Definition: recovery_message.h:44
@ PIT_MAX
Definition: recovery_message.h:47
@ PIT_UNKNOWN
Definition: recovery_message.h:38
@ PIT_RECOVERY_MESSAGE_TYPE
Definition: recovery_message.h:41
void encode_payload(std::vector< unsigned char > *buffer) const override
Encodes the message contents for transmission.
Definition: recovery_message.cc:57
Recovery_message_type
The several recovery type messages.
Definition: recovery_message.h:53
@ RECOVERY_END_MESSAGE
Recovery ended, member is online.
Definition: recovery_message.h:57
@ DONOR_FINISHED_MESSAGE
Donor transmitted all data (for future use)
Definition: recovery_message.h:59
@ RECOVERY_UNKNOWN
This type should not be used anywhere.
Definition: recovery_message.h:55
@ RECOVERY_MESSAGE_TYPE_END
The end of the enum.
Definition: recovery_message.h:61
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
required string type
Definition: replication_group_member_actions.proto:34