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;
90 virtual std::string
get_uuid()
const = 0;
The Xapian namespace contains public interfaces for the Xapian library.
A RemoteConnection object provides a bidirectional connection to another RemoteConnection object on a...
XAPIAN_REVISION_TYPE rev
Revision number of a database.
virtual std::string get_uuid() const =0
Get a UUID for the replica.
double end_time(double timeout)
Return the end time for a timeout in timeout seconds.
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.
Base class for database replicator objects.
virtual ~DatabaseReplicator()
Destroy the replicator.
virtual std::string apply_changeset_from_conn(RemoteConnection &conn, double end_time, bool db_valid) const =0
Read and apply the next changeset.
static DatabaseReplicator * open(const std::string &path)
Open a DatabaseReplicator for the given path.
DatabaseReplicator()
Constructor to allow construction of subclasses from the open() method.
void operator=(const DatabaseReplicator &)
Assignment is not allowed.