|
drizzle
C++ MySQL-protocol-compatible database server
|
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) |
| Public Member Functions inherited from drizzled::plugin::TransactionReplicator | |
| TransactionReplicator (std::string name_arg) | |
| virtual ReplicationReturnCode | replicate (TransactionApplier *in_applier, Session &session, message::Transaction &to_replicate)=0 |
| Public Member Functions inherited from drizzled::plugin::Plugin | |
| Plugin (const std::string &name, const std::string &type_name) | |
| 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 |
Additional Inherited Members | |
| Public Types inherited from drizzled::plugin::Plugin | |
| typedef std::pair< const std::string, const std::string > | map_key |
| typedef std::unique_ptr< plugin::Plugin, deleter_fn > | owned_ptr |
| typedef std::map< const map_key, owned_ptr > | map |
| typedef std::vector< Plugin * > | vector |
| Static Public Member Functions inherited from drizzled::plugin::TransactionReplicator | |
| static bool | addPlugin (TransactionReplicator &replicator) |
| static void | removePlugin (TransactionReplicator &replicator) |
Definition at line 38 of file default_replicator.h.
|
inlineexplicit |
Definition at line 41 of file default_replicator.h.
|
inline |
Destructor
Definition at line 45 of file default_replicator.h.
| plugin::ReplicationReturnCode DefaultReplicator::replicate | ( | drizzled::plugin::TransactionApplier * | in_applier, |
| drizzled::Session & | in_session, | ||
| drizzled::message::Transaction & | to_replicate ) |
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 |
Definition at line 49 of file default_replicator.cc.