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

#include <MetaLogDefinitionRangeServer.h>

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

Public Member Functions

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

Detailed Description

Definition at line 29 of file MetaLogDefinitionRangeServer.h.

Constructor & Destructor Documentation

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

Definition at line 31 of file MetaLogDefinitionRangeServer.h.

Member Function Documentation

EntityPtr DefinitionRangeServer::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 44 of file MetaLogDefinitionRangeServer.cc.

const char * DefinitionRangeServer::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 40 of file MetaLogDefinitionRangeServer.cc.

uint16_t DefinitionRangeServer::version ( )
overridevirtual

Returns version number of definition.

Returns
Version number of definition

Implements Hypertable::MetaLog::Definition.

Definition at line 36 of file MetaLogDefinitionRangeServer.cc.


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