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 | |
ListenDrizzleProtocol (std::string name, const std::string &bind_address, bool using_mysql41_protocol) | |
in_port_t | getPort (void) const |
virtual ProtocolCounters * | getCounters (void) const |
drizzled::plugin::Client * | getClient (int fd) |
virtual const std::string | getHost (void) const |
void | addCountersToTable (void) |
virtual bool | getFileDescriptors (std::vector< int > &fds) |
std::vector< ListenCounter * > & | getListenCounters () |
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 plugin::Client * | getClient (void) |
static ListenVector & | getListenProtocols () |
static bool | addPlugin (Listen *listen_obj) |
static void | removePlugin (Listen *listen_obj) |
static bool | setup (void) |
static plugin::Client * | getNullClient (void) |
static void | shutdown (void) |
Static Public Attributes | |
static ProtocolCounters * | drizzle_counters = new ProtocolCounters() |
static ProtocolCounters * | mysql_counters = new ProtocolCounters() |
Protected Member Functions | |
int | acceptTcp (int fd) |
Protected Attributes | |
const std::string | _hostname |
bool | _using_mysql41_protocol |
uint32_t | accept_error_count |
std::vector< ListenCounter * > | counters |
Definition at line 36 of file drizzle_protocol.h.
int drizzled::plugin::ListenTcp::acceptTcp | ( | int | fd | ) | [protected, inherited] |
Accept new TCP connection. This is provided to be used in getClient for derived class implementations.
[in] | fd | File descriptor that had activity. |
Newly | accepted file descriptor. |
Definition at line 43 of file listen_tcp.cc.
References drizzled::plugin::ListenTcp::accept_error_count.
bool drizzled::plugin::Listen::addPlugin | ( | plugin::Listen * | listen_obj | ) | [static, inherited] |
Client * drizzled::plugin::Listen::getClient | ( | void | ) | [static, inherited] |
plugin::Client * drizzle_plugin::drizzle_protocol::ListenDrizzleProtocol::getClient | ( | int | fd | ) | [virtual] |
This provides a new Client object that can be used by a Session.
[in] | fd | File descriptor that had activity. |
Reimplemented from drizzle_plugin::ListenMySQLProtocol.
Definition at line 84 of file drizzle_protocol.cc.
bool drizzled::plugin::ListenTcp::getFileDescriptors | ( | std::vector< int > & | fds | ) | [virtual, inherited] |
This will bind the port to the host interfaces. [out] Vector of file descriptors that were bound.
true | on failure, false on success. |
Implements drizzled::plugin::Listen.
Reimplemented in drizzle_plugin::mysql_unix_socket_protocol::Protocol.
Definition at line 71 of file listen_tcp.cc.
const std::string drizzle_plugin::ListenMySQLProtocol::getHost | ( | void | ) | const [virtual, inherited] |
Get the host address to bind to.
The | host address. |
Reimplemented from drizzled::plugin::ListenTcp.
Definition at line 76 of file mysql_protocol.cc.
Client * drizzled::plugin::Listen::getNullClient | ( | void | ) | [static, inherited] |
in_port_t drizzle_plugin::drizzle_protocol::ListenDrizzleProtocol::getPort | ( | void | ) | const [virtual] |
Get the port to bind to.
The | port number. |
Reimplemented from drizzle_plugin::ListenMySQLProtocol.
Definition at line 61 of file drizzle_protocol.cc.
void drizzled::plugin::Listen::removePlugin | ( | plugin::Listen * | listen_obj | ) | [static, inherited] |
bool drizzled::plugin::Listen::setup | ( | void | ) | [static, inherited] |
void drizzled::plugin::Listen::shutdown | ( | void | ) | [static, inherited] |
uint32_t drizzled::plugin::ListenTcp::accept_error_count [protected, inherited] |
Count of errors encountered in acceptTcp.
Definition at line 44 of file listen_tcp.h.
Referenced by drizzled::plugin::ListenTcp::acceptTcp().