MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Diagnostics_information Class Reference

#include <sql_get_diagnostics.h>

Inheritance diagram for Diagnostics_information:
Collaboration diagram for Diagnostics_information:

Public Types

enum  Which_area { CURRENT_AREA }

Public Member Functions

void set_which_da (Which_area area)
Which_area get_which_da (void) const
virtual bool aggregate (THD *thd, const Diagnostics_area *da)=0

Protected Member Functions

virtual ~Diagnostics_information ()
template<typename Diag_item , typename Context >
bool evaluate (THD *thd, Diag_item *diag_item, Context ctx)

Additional Inherited Members

- Static Public Member Functions inherited from Sql_alloc
static void * operator new (size_t size) throw ()
static void * operator new[] (size_t size) throw ()
static void * operator new[] (size_t size, MEM_ROOT *mem_root) throw ()
static void * operator new (size_t size, MEM_ROOT *mem_root) throw ()
static void operator delete (void *ptr, size_t size)
static void operator delete (void *ptr, MEM_ROOT *mem_root)
static void operator delete[] (void *ptr, MEM_ROOT *mem_root)
static void operator delete[] (void *ptr, size_t size)

Detailed Description

Represents the diagnostics information to be obtained.

Diagnostic information is made available through statement information and condition information items.

Definition at line 61 of file sql_get_diagnostics.h.

Member Enumeration Documentation

Which diagnostics area to access. Only CURRENT is supported for now.

Enumerator:
CURRENT_AREA 

Access the first diagnostics area.

Definition at line 68 of file sql_get_diagnostics.h.

Constructor & Destructor Documentation

virtual Diagnostics_information::~Diagnostics_information ( )
inlineprotectedvirtual

Diagnostics_information objects are allocated in thd->mem_root. Do not rely on the destructor for any cleanup.

Definition at line 98 of file sql_get_diagnostics.h.

Member Function Documentation

virtual bool Diagnostics_information::aggregate ( THD *  thd,
const Diagnostics_area da 
)
pure virtual

Aggregate diagnostics information.

Parameters
thdThe current thread.
daThe diagnostics area.
Return values
falseon success.
trueon error

Implemented in Condition_information, Statement_information, and get_diagnostics_unittest::MockDiagInfoError.

Here is the caller graph for this function:

template<typename Diag_item , typename Context >
bool Diagnostics_information::evaluate ( THD *  thd,
Diag_item *  diag_item,
Context  ctx 
)
inlineprotected

Evaluate a diagnostics information item in a specific context.

Parameters
thdThe current thread.
diag_itemThe diagnostics information item.
ctxThe context to evaluate the item.
Return values
falseon success.
trueon error.

Definition at line 114 of file sql_get_diagnostics.h.

Here is the caller graph for this function:

Which_area Diagnostics_information::get_which_da ( void  ) const
inline

Get which diagnostics area to access.

Definition at line 79 of file sql_get_diagnostics.h.

void Diagnostics_information::set_which_da ( Which_area  area)
inline

Set which diagnostics area to access.

Definition at line 75 of file sql_get_diagnostics.h.


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