|
drizzle
C++ MySQL-protocol-compatible database server
|
Classes | |
| class | Master |
Public Member Functions | |
| ReplicationSlave (const std::string &config) | |
| void | startup (drizzled::Session &session) |
| Public Member Functions inherited from drizzled::plugin::Daemon | |
| Daemon (std::string name_arg) | |
| Public Member Functions inherited from drizzled::plugin::Plugin | |
| Plugin (const std::string &name, const std::string &type_name) | |
| virtual void | shutdownPlugin () |
| virtual void | prime () |
| 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 |
Private Member Functions | |
| Master & | master (size_t index) |
| bool | initWithConfig () |
Private Attributes | |
| std::string | _config_file |
| std::string | _error |
| QueueConsumer | _consumer |
| boost::thread | _consumer_thread |
| std::unordered_map< uint32_t, Master * > | _masters |
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::Daemon | |
| static bool | addPlugin (Daemon &) |
| static void | removePlugin (Daemon &) |
Definition at line 38 of file replication_slave.h.
|
inline |
Definition at line 42 of file replication_slave.h.
|
inline |
Definition at line 47 of file replication_slave.h.
|
private |
Initialize slave services with the given configuration file.
In case of an error during initialization, _error contains a string describing what went wrong.
| true | Success |
| false | Failure |
Definition at line 61 of file replication_slave.cc.
|
inlineprivate |
Convenience method to get object reference
Definition at line 116 of file replication_slave.h.
|
virtual |
Gets called after all plugins are initialized
Reimplemented from drizzled::plugin::Plugin.
Definition at line 38 of file replication_slave.cc.
|
private |
Configuration file containing master info
Definition at line 99 of file replication_slave.h.
|
private |
Object to use with the consumer thread
Definition at line 104 of file replication_slave.h.
|
private |
Applier thread that will drain the work queue.
Definition at line 110 of file replication_slave.h.
|
private |
Definition at line 101 of file replication_slave.h.
|
private |
List of master objects, one per master
Definition at line 113 of file replication_slave.h.