#include <replicator.h>
Public Member Functions | |
virtual bool | connectionBroken (char *hostName)=0 |
virtual void | transactionCommitted ()=0 |
virtual void | replicationEnd ()=0 |
virtual bool | preserveSlaveConsistency ()=0 |
This abstract class should be implemented by application to receive notification about replication process and to control replication process.
virtual bool dbReplicationManager::connectionBroken | ( | char * | hostName | ) | [pure virtual] |
Connnection with specified host is broken If this method returns TRUE then replication is continued for the rest of slaves, otherwise replication is interrupted.
virtual bool dbReplicationManager::preserveSlaveConsistency | ( | ) | [pure virtual] |
If this method returns true, then GigaBASE will preserve consistency of slave replica of the database. So in case of master or slave crash, it will be possible to recover and continue work with slave database. If this method returns false, the slave performance is greatly increased (because of avoiding flushing file buffers to the disk), but in case of fault, slave database may be stayed in inconsistent state.
virtual void dbReplicationManager::replicationEnd | ( | ) | [pure virtual] |
This method is called only for replication slave when replication is terminated by master
virtual void dbReplicationManager::transactionCommitted | ( | ) | [pure virtual] |
This method is called only for replication slave when the whole transaction is completely transfered from the master.