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

#include <MetaLogDefinitionMaster.h>

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

Public Member Functions

 DefinitionMaster (const char *backup_label)
 
 DefinitionMaster (ContextPtr &context, const char *backup_label)
 
uint16_t version () override
 Returns version number of definition. More...
 
const char * name () override
 Returns MetaLog definition name. More...
 
EntityPtr create (const EntityHeader &header) override
 Constructs a MetaLog entity from an entity header. More...
 
- Public Member Functions inherited from Hypertable::MetaLog::Definition
 Definition (const char *backup_label)
 Constructor. More...
 
virtual const char * backup_label ()
 Returns backup label of MetaLog. More...
 

Private Attributes

ContextPtr m_context
 

Detailed Description

Definition at line 32 of file MetaLogDefinitionMaster.h.

Constructor & Destructor Documentation

Hypertable::MetaLog::DefinitionMaster::DefinitionMaster ( const char *  backup_label)
inline

Definition at line 34 of file MetaLogDefinitionMaster.h.

Hypertable::MetaLog::DefinitionMaster::DefinitionMaster ( ContextPtr context,
const char *  backup_label 
)
inline

Definition at line 35 of file MetaLogDefinitionMaster.h.

Member Function Documentation

EntityPtr DefinitionMaster::create ( const EntityHeader header)
overridevirtual

Constructs a MetaLog entity from an entity header.

When the MetaLog framework reads serialized entities from a MetaLog file, it first reads the entity header and passes that header into this method which will construct an empty entity. It then reconstructs the entity state by passing a pointer to the serialized entity to the Entity::decode() method.

Parameters
headerEntity header
Returns
Pointer to newly constructed entity, or 0 if entity described by header is no longer used

Implements Hypertable::MetaLog::Definition.

Definition at line 61 of file MetaLogDefinitionMaster.cc.

const char * DefinitionMaster::name ( )
overridevirtual

Returns MetaLog definition name.

This method returns the name of the MetaLog definition (e.g. "mml" or "rsml"). This name is used as the last path component of the directory name of the MetaLog. For example, the RSML for server "rs1" is stored in a directory path that looks something like /hypertable/servers/rs1/log/rsml.

Returns
MetaLog definition name

Implements Hypertable::MetaLog::Definition.

Definition at line 57 of file MetaLogDefinitionMaster.cc.

uint16_t DefinitionMaster::version ( )
overridevirtual

Returns version number of definition.

Returns
Version number of definition

Implements Hypertable::MetaLog::Definition.

Definition at line 53 of file MetaLogDefinitionMaster.cc.

Member Data Documentation

ContextPtr Hypertable::MetaLog::DefinitionMaster::m_context
private

Definition at line 41 of file MetaLogDefinitionMaster.h.


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