Public Member Functions | Private Types | Private Attributes | List of all members
grpc_core::BdpEstimator Class Reference

#include <bdp_estimator.h>

Public Member Functions

int64_t accumulator ()
 
void AddIncomingBytes (int64_t num_bytes)
 
 BdpEstimator (const char *name)
 
Timestamp CompletePing ()
 
double EstimateBandwidth () const
 
int64_t EstimateBdp () const
 
void SchedulePing ()
 
void StartPing ()
 
 ~BdpEstimator ()
 

Private Types

enum  PingState { PingState::UNSCHEDULED, PingState::SCHEDULED, PingState::STARTED }
 

Private Attributes

int64_t accumulator_
 
double bw_est_
 
int64_t estimate_
 
Duration inter_ping_delay_
 
const char * name_
 
gpr_timespec ping_start_time_
 
PingState ping_state_
 
int stable_estimate_count_
 

Detailed Description

Definition at line 37 of file bdp_estimator.h.

Member Enumeration Documentation

◆ PingState

Enumerator
UNSCHEDULED 
SCHEDULED 
STARTED 

Definition at line 79 of file bdp_estimator.h.

Constructor & Destructor Documentation

◆ BdpEstimator()

grpc_core::BdpEstimator::BdpEstimator ( const char *  name)
explicit

Definition at line 34 of file bdp_estimator.cc.

◆ ~BdpEstimator()

grpc_core::BdpEstimator::~BdpEstimator ( )
inline

Definition at line 40 of file bdp_estimator.h.

Member Function Documentation

◆ accumulator()

int64_t grpc_core::BdpEstimator::accumulator ( )
inline

Definition at line 76 of file bdp_estimator.h.

◆ AddIncomingBytes()

void grpc_core::BdpEstimator::AddIncomingBytes ( int64_t  num_bytes)
inline

Definition at line 45 of file bdp_estimator.h.

◆ CompletePing()

Timestamp grpc_core::BdpEstimator::CompletePing ( )

Definition at line 44 of file bdp_estimator.cc.

◆ EstimateBandwidth()

double grpc_core::BdpEstimator::EstimateBandwidth ( ) const
inline

Definition at line 43 of file bdp_estimator.h.

◆ EstimateBdp()

int64_t grpc_core::BdpEstimator::EstimateBdp ( ) const
inline

Definition at line 42 of file bdp_estimator.h.

◆ SchedulePing()

void grpc_core::BdpEstimator::SchedulePing ( )
inline

Definition at line 50 of file bdp_estimator.h.

◆ StartPing()

void grpc_core::BdpEstimator::StartPing ( )
inline

Definition at line 63 of file bdp_estimator.h.

Member Data Documentation

◆ accumulator_

int64_t grpc_core::BdpEstimator::accumulator_
private

Definition at line 82 of file bdp_estimator.h.

◆ bw_est_

double grpc_core::BdpEstimator::bw_est_
private

Definition at line 88 of file bdp_estimator.h.

◆ estimate_

int64_t grpc_core::BdpEstimator::estimate_
private

Definition at line 83 of file bdp_estimator.h.

◆ inter_ping_delay_

Duration grpc_core::BdpEstimator::inter_ping_delay_
private

Definition at line 86 of file bdp_estimator.h.

◆ name_

const char* grpc_core::BdpEstimator::name_
private

Definition at line 89 of file bdp_estimator.h.

◆ ping_start_time_

gpr_timespec grpc_core::BdpEstimator::ping_start_time_
private

Definition at line 85 of file bdp_estimator.h.

◆ ping_state_

PingState grpc_core::BdpEstimator::ping_state_
private

Definition at line 81 of file bdp_estimator.h.

◆ stable_estimate_count_

int grpc_core::BdpEstimator::stable_estimate_count_
private

Definition at line 87 of file bdp_estimator.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:35