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

#include <CommitLogBase.h>

Inheritance diagram for Hypertable::CommitLogBase:
Inheritance graph
[legend]
Collaboration diagram for Hypertable::CommitLogBase:
Collaboration graph
[legend]

Public Member Functions

 CommitLogBase (const std::string &log_dir)
 
void stitch_in (CommitLogBase *other)
 This method assumes that the other commit log is not being concurrently used which is why it doesn't lock it's mutex. More...
 
std::string & get_log_dir ()
 
int64_t get_latest_revision ()
 
bool empty ()
 
bool range_reference_required ()
 
LogFragmentQueuefragment_queue ()
 
uint32_t toplevel_fragment_id (CommitLogFileInfo *finfo)
 

Protected Attributes

std::mutex m_mutex
 
std::string m_log_dir
 
std::string m_log_name
 
LogFragmentQueue m_fragment_queue
 
int64_t m_latest_revision
 
std::set< int64_t > m_linked_log_hashes
 
bool m_range_reference_required
 

Detailed Description

Definition at line 81 of file CommitLogBase.h.

Constructor & Destructor Documentation

Hypertable::CommitLogBase::CommitLogBase ( const std::string &  log_dir)
inline

Definition at line 83 of file CommitLogBase.h.

Member Function Documentation

bool Hypertable::CommitLogBase::empty ( )
inline

Definition at line 111 of file CommitLogBase.h.

LogFragmentQueue& Hypertable::CommitLogBase::fragment_queue ( )
inline

Definition at line 115 of file CommitLogBase.h.

int64_t Hypertable::CommitLogBase::get_latest_revision ( )
inline

Definition at line 109 of file CommitLogBase.h.

std::string& Hypertable::CommitLogBase::get_log_dir ( )
inline

Definition at line 107 of file CommitLogBase.h.

bool Hypertable::CommitLogBase::range_reference_required ( )
inline

Definition at line 113 of file CommitLogBase.h.

void Hypertable::CommitLogBase::stitch_in ( CommitLogBase other)
inline

This method assumes that the other commit log is not being concurrently used which is why it doesn't lock it's mutex.

Definition at line 99 of file CommitLogBase.h.

uint32_t Hypertable::CommitLogBase::toplevel_fragment_id ( CommitLogFileInfo finfo)
inline

Definition at line 117 of file CommitLogBase.h.

Member Data Documentation

LogFragmentQueue Hypertable::CommitLogBase::m_fragment_queue
protected

Definition at line 127 of file CommitLogBase.h.

int64_t Hypertable::CommitLogBase::m_latest_revision
protected

Definition at line 128 of file CommitLogBase.h.

std::set<int64_t> Hypertable::CommitLogBase::m_linked_log_hashes
protected

Definition at line 129 of file CommitLogBase.h.

std::string Hypertable::CommitLogBase::m_log_dir
protected

Definition at line 125 of file CommitLogBase.h.

std::string Hypertable::CommitLogBase::m_log_name
protected

Definition at line 126 of file CommitLogBase.h.

std::mutex Hypertable::CommitLogBase::m_mutex
protected

Definition at line 124 of file CommitLogBase.h.

bool Hypertable::CommitLogBase::m_range_reference_required
protected

Definition at line 130 of file CommitLogBase.h.


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