27 #ifndef Hypertable_Master_RecoveredServers_h
28 #define Hypertable_Master_RecoveredServers_h
62 void add(
const std::string &location);
68 bool contains(
const std::string &location);
92 size_t *remainp)
override;
95 void decode(
const uint8_t **bufp,
size_t *remainp,
96 uint16_t definition_version)
override;
100 const std::string
name()
override;
104 void display(std::ostream &os)
override;
118 #endif // Hypertable_Master_RecoveredServers_h
void encode_internal(uint8_t **bufp) const override
Writes serialized representation of object to a buffer.
void decode(const uint8_t **bufp, size_t *remainp, uint16_t definition_version) override
MetaLog entity decode method.
std::set< std::string > m_servers
Set of proxy names of recovered servers.
uint8_t encoding_version() const override
Returns encoding version.
bool contains(const std::string &location)
Check to see if proxy name is in recovered servers set.
std::shared_ptr< RecoveredServers > RecoveredServersPtr
Smart pointer to RecoveredServers.
Set of recovered servers.
size_t encoded_length_internal() const override
Returns internal serialized length.
const std::string name() override
Returns the name of the entity (RecoveredServers).
void display(std::ostream &os) override
Writes a textual representation of the entity to an output stream.
virtual ~RecoveredServers()
Destructor.
void add(const std::string &location)
Adds proxy name to recovered servers set.
RecoveredServers()
Default constructor.
void decode_internal(uint8_t version, const uint8_t **bufp, size_t *remainp) override
Reads serialized representation of object from a buffer.