24#ifndef CS_DUMMY_WORKER_METRICS_H
25#define CS_DUMMY_WORKER_METRICS_H
42 void reset()
override;
Class that intends to be a dummy end point for worker metrics.
Definition: dummy_worker_metrics.h:33
int64_t get_number_of_waits_on_commit_order() const override
Get the number of time waiting on commit order.
Definition: dummy_worker_metrics.cc:64
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:50
Dummy_worker_metrics & operator=(const Dummy_worker_metrics &other)=delete
Dummy_worker_metrics(const Dummy_worker_metrics &other)=delete
int64_t get_wait_time_on_commit_order() const override
Gets the total time waited on commit order.
Definition: dummy_worker_metrics.cc:56
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 inc_number_of_waits_on_commit_order() override
Increments the number of times waited.
Definition: dummy_worker_metrics.cc:68
void inc_waited_time_on_commit_order(unsigned long amount) override
Increments the number of times waited.
Definition: dummy_worker_metrics.cc:60
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:52
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:33
Transaction_type_info
This class helps signaling a transactions as DDL or DML.
Definition: worker_metrics.h:36
Definition: applier_metrics.cc:27