#include <MetaLogEntityTaskAcknowledgeRelinquish.h>
Public Member Functions | |
EntityTaskAcknowledgeRelinquish (const EntityHeader &header_) | |
EntityTaskAcknowledgeRelinquish (const String &loc, int64_t id, const TableIdentifier &t, const RangeSpec &rs) | |
virtual | ~EntityTaskAcknowledgeRelinquish () |
bool | execute () override |
void | work_queue_add_hook () override |
void | decode (const uint8_t **bufp, size_t *remainp, uint16_t definition_version) override |
Decodes serlialized EntityTaskAcknowledgeRelinquish object. More... | |
const String | name () override |
Returns the name of the entity. More... | |
void | display (std::ostream &os) override |
Prints a textual representation of the entity state to an ostream. More... | |
Public Member Functions inherited from Hypertable::MetaLog::EntityTask | |
EntityTask (const EntityHeader &header_) | |
EntityTask (int32_t type) | |
virtual | ~EntityTask () |
Public Member Functions inherited from Hypertable::MetaLog::Entity | |
Entity (int32_t type) | |
Constructor from entity type. More... | |
Entity (const EntityHeader &header_) | |
Constructor from entity header. More... | |
virtual | ~Entity () |
Destructor. More... | |
void | lock () |
Locks the entity's mutex. More... | |
void | unlock () |
Unlocks the entity's mutex. More... | |
void | mark_for_removal () |
Marks entity for removal. More... | |
bool | marked_for_removal () |
Checks if entity is marked for removal. More... | |
int64_t | id () const |
Returns the entity ID. More... | |
Public Member Functions inherited from Hypertable::Serializable | |
virtual size_t | encoded_length () const |
Returns serialized object length. More... | |
virtual void | encode (uint8_t **bufp) const |
Writes serialized representation of object to a buffer. More... | |
virtual void | decode (const uint8_t **bufp, size_t *remainp) |
Reads serialized representation of object from a buffer. More... | |
Public Attributes | |
String | location |
int64_t | range_id {} |
TableIdentifierManaged | table |
RangeSpecManaged | range_spec |
Private Member Functions | |
uint8_t | encoding_version () const override |
Returns encoding version. More... | |
size_t | encoded_length_internal () const override |
Returns internal serialized length. More... | |
void | encode_internal (uint8_t **bufp) const override |
Writes serialized representation of object to a buffer. More... | |
void | decode_internal (uint8_t version, const uint8_t **bufp, size_t *remainp) override |
Reads serialized representation of object from a buffer. More... | |
void | decode_old (const uint8_t **bufp, size_t *remainp) |
Additional Inherited Members | |
Protected Member Functions inherited from Hypertable::MetaLog::Entity | |
void | encode_entry (uint8_t **bufp) |
Encodes entity header plus serialized state. More... | |
Protected Attributes inherited from Hypertable::MetaLog::Entity | |
std::mutex | m_mutex |
Mutex for serializing access to members More... | |
EntityHeader | header |
Entity header More... | |
Definition at line 32 of file MetaLogEntityTaskAcknowledgeRelinquish.h.
EntityTaskAcknowledgeRelinquish::EntityTaskAcknowledgeRelinquish | ( | const EntityHeader & | header_ | ) |
Definition at line 34 of file MetaLogEntityTaskAcknowledgeRelinquish.cc.
EntityTaskAcknowledgeRelinquish::EntityTaskAcknowledgeRelinquish | ( | const String & | loc, |
int64_t | id, | ||
const TableIdentifier & | t, | ||
const RangeSpec & | rs | ||
) |
Definition at line 36 of file MetaLogEntityTaskAcknowledgeRelinquish.cc.
|
inlinevirtual |
Definition at line 38 of file MetaLogEntityTaskAcknowledgeRelinquish.h.
|
overridevirtual |
Decodes serlialized EntityTaskAcknowledgeRelinquish object.
bufp | Address of source buffer pointer (advanced by call) |
remainp | Amount of remaining buffer pointed to by *bufp (decremented by call). |
definition_version | Version of DefinitionMaster |
Reimplemented from Hypertable::MetaLog::Entity.
Definition at line 63 of file MetaLogEntityTaskAcknowledgeRelinquish.cc.
|
overrideprivatevirtual |
Reads serialized representation of object from a buffer.
This function is to be overridden by derived classes and should decode the object per-se as encoded with encode_internal().
version | Encoding version |
bufp | Address of destination buffer pointer (advanced by call) |
remainp | Address of integer holding amount of serialized encoding remaining |
Implements Hypertable::Serializable.
Definition at line 97 of file MetaLogEntityTaskAcknowledgeRelinquish.cc.
|
private |
Definition at line 105 of file MetaLogEntityTaskAcknowledgeRelinquish.cc.
|
overridevirtual |
Prints a textual representation of the entity state to an ostream.
os | ostream on which to print entity state |
Reimplemented from Hypertable::MetaLog::Entity.
Definition at line 77 of file MetaLogEntityTaskAcknowledgeRelinquish.cc.
|
overrideprivatevirtual |
Writes serialized representation of object to a buffer.
This function is to be overridden by derived classes and should encode the object per-se.
bufp | Address of destination buffer pointer (advanced by call) |
Implements Hypertable::Serializable.
Definition at line 90 of file MetaLogEntityTaskAcknowledgeRelinquish.cc.
|
overrideprivatevirtual |
Returns internal serialized length.
This function is to be overridden by derived classes and should return the length of the the serialized object per-se.
Implements Hypertable::Serializable.
Definition at line 85 of file MetaLogEntityTaskAcknowledgeRelinquish.cc.
|
overrideprivatevirtual |
Returns encoding version.
Implements Hypertable::Serializable.
Definition at line 81 of file MetaLogEntityTaskAcknowledgeRelinquish.cc.
|
overridevirtual |
Implements Hypertable::MetaLog::EntityTask.
Definition at line 40 of file MetaLogEntityTaskAcknowledgeRelinquish.cc.
|
overridevirtual |
Returns the name of the entity.
This method returns the name of the entity which is used by tools that convert a MetaLog into a human readable representation
Implements Hypertable::MetaLog::EntityTask.
Definition at line 73 of file MetaLogEntityTaskAcknowledgeRelinquish.cc.
|
overridevirtual |
Reimplemented from Hypertable::MetaLog::EntityTask.
Definition at line 59 of file MetaLogEntityTaskAcknowledgeRelinquish.cc.
String Hypertable::MetaLog::EntityTaskAcknowledgeRelinquish::location |
Definition at line 53 of file MetaLogEntityTaskAcknowledgeRelinquish.h.
int64_t Hypertable::MetaLog::EntityTaskAcknowledgeRelinquish::range_id {} |
Definition at line 54 of file MetaLogEntityTaskAcknowledgeRelinquish.h.
RangeSpecManaged Hypertable::MetaLog::EntityTaskAcknowledgeRelinquish::range_spec |
Definition at line 56 of file MetaLogEntityTaskAcknowledgeRelinquish.h.
TableIdentifierManaged Hypertable::MetaLog::EntityTaskAcknowledgeRelinquish::table |
Definition at line 55 of file MetaLogEntityTaskAcknowledgeRelinquish.h.