24#ifndef CHANGESTREAMS_APPLY_METRICS_MTA_WORKER_METRICS_H
25#define CHANGESTREAMS_APPLY_METRICS_MTA_WORKER_METRICS_H
41 void reset()
override;
Abstract class for time based metrics implementations.
Definition: time_based_metric_interface.h:32
Class that encodes how much time we waited for something.
Definition: time_based_metric.h:31
This class contains metrics transaction execution in replica MTA workers.
Definition: mta_worker_metrics.h:34
std::atomic_int64_t m_transaction_ongoing_full_size
Holds the total full size of the transaction now ongoing.
Definition: mta_worker_metrics.h:84
Time_based_metric_interface & get_waits_due_to_commit_order() override
Return time metric for waits on commit order.
Definition: mta_worker_metrics.cc:71
void reset_transaction_ongoing_progress_size() override
Resets the the executed size of the ongoing transaction to 0.
Definition: mta_worker_metrics.cc:62
void reset() override
Resets the instruments on this instance.
Definition: mta_worker_metrics.cc:38
void inc_transaction_ongoing_progress_size(int64_t amount) override
increment the executed size of the ongoing transaction.
Definition: mta_worker_metrics.cc:58
Mta_worker_metrics & operator=(const Mta_worker_metrics &other)
Copies stats from the given object into this one.
Definition: mta_worker_metrics.cc:28
void set_transaction_ongoing_full_size(int64_t amount) override
set the full size of the ongoing transaction.
Definition: mta_worker_metrics.cc:50
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:87
void set_transaction_type(Transaction_type_info type_info) override
Set the type for the transaction being currently processed.
Definition: mta_worker_metrics.cc:45
std::atomic< Transaction_type_info > m_transaction_type
The type of the transactions being handled.
Definition: mta_worker_metrics.h:77
int64_t get_transaction_ongoing_progress_size() const override
Gets the executed size of the ongoing transaction.
Definition: mta_worker_metrics.cc:66
Worker_metrics::Transaction_type_info get_transaction_type() const override
Returns the type of the currently being processed transaction.
Definition: mta_worker_metrics.cc:41
int64_t get_transaction_ongoing_full_size() const override
Gets the full size of the ongoing transaction.
Definition: mta_worker_metrics.cc:54
Time_based_metric m_waits_due_to_commit_order
The number of time waited for commit order.
Definition: mta_worker_metrics.h:81
Abstract class for classes that contain metrics related to transaction execution in applier workers.
Definition: worker_metrics.h:34
Transaction_type_info
This class helps signaling a transactions as DDL or DML.
Definition: worker_metrics.h:37
Definition: applier_metrics.cc:27