FlintDatabaseReplicator Class Reference

#include <flint_databasereplicator.h>

Inheritance diagram for FlintDatabaseReplicator:

Inheritance graph
[legend]
Collaboration diagram for FlintDatabaseReplicator:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 FlintDatabaseReplicator (const std::string &db_dir_)
bool check_revision_at_least (const std::string &rev, const std::string &target) const
 Virtual methods of DatabaseReplicator.
std::string apply_changeset_from_conn (RemoteConnection &conn, double end_time, bool valid) const
 Virtual methods of DatabaseReplicator.
std::string get_uuid () const
 Virtual methods of DatabaseReplicator.

Private Member Functions

void process_changeset_chunk_base (const std::string &tablename, std::string &buf, RemoteConnection &conn, double end_time, int changes_fd) const
 Process a chunk which holds a base block.
void process_changeset_chunk_blocks (const std::string &tablename, std::string &buf, RemoteConnection &conn, double end_time, int changes_fd) const
 Process a chunk which holds a list of changed blocks in the database.

Private Attributes

std::string db_dir
 Path of database.
unsigned int max_changesets
 The maximum number of changesets which should be kept in the database.


Detailed Description

Definition at line 29 of file flint_databasereplicator.h.


Constructor & Destructor Documentation

FlintDatabaseReplicator::FlintDatabaseReplicator ( const std::string &  db_dir_  ) 

Definition at line 55 of file flint_databasereplicator.cc.

References max_changesets.


Member Function Documentation

string FlintDatabaseReplicator::apply_changeset_from_conn ( RemoteConnection conn,
double  end_time,
bool  valid 
) const [virtual]

bool FlintDatabaseReplicator::check_revision_at_least ( const std::string &  rev,
const std::string &  target 
) const [virtual]

Virtual methods of DatabaseReplicator.

Implements Xapian::DatabaseReplicator.

Definition at line 65 of file flint_databasereplicator.cc.

References F_unpack_uint(), LOGCALL, and RETURN.

string FlintDatabaseReplicator::get_uuid (  )  const [virtual]

Virtual methods of DatabaseReplicator.

Implements Xapian::DatabaseReplicator.

Definition at line 373 of file flint_databasereplicator.cc.

References db_dir, FlintVersion::get_uuid_string(), LOGCALL, FlintVersion::read_and_check(), and RETURN.

void FlintDatabaseReplicator::process_changeset_chunk_base ( const std::string &  tablename,
std::string &  buf,
RemoteConnection conn,
double  end_time,
int  changes_fd 
) const [private]

void FlintDatabaseReplicator::process_changeset_chunk_blocks ( const std::string &  tablename,
std::string &  buf,
RemoteConnection conn,
double  end_time,
int  changes_fd 
) const [private]


Member Data Documentation

std::string FlintDatabaseReplicator::db_dir [private]

The maximum number of changesets which should be kept in the database.

Definition at line 37 of file flint_databasereplicator.h.

Referenced by apply_changeset_from_conn(), and FlintDatabaseReplicator().


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

Documentation for Xapian (version 1.2.9).
Generated on 10 May 2012 by Doxygen 1.5.9.