24#ifndef CS_MTA_WORKER_METRICS_H
25#define CS_MTA_WORKER_METRICS_H
36 void reset()
override;
This class contains metrics transaction execution in replica MTA workers.
Definition: mta_worker_metrics.h:33
std::atomic_int64_t m_transaction_ongoing_full_size
Holds the total full size of the transaction now ongoing.
Definition: mta_worker_metrics.h:95
int64_t get_wait_time_on_commit_order() const override
Gets the total time waited on commit order.
Definition: mta_worker_metrics.cc:66
std::atomic_int64_t m_order_commit_wait_count
The number of time waited for commit order.
Definition: mta_worker_metrics.h:89
void reset_transaction_ongoing_progress_size() override
Resets the the executed size of the ongoing transaction to 0.
Definition: mta_worker_metrics.cc:58
void reset() override
Resets the instruments on this instance.
Definition: mta_worker_metrics.cc:28
void inc_transaction_ongoing_progress_size(int64_t amount) override
increment the executed size of the ongoing transaction.
Definition: mta_worker_metrics.cc:54
void inc_waited_time_on_commit_order(unsigned long amount) override
Increments the number of times waited.
Definition: mta_worker_metrics.cc:70
std::atomic_int64_t m_order_commit_waited_time
The total amount of time waited for commit order.
Definition: mta_worker_metrics.h:92
void set_transaction_ongoing_full_size(int64_t amount) override
set the full size of the ongoing transaction.
Definition: mta_worker_metrics.cc:46
std::atomic_int64_t m_transaction_ongoing_progress_size
Holds the executed event's size of the transaction now ongoing.
Definition: mta_worker_metrics.h:98
void inc_number_of_waits_on_commit_order() override
Increments the number of times waited.
Definition: mta_worker_metrics.cc:78
void set_transaction_type(Transaction_type_info type_info) override
Set the type for the transaction being currently processed.
Definition: mta_worker_metrics.cc:41
std::atomic< Transaction_type_info > m_transaction_type
The type of the transactions being handled.
Definition: mta_worker_metrics.h:85
int64_t get_transaction_ongoing_progress_size() const override
Gets the executed size of the ongoing transaction.
Definition: mta_worker_metrics.cc:62
Worker_metrics::Transaction_type_info get_transaction_type() const override
Returns the type of the currently being processed transaction.
Definition: mta_worker_metrics.cc:37
int64_t get_transaction_ongoing_full_size() const override
Gets the full size of the ongoing transaction.
Definition: mta_worker_metrics.cc:50
int64_t get_number_of_waits_on_commit_order() const override
Get the number of time waiting on commit order.
Definition: mta_worker_metrics.cc:74
void copy_stats_from(const Mta_worker_metrics &other)
Copies stats from the given object into this one.
Definition: mta_worker_metrics.cc:82
Abstract class for classes that contain metrics related to transaction execution in applier workers.
Definition: worker_metrics.h:33
Transaction_type_info
This class helps signaling a transactions as DDL or DML.
Definition: worker_metrics.h:36
Definition: applier_metrics.cc:27