Public Types | Public Member Functions | Private Attributes | List of all members
grpc::load_reporter::PerBalancerStore Class Reference

#include <load_data_store.h>

Public Types

using LoadRecordMap = std::unordered_map< LoadRecordKey, LoadRecordValue, LoadRecordKey::Hasher >
 

Public Member Functions

void ClearLoadRecordMap ()
 
uint64_t GetNumCallsInProgressForReport ()
 
bool IsNumCallsInProgressChangedSinceLastReport () const
 
bool IsSuspended () const
 
const std::string & lb_id () const
 
const std::string & load_key () const
 
const LoadRecordMapload_record_map () const
 
void MergeRow (const LoadRecordKey &key, const LoadRecordValue &value)
 
 PerBalancerStore (std::string lb_id, std::string load_key)
 
void Resume ()
 
void Suspend ()
 
std::string ToString ()
 

Private Attributes

uint64_t last_reported_num_calls_in_progress_ = 0
 
std::string lb_id_
 
std::string load_key_
 
LoadRecordMap load_record_map_
 
uint64_t num_calls_in_progress_ = 0
 
bool suspended_ = false
 

Detailed Description

Definition at line 197 of file load_data_store.h.

Member Typedef Documentation

◆ LoadRecordMap

Definition at line 200 of file load_data_store.h.

Constructor & Destructor Documentation

◆ PerBalancerStore()

grpc::load_reporter::PerBalancerStore::PerBalancerStore ( std::string  lb_id,
std::string  load_key 
)
inline

Definition at line 202 of file load_data_store.h.

Member Function Documentation

◆ ClearLoadRecordMap()

void grpc::load_reporter::PerBalancerStore::ClearLoadRecordMap ( )
inline

Definition at line 227 of file load_data_store.h.

◆ GetNumCallsInProgressForReport()

uint64_t grpc::load_reporter::PerBalancerStore::GetNumCallsInProgressForReport ( )

Definition at line 180 of file load_data_store.cc.

◆ IsNumCallsInProgressChangedSinceLastReport()

bool grpc::load_reporter::PerBalancerStore::IsNumCallsInProgressChangedSinceLastReport ( ) const
inline

Definition at line 216 of file load_data_store.h.

◆ IsSuspended()

bool grpc::load_reporter::PerBalancerStore::IsSuspended ( ) const
inline

Definition at line 214 of file load_data_store.h.

◆ lb_id()

const std::string& grpc::load_reporter::PerBalancerStore::lb_id ( ) const
inline

Definition at line 230 of file load_data_store.h.

◆ load_key()

const std::string& grpc::load_reporter::PerBalancerStore::load_key ( ) const
inline

Definition at line 231 of file load_data_store.h.

◆ load_record_map()

const LoadRecordMap& grpc::load_reporter::PerBalancerStore::load_record_map ( ) const
inline

Definition at line 232 of file load_data_store.h.

◆ MergeRow()

void grpc::load_reporter::PerBalancerStore::MergeRow ( const LoadRecordKey key,
const LoadRecordValue value 
)

Definition at line 147 of file load_data_store.cc.

◆ Resume()

void grpc::load_reporter::PerBalancerStore::Resume ( )

Definition at line 175 of file load_data_store.cc.

◆ Suspend()

void grpc::load_reporter::PerBalancerStore::Suspend ( )

Definition at line 169 of file load_data_store.cc.

◆ ToString()

std::string grpc::load_reporter::PerBalancerStore::ToString ( )
inline

Definition at line 222 of file load_data_store.h.

Member Data Documentation

◆ last_reported_num_calls_in_progress_

uint64_t grpc::load_reporter::PerBalancerStore::last_reported_num_calls_in_progress_ = 0
private

Definition at line 240 of file load_data_store.h.

◆ lb_id_

std::string grpc::load_reporter::PerBalancerStore::lb_id_
private

Definition at line 235 of file load_data_store.h.

◆ load_key_

std::string grpc::load_reporter::PerBalancerStore::load_key_
private

Definition at line 237 of file load_data_store.h.

◆ load_record_map_

LoadRecordMap grpc::load_reporter::PerBalancerStore::load_record_map_
private

Definition at line 238 of file load_data_store.h.

◆ num_calls_in_progress_

uint64_t grpc::load_reporter::PerBalancerStore::num_calls_in_progress_ = 0
private

Definition at line 239 of file load_data_store.h.

◆ suspended_

bool grpc::load_reporter::PerBalancerStore::suspended_ = false
private

Definition at line 241 of file load_data_store.h.


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


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