24#ifndef CS_APPLIER_METRICS_AGGREGATOR_H
25#define CS_APPLIER_METRICS_AGGREGATOR_H
Abstract class for time based metrics implementations.
Definition: time_based_metric_interface.h:30
This abstract class is an interface for classes that contain replication applier data as counters and...
Definition: applier_metrics_interface.h:36
virtual ~Applier_metrics_interface()=default
virtual void inc_transactions_received_size_sum(int64_t amount)=0
increment the pending size of queued transactions.
virtual void inc_events_committed_count(int64_t amount)=0
increment the number of events scheduled by a given amount.
virtual int64_t get_transactions_committed_count() const =0
Gets the number of transactions committed.
virtual int64_t get_events_committed_count() const =0
Gets the number of events scheduled.
virtual void set_metrics_breakpoint(const char *relay_log_filename)=0
If the metrics breakpoint has not been set yet, set it to the given filename.
virtual void inc_transactions_committed_count(int64_t amount)=0
increment the number of transactions committed.
virtual void start_applier_timer()=0
Starts the timer when the applier metrics collection began.
virtual int64_t get_transactions_received_size_sum() const =0
Gets the pending size sum of queued transactions.
virtual Time_based_metric_interface & get_worker_queues_memory_exceeds_max_wait_metric()=0
Returns time metrics for waits when a worker queue exceeds max memory.
virtual void check_metrics_breakpoint(const char *relay_log_filename)=0
If the metrics breakpoint has been set and is equal to the given filename, remember that we are now a...
virtual int64_t get_number_of_waits_on_commit_order() const =0
Gets the stored number of times we waited on committed order.
virtual int64_t get_transactions_committed_size_sum() const =0
Gets the total sum of the size of committed transactions.
virtual void inc_transactions_received_count(int64_t amount)=0
increment the number of transactions received.
virtual int64_t get_wait_time_on_commit_order() const =0
Gets the stored summed time waited on commit order.
virtual bool is_after_metrics_breakpoint() const =0
Query whether the size/count of received transactions has been completely computed.
virtual void stop_applier_timer()=0
Calculates the total time the applier ran.
virtual Time_based_metric_interface & get_workers_available_wait_metric()=0
Returns time metrics for waits on available workers.
virtual void reset()=0
Resets the statistics to zero.
virtual Time_based_metric_interface & get_worker_queues_full_wait_metric()=0
Returns time metrics for waits when the worker queues are full.
virtual int64_t get_transactions_received_count() const =0
Gets the number of transactions received.
virtual Time_based_metric_interface & get_transaction_dependency_wait_metric()=0
Returns time metrics for waits on transaction dependecies on workers.
virtual void inc_commit_order_wait_stored_metrics(int64_t count, int64_t time)=0
Increments the stored values for the commit order metrics.
virtual Time_based_metric_interface & get_time_to_read_from_relay_log_metric()=0
Returns time metrics for relay log read wait times.
virtual Time_based_metric_interface & get_work_from_source_wait_metric()=0
Returns time metrics for waits on work from the source.
virtual int64_t get_total_execution_time() const =0
Returns the total time the applier was running.
virtual void inc_transactions_committed_size_sum(int64_t amount)=0
increment the size of transactions committed.
virtual int64_t get_last_applier_start_micros() const =0
Gets the time point when the metric timer started.
static int count
Definition: myisam_ftdump.cc:45
Definition: applier_metrics.cc:27