drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
LoggingStats Class Reference
Inheritance diagram for LoggingStats:
[legend]
Collaboration diagram for LoggingStats:
[legend]

Public Member Functions

 LoggingStats (std::string name_arg)
virtual bool post (drizzled::Session *session)
virtual bool postEnd (drizzled::Session *session)
virtual bool resetGlobalScoreboard ()
bool isEnabled () const
void enable ()
void disable ()
Scoreboard * getCurrentScoreboard ()
CumulativeStats * getCumulativeStats ()
Public Member Functions inherited from drizzled::plugin::Logging
 Logging (std::string name_arg)
virtual bool pre (Session *)
Public Member Functions inherited from drizzled::plugin::Plugin
 Plugin (const std::string &name, const std::string &type_name)
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

Private Types

typedef std::vector< std::vector< ScoreboardSlot * > * > ScoreBoardVectors

Private Member Functions

void updateCurrentScoreboard (ScoreboardSlot *scoreboard_slot, drizzled::Session *session)

Private Attributes

Scoreboard * current_scoreboard
CumulativeStats * cumulative_stats
drizzled::atomic< bool > is_enabled

Additional Inherited Members

Public Types inherited from drizzled::plugin::Plugin
typedef std::pair< const std::string, const std::string > map_key
typedef std::unique_ptr< plugin::Plugin, deleter_fn > owned_ptr
typedef std::map< const map_key, owned_ptr > map
typedef std::vector< Plugin * > vector
Static Public Member Functions inherited from drizzled::plugin::Logging
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)

Detailed Description

Definition at line 43 of file logging_stats.h.

Member Typedef Documentation

◆ ScoreBoardVectors

typedef std::vector<std::vector<ScoreboardSlot* >* > LoggingStats::ScoreBoardVectors
private

Definition at line 91 of file logging_stats.h.

Constructor & Destructor Documentation

◆ LoggingStats()

LoggingStats::LoggingStats ( std::string name_arg)

Definition at line 117 of file logging_stats.cc.

◆ ~LoggingStats()

LoggingStats::~LoggingStats ( )

Definition at line 125 of file logging_stats.cc.

Member Function Documentation

◆ disable()

void LoggingStats::disable ( )
inline

Definition at line 67 of file logging_stats.h.

◆ enable()

void LoggingStats::enable ( )
inline

Definition at line 62 of file logging_stats.h.

◆ getCumulativeStats()

CumulativeStats * LoggingStats::getCumulativeStats ( )
inline

Definition at line 77 of file logging_stats.h.

◆ getCurrentScoreboard()

Scoreboard * LoggingStats::getCurrentScoreboard ( )
inline

Definition at line 72 of file logging_stats.h.

◆ isEnabled()

bool LoggingStats::isEnabled ( ) const
inline

Definition at line 57 of file logging_stats.h.

◆ post()

bool LoggingStats::post ( drizzled::Session * session)
virtual

Reimplemented from drizzled::plugin::Logging.

Definition at line 175 of file logging_stats.cc.

◆ postEnd()

bool LoggingStats::postEnd ( drizzled::Session * session)
virtual

Reimplemented from drizzled::plugin::Logging.

Definition at line 193 of file logging_stats.cc.

◆ resetGlobalScoreboard()

bool LoggingStats::resetGlobalScoreboard ( )
virtual

Reimplemented from drizzled::plugin::Logging.

Definition at line 146 of file logging_stats.cc.

◆ updateCurrentScoreboard()

void LoggingStats::updateCurrentScoreboard ( ScoreboardSlot * scoreboard_slot,
drizzled::Session * session )
private

Definition at line 131 of file logging_stats.cc.

Member Data Documentation

◆ cumulative_stats

CumulativeStats* LoggingStats::cumulative_stats
private

Definition at line 85 of file logging_stats.h.

◆ current_scoreboard

Scoreboard* LoggingStats::current_scoreboard
private

Definition at line 83 of file logging_stats.h.

◆ is_enabled

drizzled::atomic<bool> LoggingStats::is_enabled
private

Definition at line 87 of file logging_stats.h.


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