24#ifndef CHANGESTREAMS_APPLY_METRICS_APPLIER_METRICS_STUB_H
25#define CHANGESTREAMS_APPLY_METRICS_APPLIER_METRICS_STUB_H
92 void reset()
override;
142 int64_t time)
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
This abstract class is an interface for classes that contain replication applier data as counters and...
Definition: applier_metrics_interface.h:36
Class that intends to be a dummy end point for applier metrics.
Definition: applier_metrics_stub.h:33
Time_based_metric_interface & get_worker_queues_memory_exceeds_max_wait_metric() override
Returns time metrics for waits when a worker queue exceeds max memory.
Definition: applier_metrics_stub.cc:93
int64_t get_wait_time_on_commit_order() const override
Gets the stored summed time waited on commit order.
Definition: applier_metrics_stub.cc:114
void inc_transactions_committed_count(int64_t amount) override
increment the number of transactions committed.
Definition: applier_metrics_stub.cc:43
void inc_transactions_received_size_sum(int64_t amount) override
increment the pending size of queued transactions.
Definition: applier_metrics_stub.cc:61
int64_t get_total_execution_time() const override
Returns the total time the applier was running.
Definition: applier_metrics_stub.cc:41
void store_last_applier_start() override
Remember "now" as the last applier start time.
Definition: applier_metrics_stub.cc:30
int64_t get_events_committed_count() const override
Gets the number of events scheduled.
Definition: applier_metrics_stub.cc:69
void reset() override
Resets the statistics to zero.
Definition: applier_metrics_stub.cc:28
void inc_transactions_committed_size_sum(int64_t amount) override
increment the size of transactions committed.
Definition: applier_metrics_stub.cc:55
Time_based_metric_stub m_wait_due_to_worker_queue_full
Tracks the number and time waited for transaction dependencies.
Definition: applier_metrics_stub.h:169
Time_based_metric_stub m_wait_for_work_from_source
Tracks the number and time waited for transactions to apply.
Definition: applier_metrics_stub.h:157
Time_based_metric_interface & get_transaction_dependency_wait_metric() override
Returns time metrics for waits on transaction dependecies on workers.
Definition: applier_metrics_stub.cc:88
int64_t get_transactions_committed_size_sum() const override
Gets the total sum of the size of committed transactions.
Definition: applier_metrics_stub.cc:57
int64_t get_transactions_committed_count() const override
Gets the number of transactions committed.
Definition: applier_metrics_stub.cc:45
Time_based_metric_interface & get_worker_queues_full_wait_metric() override
Returns time metrics for waits when the worker queues are full.
Definition: applier_metrics_stub.cc:98
Time_based_metric_interface & get_sum_applier_execution_time() override
Return time metric for total applier execution time.
Definition: applier_metrics_stub.cc:33
int64_t get_transactions_received_count() const override
Gets the number of transactions pending.
Definition: applier_metrics_stub.cc:51
bool is_after_metrics_breakpoint() const override
Definition: applier_metrics_stub.cc:71
Time_based_metric_interface & get_work_from_source_wait_metric() override
Returns time metrics for waits on work from the source.
Definition: applier_metrics_stub.cc:78
void inc_events_committed_count(int64_t v) override
increment the number of events scheduled by a given amount.
Definition: applier_metrics_stub.cc:67
void check_metrics_breakpoint(const char *relay_log_filename) override
Do nothing.
Definition: applier_metrics_stub.cc:75
Time_based_metric_interface & get_workers_available_wait_metric() override
Returns time metrics for waits on available workers.
Definition: applier_metrics_stub.cc:83
Time_based_metric_stub m_wait_due_to_worker_queues_memory_exceeds_max
Tracks the number and time waited for transaction dependencies.
Definition: applier_metrics_stub.h:166
Time_based_metric_interface & get_time_to_read_from_relay_log_metric() override
Returns time metrics for relay log read wait times.
Definition: applier_metrics_stub.cc:103
int64_t get_transactions_received_size_sum() const override
Gets the pending size sum of queued transactions.
Definition: applier_metrics_stub.cc:63
void inc_commit_order_wait_stored_metrics(int64_t count, int64_t time) override
Increments the stored values for the commit order metrics.
Definition: applier_metrics_stub.cc:107
void set_metrics_breakpoint(const char *relay_log_filename) override
Do nothing.
Definition: applier_metrics_stub.cc:73
int64_t get_last_applier_start_micros() const override
Gets the time point when the metric timer started.
Definition: applier_metrics_stub.cc:37
Time_based_metric_stub m_sum_applier_execution_time
Tracks the time the applier has been executing.
Definition: applier_metrics_stub.h:154
Time_based_metric_stub m_wait_for_worker_available
Tracks the number and time waited for transactions to apply.
Definition: applier_metrics_stub.h:160
int64_t get_number_of_waits_on_commit_order() const override
Gets the stored number of times we waited on committed order.
Definition: applier_metrics_stub.cc:110
Time_based_metric_stub m_time_to_read_from_relay_log
Tracks the number and time waited for transaction dependencies.
Definition: applier_metrics_stub.h:172
Time_based_metric_stub m_wait_for_transaction_dependency
Tracks the number and time waited for transaction dependencies.
Definition: applier_metrics_stub.h:163
void inc_transactions_received_count(int64_t amount) override
increment the number of transactions pending.
Definition: applier_metrics_stub.cc:49
static int count
Definition: myisam_ftdump.cc:45
Definition: applier_metrics.cc:27