Drizzled Public API Documentation

drizzle_plugin::drizzle_protocol::ListenDrizzleProtocol Class Reference

Inheritance diagram for drizzle_plugin::drizzle_protocol::ListenDrizzleProtocol:
drizzle_plugin::ListenMySQLProtocol drizzled::plugin::ListenTcp drizzled::plugin::Listen drizzled::plugin::Plugin

List of all members.

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 ProtocolCountersgetCounters (void) const
drizzled::plugin::ClientgetClient (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::ClientgetClient (void)
static ListenVector & getListenProtocols ()
static bool addPlugin (Listen *listen_obj)
static void removePlugin (Listen *listen_obj)
static bool setup (void)
static plugin::ClientgetNullClient (void)
static void shutdown (void)

Static Public Attributes

static ProtocolCountersdrizzle_counters = new ProtocolCounters()
static ProtocolCountersmysql_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

Detailed Description

Definition at line 36 of file drizzle_protocol.h.


Member Function Documentation

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.

Parameters:
[in]fdFile descriptor that had activity.
Return values:
Newlyaccepted 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]

Add a new Listen object to the list of listeners we manage.

Definition at line 52 of file listen.cc.

Client * drizzled::plugin::Listen::getClient ( void  ) [static, inherited]

Accept a new connection (Client object) on one of the configured listener interfaces.

Definition at line 118 of file listen.cc.

plugin::Client * drizzle_plugin::drizzle_protocol::ListenDrizzleProtocol::getClient ( int  fd) [virtual]

This provides a new Client object that can be used by a Session.

Parameters:
[in]fdFile 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.

Return values:
trueon 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.

Return values:
Thehost address.

Reimplemented from drizzled::plugin::ListenTcp.

Definition at line 76 of file mysql_protocol.cc.

Client * drizzled::plugin::Listen::getNullClient ( void  ) [static, inherited]

Some internal functions drizzled require a temporary Client object to create a valid session object, this just returns a dummy client object.

Definition at line 168 of file listen.cc.

in_port_t drizzle_plugin::drizzle_protocol::ListenDrizzleProtocol::getPort ( void  ) const [virtual]

Get the port to bind to.

Return values:
Theport 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]

Remove a Listen object from the list of listeners we manage.

Definition at line 58 of file listen.cc.

bool drizzled::plugin::Listen::setup ( void  ) [static, inherited]

Setup all configured listen plugins.

Definition at line 66 of file listen.cc.

void drizzled::plugin::Listen::shutdown ( void  ) [static, inherited]

Shutdown and cleanup listen loop for server shutdown.

Definition at line 173 of file listen.cc.


Member Data Documentation

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().


The documentation for this class was generated from the following files: