MetaLog framework. More...
Namespaces | |
EntityType | |
MetaLog entity type constants | |
Classes | |
class | Definition |
Defines the set of valid MetaLog entities for a server. More... | |
class | DefinitionMaster |
class | DefinitionRangeServer |
class | Entity |
Base class for MetaLog entities. More... | |
class | EntityHeader |
Entity header. More... | |
class | EntityRecover |
Recover entity used for sanity checking. More... | |
class | EntityTask |
class | EntityTaskAcknowledgeRelinquish |
class | Header |
Metalog file header. More... | |
class | Reader |
Reads a MetaLog. More... | |
class | Writer |
Writes a MetaLog. More... | |
Typedefs | |
typedef std::shared_ptr < Definition > | DefinitionPtr |
Smart pointer to Definition. More... | |
typedef std::shared_ptr< Entity > | EntityPtr |
Smart pointer to Entity. More... | |
typedef std::shared_ptr< Reader > | ReaderPtr |
Smart pointer to Reader. More... | |
typedef std::shared_ptr< Writer > | WriterPtr |
Smart pointer to Writer. More... | |
typedef std::shared_ptr < EntityTask > | EntityTaskPtr |
Functions | |
void | scan_log_directory (FilesystemPtr &fs, const std::string &path, std::deque< int32_t > &file_ids) |
Scans MetaLog directory for numeric file names. More... | |
std::ostream & | operator<< (std::ostream &os, Entity &entity) |
ostream shift function for Entity objects. More... | |
MetaLog framework.
Contains a set of classes that define the MetaLog subsystem.
typedef std::shared_ptr<EntityTask> Hypertable::MetaLog::EntityTaskPtr |
Definition at line 42 of file MetaLogEntityTask.h.
void Hypertable::MetaLog::scan_log_directory | ( | FilesystemPtr & | fs, |
const std::string & | path, | ||
std::deque< int32_t > & | file_ids | ||
) |
Scans MetaLog directory for numeric file names.
A MetaLog consists of a directory containing a set of numerically named files, each file containing the state and state transitions of a start-to-finish run of a server. This function returns the set of numeric file names found within the MetaLog directory as well as the file number that can be used to hold the state of the next run of the server.
fs | Smart pointer to Filesystem object |
path | Pathname of MetaLog directory |
file_ids | Deque to hold discovered numeric file names |
Definition at line 54 of file MetaLog.cc.