23 #ifndef XAPIAN_INCLUDED_DATABASEREPLICATOR_H
24 #define XAPIAN_INCLUDED_DATABASEREPLICATOR_H
68 const std::string & target)
const = 0;
82 bool db_valid)
const = 0;
A RemoteConnection object provides a bidirectional connection to another RemoteConnection object on a...
Base class for database replicator objects.
DatabaseReplicator(const DatabaseReplicator &)
Copies are not allowed.
virtual std::string apply_changeset_from_conn(RemoteConnection &conn, double end_time, bool db_valid) const =0
Read and apply the next changeset.
virtual bool check_revision_at_least(const std::string &rev, const std::string &target) const =0
Check if the revision of the database is at least that of a target.
void operator=(const DatabaseReplicator &)
Assignment is not allowed.
virtual ~DatabaseReplicator()
Destroy the replicator.
static DatabaseReplicator * open(const std::string &path)
Open a DatabaseReplicator for the given path.
virtual std::string get_uuid() const =0
Get a UUID for the replica.
DatabaseReplicator()
Constructor to allow construction of subclasses from the open() method.
double end_time(double timeout)
Return the end time for a timeout in timeout seconds.
The Xapian namespace contains public interfaces for the Xapian library.
XAPIAN_REVISION_TYPE rev
Revision number of a database.