0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | Private Member Functions | List of all members
Hypertable::MetaLog::EntityTaskAcknowledgeRelinquish Class Reference

#include <MetaLogEntityTaskAcknowledgeRelinquish.h>

Inheritance diagram for Hypertable::MetaLog::EntityTaskAcknowledgeRelinquish:
Inheritance graph
[legend]
Collaboration diagram for Hypertable::MetaLog::EntityTaskAcknowledgeRelinquish:
Collaboration graph
[legend]

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...
 

Detailed Description

Definition at line 32 of file MetaLogEntityTaskAcknowledgeRelinquish.h.

Constructor & Destructor Documentation

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.

virtual Hypertable::MetaLog::EntityTaskAcknowledgeRelinquish::~EntityTaskAcknowledgeRelinquish ( )
inlinevirtual

Definition at line 38 of file MetaLogEntityTaskAcknowledgeRelinquish.h.

Member Function Documentation

void EntityTaskAcknowledgeRelinquish::decode ( const uint8_t **  bufp,
size_t *  remainp,
uint16_t  definition_version 
)
overridevirtual

Decodes serlialized EntityTaskAcknowledgeRelinquish object.

Parameters
bufpAddress of source buffer pointer (advanced by call)
remainpAmount of remaining buffer pointed to by *bufp (decremented by call).
definition_versionVersion of DefinitionMaster

Reimplemented from Hypertable::MetaLog::Entity.

Definition at line 63 of file MetaLogEntityTaskAcknowledgeRelinquish.cc.

void EntityTaskAcknowledgeRelinquish::decode_internal ( uint8_t  version,
const uint8_t **  bufp,
size_t *  remainp 
)
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().

Parameters
versionEncoding version
bufpAddress of destination buffer pointer (advanced by call)
remainpAddress of integer holding amount of serialized encoding remaining
See also
encode_internal() for encoding format

Implements Hypertable::Serializable.

Definition at line 97 of file MetaLogEntityTaskAcknowledgeRelinquish.cc.

void EntityTaskAcknowledgeRelinquish::decode_old ( const uint8_t **  bufp,
size_t *  remainp 
)
private

Definition at line 105 of file MetaLogEntityTaskAcknowledgeRelinquish.cc.

void EntityTaskAcknowledgeRelinquish::display ( std::ostream &  os)
overridevirtual

Prints a textual representation of the entity state to an ostream.

Parameters
osostream on which to print entity state

Reimplemented from Hypertable::MetaLog::Entity.

Definition at line 77 of file MetaLogEntityTaskAcknowledgeRelinquish.cc.

void EntityTaskAcknowledgeRelinquish::encode_internal ( uint8_t **  bufp) const
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.

Parameters
bufpAddress of destination buffer pointer (advanced by call)

Implements Hypertable::Serializable.

Definition at line 90 of file MetaLogEntityTaskAcknowledgeRelinquish.cc.

size_t EntityTaskAcknowledgeRelinquish::encoded_length_internal ( ) const
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.

Returns
Internal serialized length
See also
encode_internal() for encoding format

Implements Hypertable::Serializable.

Definition at line 85 of file MetaLogEntityTaskAcknowledgeRelinquish.cc.

uint8_t EntityTaskAcknowledgeRelinquish::encoding_version ( ) const
overrideprivatevirtual

Returns encoding version.

Returns
Encoding version

Implements Hypertable::Serializable.

Definition at line 81 of file MetaLogEntityTaskAcknowledgeRelinquish.cc.

bool EntityTaskAcknowledgeRelinquish::execute ( )
overridevirtual
const String EntityTaskAcknowledgeRelinquish::name ( )
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

Returns
Name of the entity

Implements Hypertable::MetaLog::EntityTask.

Definition at line 73 of file MetaLogEntityTaskAcknowledgeRelinquish.cc.

void EntityTaskAcknowledgeRelinquish::work_queue_add_hook ( )
overridevirtual

Reimplemented from Hypertable::MetaLog::EntityTask.

Definition at line 59 of file MetaLogEntityTaskAcknowledgeRelinquish.cc.

Member Data Documentation

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.


The documentation for this class was generated from the following files: