#include <MetaLogDefinitionMaster.h>
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 |
Definition at line 32 of file MetaLogDefinitionMaster.h.
|
inline |
Definition at line 34 of file MetaLogDefinitionMaster.h.
|
inline |
Definition at line 35 of file MetaLogDefinitionMaster.h.
|
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.
header | Entity header |
Implements Hypertable::MetaLog::Definition.
Definition at line 61 of file MetaLogDefinitionMaster.cc.
|
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
.
Implements Hypertable::MetaLog::Definition.
Definition at line 57 of file MetaLogDefinitionMaster.cc.
|
overridevirtual |
Returns version number of definition.
Implements Hypertable::MetaLog::Definition.
Definition at line 53 of file MetaLogDefinitionMaster.cc.
|
private |
Definition at line 41 of file MetaLogDefinitionMaster.h.