Classes | |
class | Master |
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 | |
ReplicationSlave (const std::string &config) | |
void | startup (drizzled::Session &session) |
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 |
Static Public Member Functions | |
static bool | addPlugin (Daemon *) |
static void | removePlugin (Daemon *) |
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 |
boost::unordered_map< uint32_t, Master * > | _masters |
Definition at line 38 of file replication_slave.h.
|
inlinestaticinherited |
|
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.
References slave::ReplicationSchema::setInitialMaxCommitId().
|
inlineprivate |
Convenience method to get object reference
Definition at line 116 of file replication_slave.h.
References _masters.
|
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 |
List of master objects, one per master
Definition at line 113 of file replication_slave.h.
Referenced by master().