![]() |
MySQL 8.0.41
Source Code Documentation
|
Describes all statistics sent by members. More...
#include <pipeline_stats.h>
Public Types | |
enum | enum_payload_item_type { PIT_UNKNOWN = 0 , PIT_TRANSACTIONS_WAITING_CERTIFICATION = 1 , PIT_TRANSACTIONS_WAITING_APPLY = 2 , PIT_TRANSACTIONS_CERTIFIED = 3 , PIT_TRANSACTIONS_APPLIED = 4 , PIT_TRANSACTIONS_LOCAL = 5 , PIT_TRANSACTIONS_NEGATIVE_CERTIFIED = 6 , PIT_TRANSACTIONS_ROWS_VALIDATING = 7 , PIT_TRANSACTIONS_COMMITTED_ALL_MEMBERS = 8 , PIT_TRANSACTION_LAST_CONFLICT_FREE = 9 , PIT_TRANSACTIONS_LOCAL_ROLLBACK = 10 , PIT_FLOW_CONTROL_MODE = 11 , PIT_TRANSACTION_GTIDS_PRESENT = 12 , PIT_MAX = 13 } |
The different cargo type codes. More... |
Public Member Functions | |
Pipeline_stats_member_message (int32 transactions_waiting_certification, int32 transactions_waiting_apply, int64 transactions_certified, int64 transactions_applied, int64 transactions_local, int64 transactions_negative_certified, int64 transactions_rows_validating, bool transaction_gtids, const std::string &transactions_committed_all_members, const std::string &transactions_last_conflict_free, int64 transactions_local_rollback, Flow_control_mode mode) | |
Message constructor. More... | |
Pipeline_stats_member_message (const unsigned char *buf, size_t len) | |
Message constructor for raw data. More... | |
~Pipeline_stats_member_message () override | |
Message destructor. More... | |
int32 | get_transactions_waiting_certification () |
Get transactions waiting certification counter value. More... | |
int32 | get_transactions_waiting_apply () |
Get transactions waiting apply counter value. More... | |
int64 | get_transactions_certified () |
Get transactions certified. More... | |
int64 | get_transactions_applied () |
Get transactions applied. More... | |
int64 | get_transactions_local () |
Get local transactions that member tried to commit. More... | |
int64 | get_transactions_negative_certified () |
Get negatively certified transaction by member. More... | |
int64 | get_transactions_rows_validating () |
Get size of conflict detection database. More... | |
bool | get_transation_gtids_present () const |
Returns a flag indicating whether or not the GTIDs on this stats message are updated/present. More... | |
const std::string & | get_transaction_committed_all_members () |
Get set of stable group transactions. More... | |
const std::string & | get_transaction_last_conflict_free () |
Get last positive certified transaction. More... | |
int64 | get_transactions_local_rollback () |
Get local transactions rolled back by the member. More... | |
Flow_control_mode | get_flow_control_mode () |
Get flow-control mode of member. More... | |
Protected Member Functions | |
void | encode_payload (std::vector< unsigned char > *buffer) const override |
Encodes the message contents for transmission. More... | |
void | decode_payload (const unsigned char *buffer, const unsigned char *end) override |
Message decoding method. More... | |
Additional Inherited Members |
Describes all statistics sent by members.
Pipeline_stats_member_message::Pipeline_stats_member_message | ( | int32 | transactions_waiting_certification, |
int32 | transactions_waiting_apply, | ||
int64 | transactions_certified, | ||
int64 | transactions_applied, | ||
int64 | transactions_local, | ||
int64 | transactions_negative_certified, | ||
int64 | transactions_rows_validating, | ||
bool | transaction_gtids, | ||
const std::string & | transactions_committed_all_members, | ||
const std::string & | transactions_last_conflict_free, | ||
int64 | transactions_local_rollback, | ||
Flow_control_mode | mode | ||
) |
Message constructor.
[in] | transactions_waiting_certification | Number of transactions pending certification |
[in] | transactions_waiting_apply | Number of remote transactions waiting apply |
[in] | transactions_certified | Number of transactions already certified |
[in] | transactions_applied | Number of remote transactions applied |
[in] | transactions_local | Number of local transactions |
[in] | transactions_negative_certified | Number of transactions that were negatively certified |
[in] | transactions_rows_validating | Number of transactions with which certification will be done against |
[in] | transaction_gtids | Flag to indicate whether or not the transaction ids have been updated |
[in] | transactions_committed_all_members | Set of transactions committed on all members |
[in] | transactions_last_conflict_free | Latest transaction certified without conflicts |
[in] | transactions_local_rollback | Number of local transactions that were negatively certified |
[in] | mode | Flow-control mode |
Pipeline_stats_member_message::Pipeline_stats_member_message | ( | const unsigned char * | buf, |
size_t | len | ||
) |
Message constructor for raw data.
[in] | buf | raw data |
[in] | len | raw length |
|
overridedefault |
Message destructor.
|
overrideprotectedvirtual |
Message decoding method.
[in] | buffer | the received data |
[in] | end | the end of the buffer |
Implements Plugin_gcs_message.
|
overrideprotectedvirtual |
Encodes the message contents for transmission.
[out] | buffer | the message buffer to be written |
Implements Plugin_gcs_message.
Flow_control_mode Pipeline_stats_member_message::get_flow_control_mode | ( | ) |
Get flow-control mode of member.
const std::string & Pipeline_stats_member_message::get_transaction_committed_all_members | ( | ) |
Get set of stable group transactions.
const std::string & Pipeline_stats_member_message::get_transaction_last_conflict_free | ( | ) |
Get last positive certified transaction.
int64 Pipeline_stats_member_message::get_transactions_applied | ( | ) |
Get transactions applied.
int64 Pipeline_stats_member_message::get_transactions_certified | ( | ) |
Get transactions certified.
int64 Pipeline_stats_member_message::get_transactions_local | ( | ) |
Get local transactions that member tried to commit.
int64 Pipeline_stats_member_message::get_transactions_local_rollback | ( | ) |
Get local transactions rolled back by the member.
int64 Pipeline_stats_member_message::get_transactions_negative_certified | ( | ) |
Get negatively certified transaction by member.
int64 Pipeline_stats_member_message::get_transactions_rows_validating | ( | ) |
Get size of conflict detection database.
int32 Pipeline_stats_member_message::get_transactions_waiting_apply | ( | ) |
Get transactions waiting apply counter value.
int32 Pipeline_stats_member_message::get_transactions_waiting_certification | ( | ) |
Get transactions waiting certification counter value.
bool Pipeline_stats_member_message::get_transation_gtids_present | ( | ) | const |
Returns a flag indicating whether or not the GTIDs on this stats message are updated/present.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |