![]()  | 
  
    MySQL 9.5.0
    
   Source Code Documentation 
   | 
 
This class contains metrics transaction execution in replica MTA workers. More...
#include <mta_worker_metrics.h>
Public Member Functions | |
| Mta_worker_metrics & | operator= (const Mta_worker_metrics &other) | 
| Copies stats from the given object into this one.  More... | |
| void | reset () override | 
| Resets the instruments on this instance.  More... | |
| Worker_metrics::Transaction_type_info | get_transaction_type () const override | 
| Returns the type of the currently being processed transaction.  More... | |
| void | set_transaction_type (Transaction_type_info type_info) override | 
| Set the type for the transaction being currently processed.  More... | |
| void | set_transaction_ongoing_full_size (int64_t amount) override | 
| set the full size of the ongoing transaction.  More... | |
| int64_t | get_transaction_ongoing_full_size () const override | 
| Gets the full size of the ongoing transaction.  More... | |
| void | inc_transaction_ongoing_progress_size (int64_t amount) override | 
| increment the executed size of the ongoing transaction.  More... | |
| void | reset_transaction_ongoing_progress_size () override | 
| Resets the the executed size of the ongoing transaction to 0.  More... | |
| int64_t | get_transaction_ongoing_progress_size () const override | 
| Gets the executed size of the ongoing transaction.  More... | |
| Time_based_metric_interface & | get_waits_due_to_commit_order () override | 
| Return time metric for waits on commit order.  More... | |
  Public Member Functions inherited from cs::apply::instruments::Worker_metrics | |
| virtual | ~Worker_metrics ()=default | 
Private Attributes | |
| std::atomic< Transaction_type_info > | m_transaction_type | 
| The type of the transactions being handled.  More... | |
| Time_based_metric | m_waits_due_to_commit_order | 
| The number of time waited for commit order.  More... | |
| std::atomic_int64_t | m_transaction_ongoing_full_size {0} | 
| Holds the total full size of the transaction now ongoing.  More... | |
| std::atomic_int64_t | m_transaction_ongoing_progress_size {0} | 
| Holds the executed event's size of the transaction now ongoing.  More... | |
Additional Inherited Members | |
  Public Types inherited from cs::apply::instruments::Worker_metrics | |
| enum class | Transaction_type_info { UNKNOWN , DML , DDL } | 
| This class helps signaling a transactions as DDL or DML.  More... | |
This class contains metrics transaction execution in replica MTA workers.
      
  | 
  overridevirtual | 
Gets the full size of the ongoing transaction.
Implements cs::apply::instruments::Worker_metrics.
      
  | 
  overridevirtual | 
Gets the executed size of the ongoing transaction.
Implements cs::apply::instruments::Worker_metrics.
      
  | 
  overridevirtual | 
Returns the type of the currently being processed transaction.
Implements cs::apply::instruments::Worker_metrics.
      
  | 
  overridevirtual | 
Return time metric for waits on commit order.
Implements cs::apply::instruments::Worker_metrics.
      
  | 
  overridevirtual | 
increment the executed size of the ongoing transaction.
| amount | the size amount to increment. | 
Implements cs::apply::instruments::Worker_metrics.
| Mta_worker_metrics & cs::apply::instruments::Mta_worker_metrics::operator= | ( | const Mta_worker_metrics & | other | ) | 
Copies stats from the given object into this one.
| other | the object to copy the stats from. | 
      
  | 
  overridevirtual | 
Resets the instruments on this instance.
Implements cs::apply::instruments::Worker_metrics.
      
  | 
  overridevirtual | 
Resets the the executed size of the ongoing transaction to 0.
Implements cs::apply::instruments::Worker_metrics.
      
  | 
  overridevirtual | 
set the full size of the ongoing transaction.
| amount | new size | 
Implements cs::apply::instruments::Worker_metrics.
      
  | 
  overridevirtual | 
Set the type for the transaction being currently processed.
| type_info | what is the type: UNKONWN, DML or DDL | 
Implements cs::apply::instruments::Worker_metrics.
      
  | 
  private | 
Holds the total full size of the transaction now ongoing.
      
  | 
  private | 
Holds the executed event's size of the transaction now ongoing.
      
  | 
  private | 
The type of the transactions being handled.
      
  | 
  private | 
The number of time waited for commit order.