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 | |
| Protocol (std::string name, bool using_mysql41_protocol, const boost::filesystem::path &unix_socket_path) | |
| bool | getFileDescriptors (std::vector< int > &fds) |
| 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) |
| 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 * | mysql_unix_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 |
Private Attributes | |
| const boost::filesystem::path | _unix_socket_path |
Definition at line 38 of file 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] |
| plugin::Client * drizzle_plugin::mysql_unix_socket_protocol::Protocol::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 153 of file protocol.cc.
| Client * drizzled::plugin::Listen::getClient | ( | void | ) | [static, inherited] |
| bool drizzle_plugin::mysql_unix_socket_protocol::Protocol::getFileDescriptors | ( | std::vector< int > & | fds | ) | [virtual] |
This will bind the port to the host interfaces. [out] Vector of file descriptors that were bound.
| true | on failure, false on success. |
Reimplemented from drizzled::plugin::ListenTcp.
Definition at line 92 of file protocol.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::mysql_unix_socket_protocol::Protocol::getPort | ( | void | ) | const [virtual] |
Get the port to bind to.
| The | port number. |
Reimplemented from drizzle_plugin::ListenMySQLProtocol.
Definition at line 60 of file 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().