Drizzled Public API Documentation

drizzle_plugin::logging_gearman::LoggingGearman Class Reference
Inheritance diagram for drizzle_plugin::logging_gearman::LoggingGearman:
drizzled::plugin::Logging drizzled::plugin::Plugin

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

 LoggingGearman (const std::string &host, const std::string &function)
 
virtual bool post (drizzled::Session *session)
 
bool setHost (std::string &new_host)
 
bool setFunction (std::string &new_function)
 
std::string & getHost ()
 
std::string & getFunction ()
 
virtual bool pre (Session *)
 
virtual bool postEnd (Session *)
 
virtual bool resetGlobalScoreboard ()
 
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 bool addPlugin (Logging *handler)
 
static void removePlugin (Logging *handler)
 
static bool preDo (Session *session)
 
static bool postDo (Session *session)
 
static bool postEndDo (Session *session)
 
static bool resetStats (Session *session)
 

Private Member Functions

 LoggingGearman (const LoggingGearman &)
 

Private Attributes

std::string sysvar_host
 
std::string sysvar_function
 
int _gearman_client_ok
 
gearman_client_st _gearman_client
 

Detailed Description

Definition at line 164 of file logging_gearman.cc.

Member Function Documentation

std::string& drizzle_plugin::logging_gearman::LoggingGearman::getFunction ( )
inline

Getter for function

Returns
sysvar_function

Definition at line 345 of file logging_gearman.cc.

std::string& drizzle_plugin::logging_gearman::LoggingGearman::getHost ( )
inline

Getter for host

Returns
sysvar_host

Definition at line 335 of file logging_gearman.cc.

virtual bool drizzled::plugin::Logging::pre ( Session )
inlinevirtualinherited

Make these no-op rather than pure-virtual so that it's easy for a plugin to only implement one.

Reimplemented in performance_dictionary::SessionUsageLogger.

Definition at line 41 of file logging.h.

bool drizzle_plugin::logging_gearman::LoggingGearman::setFunction ( std::string &  new_function)
inline

This function changes the gearman function with the new one.

Returns
True on success (as we dont have to do anything except updating the function string, this always return true.)

Definition at line 324 of file logging_gearman.cc.

bool drizzle_plugin::logging_gearman::LoggingGearman::setHost ( std::string &  new_host)
inline

This function changes the current gearman host to the parameter passed to the function.

Returns
True on success, False on error.

Definition at line 292 of file logging_gearman.cc.


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