MySQL 8.0.37
Source Code Documentation
Gcs_xcom_statistics Class Reference

#include <gcs_xcom_statistics_interface.h>

Inheritance diagram for Gcs_xcom_statistics:
[legend]

Public Member Functions

 Gcs_xcom_statistics ()
 
 ~Gcs_xcom_statistics () override
 
long get_total_messages_sent () override
 
long get_total_bytes_sent () override
 
long get_total_messages_received () override
 
long get_total_bytes_received () override
 
long get_min_message_length () override
 
long get_max_message_length () override
 
long get_last_message_timestamp () override
 
void update_message_sent (unsigned long long message_length) override
 Method called to register that a message has been sent. More...
 
void update_message_received (long message_length) override
 Method called to register when a message is received. More...
 
- Public Member Functions inherited from Gcs_statistics_interface
virtual ~Gcs_statistics_interface ()=default
 
- Public Member Functions inherited from Gcs_xcom_statistics_updater
virtual ~Gcs_xcom_statistics_updater ()=default
 

Private Attributes

long total_messages_sent
 
long total_bytes_sent
 
long total_messages_received
 
long total_bytes_received
 
long min_message_length
 
long max_message_length
 
long last_message_timestamp
 

Constructor & Destructor Documentation

◆ Gcs_xcom_statistics()

Gcs_xcom_statistics::Gcs_xcom_statistics ( )
explicit

◆ ~Gcs_xcom_statistics()

Gcs_xcom_statistics::~Gcs_xcom_statistics ( )
overridedefault

Member Function Documentation

◆ get_last_message_timestamp()

long Gcs_xcom_statistics::get_last_message_timestamp ( )
overridevirtual
Returns
the timestamp in which the last message was received

Implements Gcs_statistics_interface.

◆ get_max_message_length()

long Gcs_xcom_statistics::get_max_message_length ( )
overridevirtual
Returns
the biggest amount of data received in a message via the Communication Interface

Implements Gcs_statistics_interface.

◆ get_min_message_length()

long Gcs_xcom_statistics::get_min_message_length ( )
overridevirtual
Returns
the smallest amount of data received in a message via the Communication Interface

Implements Gcs_statistics_interface.

◆ get_total_bytes_received()

long Gcs_xcom_statistics::get_total_bytes_received ( )
overridevirtual
Returns
the total amount of data received via the Communication Interface

Implements Gcs_statistics_interface.

◆ get_total_bytes_sent()

long Gcs_xcom_statistics::get_total_bytes_sent ( )
overridevirtual
Returns
the total amount of data sent via the Communication Interface

Implements Gcs_statistics_interface.

◆ get_total_messages_received()

long Gcs_xcom_statistics::get_total_messages_received ( )
overridevirtual
Returns
the total number of messages received via the Communication Interface

Implements Gcs_statistics_interface.

◆ get_total_messages_sent()

long Gcs_xcom_statistics::get_total_messages_sent ( )
overridevirtual
Returns
the total number of messages sent via the Communication Interface

Implements Gcs_statistics_interface.

◆ update_message_received()

void Gcs_xcom_statistics::update_message_received ( long  message_length)
overridevirtual

Method called to register when a message is received.

This will update:

  • Total Messages Received;
  • Total Bytes Received;
  • Min Message Length;
  • Max Message Length;
  • Last Message Timestamp.
Parameters
[in]message_lengththe length of the message received

Implements Gcs_xcom_statistics_updater.

◆ update_message_sent()

void Gcs_xcom_statistics::update_message_sent ( unsigned long long  message_length)
overridevirtual

Method called to register that a message has been sent.

This will update:

  • Total Messages Sent;
  • Total Bytes Sent.
Parameters
[in]message_lengththe length of the message being sent

Implements Gcs_xcom_statistics_updater.

Member Data Documentation

◆ last_message_timestamp

long Gcs_xcom_statistics::last_message_timestamp
private

◆ max_message_length

long Gcs_xcom_statistics::max_message_length
private

◆ min_message_length

long Gcs_xcom_statistics::min_message_length
private

◆ total_bytes_received

long Gcs_xcom_statistics::total_bytes_received
private

◆ total_bytes_sent

long Gcs_xcom_statistics::total_bytes_sent
private

◆ total_messages_received

long Gcs_xcom_statistics::total_messages_received
private

◆ total_messages_sent

long Gcs_xcom_statistics::total_messages_sent
private

The documentation for this class was generated from the following files: