24#ifndef CHANGESTREAMS_APPLY_METRICS_DUMMY_WORKER_METRICS_H
25#define CHANGESTREAMS_APPLY_METRICS_DUMMY_WORKER_METRICS_H
43 void reset()
override;
Abstract class for time based metrics implementations.
Definition: time_based_metric_interface.h:32
Class that intends to be a dummy end point for time metrics.
Definition: time_based_metric_stub.h:30
Class that intends to be a dummy end point for worker metrics.
Definition: dummy_worker_metrics.h:34
Time_based_metric_interface & get_waits_due_to_commit_order() override
Gets the total time waited on commit order.
Definition: dummy_worker_metrics.cc:55
Worker_metrics::Transaction_type_info get_transaction_type() const override
Returns the type of the currently being processed transaction.
Definition: dummy_worker_metrics.cc:31
Dummy_worker_metrics()=default
void reset_transaction_ongoing_progress_size() override
Resets the the executed size of the ongoing transaction to 0.
Definition: dummy_worker_metrics.cc:48
Dummy_worker_metrics & operator=(const Dummy_worker_metrics &other)=delete
Dummy_worker_metrics(const Dummy_worker_metrics &other)=delete
Time_based_metric_stub m_waits_due_to_commit_order
Stub to return from get_waits_due_to_commit_order.
Definition: dummy_worker_metrics.h:78
void set_transaction_type(Transaction_type_info type_info) override
Set the type for the transaction being currently processed.
Definition: dummy_worker_metrics.cc:35
int64_t get_transaction_ongoing_full_size() const override
Gets the full size of the ongoing transaction.
Definition: dummy_worker_metrics.cc:42
void reset() override
Resets the instruments on this instance.
Definition: dummy_worker_metrics.cc:28
void set_transaction_ongoing_full_size(int64_t amount) override
set the full size of the ongoing transaction.
Definition: dummy_worker_metrics.cc:40
int64_t get_transaction_ongoing_progress_size() const override
Gets the executed size of the ongoing transaction.
Definition: dummy_worker_metrics.cc:50
void inc_transaction_ongoing_progress_size(int64_t amount) override
increment the executed size of the ongoing transaction.
Definition: dummy_worker_metrics.cc:46
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