Virtual Tables
[SHORE Storage Manager Application Programming Interface (SSM API)]

Collaboration diagram for Virtual Tables:


Detailed Description

Virtual tables are string representations of internal storage manager tables. These tables are experimental. If the tables get to be very large, they might fail.


Functions

static rc_t ss_m::xct_collect (vtable_t &v, bool names_too=true)
 Collect transaction information in a virtual table.
static rc_t ss_m::bp_collect (vtable_t &v, bool names_too=true)
 Collect buffer pool information in a virtual table.
static rc_t ss_m::lock_collect (vtable_t &v, bool names_too=true)
 Collect lock table information in a virtual table.
static rc_t ss_m::thread_collect (vtable_t &v, bool names_too=true)
 Collect thread information in a virtual table.


Function Documentation

static rc_t ss_m::xct_collect ( vtable_t v,
bool  names_too = true 
) [static, inherited]

Collect transaction information in a virtual table.

Parameters:
[out] v The virtual table to populate.
[in] names_too If true, make the first row of the table a list of the attribute names.
All attribute values will be strings. The virtual table v can be printed with its output operator operator<< for ostreams.

Attention:
Not atomic. Can yield stale data.
Examples:
vtable_example.cpp.

static rc_t ss_m::bp_collect ( vtable_t v,
bool  names_too = true 
) [static, inherited]

Collect buffer pool information in a virtual table.

Parameters:
[out] v The virtual table to populate.
[in] names_too If true, make the first row of the table a list of the attribute names.
Attention:
Be wary of using this with a large buffer pool.
All attribute values will be strings. The virtual table v can be printed with its output operator operator<< for ostreams.

Attention:
Not atomic. Can yield stale data.

static rc_t ss_m::lock_collect ( vtable_t v,
bool  names_too = true 
) [static, inherited]

Collect lock table information in a virtual table.

Parameters:
[out] v The virtual table to populate.
[in] names_too If true, make the first row of the table a list of the attribute names.
All attribute values will be strings. The virtual table v can be printed with its output operator operator<< for ostreams.

Attention:
Not atomic. Can yield stale data. Cannot be used in a multi-threaded-transaction context.
Examples:
vtable_example.cpp.

static rc_t ss_m::thread_collect ( vtable_t v,
bool  names_too = true 
) [static, inherited]

Collect thread information in a virtual table.

Parameters:
[out] v The virtual table to populate.
[in] names_too If true, make the first row of the table a list of the attribute names.
All attribute values will be strings. The virtual table v can be printed with its output operator operator<< for ostreams.

Attention:
Not thread-safe. Can yield stale data.
Examples:
vtable_example.cpp.


Generated on Wed Jul 7 17:22:38 2010 for Shore Storage Manager by  doxygen 1.4.7