24#ifndef CS_WORKER_METRICS_H
25#define CS_WORKER_METRICS_H
Abstract class for classes that contain metrics related to transaction execution in applier workers.
Definition: worker_metrics.h:33
virtual int64_t get_transaction_ongoing_progress_size() const =0
Gets the executed size of the ongoing transaction.
virtual void inc_waited_time_on_commit_order(unsigned long amount)=0
Increments the number of times waited.
virtual void set_transaction_ongoing_full_size(int64_t amount)=0
set the full size of the ongoing transaction.
virtual ~Worker_metrics()=default
virtual void set_transaction_type(Transaction_type_info type_info)=0
Set the type for the transaction being currently processed.
virtual void inc_transaction_ongoing_progress_size(int64_t amount)=0
increment the executed size of the ongoing transaction.
virtual int64_t get_number_of_waits_on_commit_order() const =0
Get the number of time waiting on commit order.
virtual void reset_transaction_ongoing_progress_size()=0
Resets the the executed size of the ongoing transaction to 0.
virtual int64_t get_wait_time_on_commit_order() const =0
Gets the total time waited on commit order.
Transaction_type_info
This class helps signaling a transactions as DDL or DML.
Definition: worker_metrics.h:36
virtual void inc_number_of_waits_on_commit_order()=0
Increments the number of times waited.
virtual void reset()=0
Resets the instruments on this instance.
virtual Transaction_type_info get_transaction_type() const =0
Returns the type of the currently being processed transaction.
virtual int64_t get_transaction_ongoing_full_size() const =0
Gets the full size of the ongoing transaction.
Definition: applier_metrics.cc:27