Public Types | |
typedef std::pair< const std::string, const std::string > | map_key |
typedef std::map< const map_key, plugin::Plugin * > | map |
typedef std::vector< Plugin * > | vector |
Public Member Functions | |
DefaultReplicator (std::string name_arg) | |
~DefaultReplicator () | |
drizzled::plugin::ReplicationReturnCode | replicate (drizzled::plugin::TransactionApplier *in_applier, drizzled::Session &in_session, drizzled::message::Transaction &to_replicate) |
virtual void | shutdownPlugin () |
virtual void | prime () |
virtual void | startup (drizzled::Session &) |
void | activate () |
void | deactivate () |
bool | isActive () const |
const std::string & | getName () const |
void | setModule (module::Module *module) |
const std::string & | getTypeName () const |
virtual bool | removeLast () const |
const std::string & | getModuleName () const |
Static Public Member Functions | |
static bool | addPlugin (TransactionReplicator *replicator) |
static void | removePlugin (TransactionReplicator *replicator) |
Definition at line 38 of file default_replicator.h.
|
inline |
Destructor
Definition at line 45 of file default_replicator.h.
|
virtual |
Replicate a Transaction message to an Applier.
It is important to note that memory allocation for the supplied pointer is not guaranteed after the completion of this function – meaning the caller can dispose of the supplied message. Therefore, replicators and appliers implementing an asynchronous replication system must copy the supplied message to their own controlled memory storage area.
Applier | to replicate to |
Session | descriptor |
Transaction | message to be replicated |
Implements drizzled::plugin::TransactionReplicator.
Definition at line 49 of file default_replicator.cc.