metaproxy  1.13.0
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
metaproxy_1::filter::LoadBalance::Impl Class Reference
Collaboration diagram for metaproxy_1::filter::LoadBalance::Impl:
Collaboration graph

Classes

class  TargetStat
 

Public Member Functions

 Impl ()
 
 ~Impl ()
 
void process (metaproxy_1::Package &package)
 
void configure (const xmlNode *ptr)
 

Private Member Functions

void add_dead (unsigned long session_id)
 
void add_package (unsigned long session_id)
 
void remove_package (unsigned long session_id)
 
void add_session (unsigned long session_id, std::string target)
 
void remove_session (unsigned long session_id)
 
std::string find_session_target (unsigned long session_id)
 
unsigned int cost (std::string target)
 
unsigned int dead (std::string target)
 

Private Attributes

boost::mutex m_mutex
 
std::map< std::string, TargetStatm_target_stat
 
std::map< unsigned long, std::string > m_session_target
 

Detailed Description

Definition at line 48 of file filter_load_balance.cpp.

Constructor & Destructor Documentation

metaproxy_1::filter::LoadBalance::Impl::Impl ( )
metaproxy_1::filter::LoadBalance::Impl::~Impl ( )

Member Function Documentation

void metaproxy_1::filter::LoadBalance::Impl::add_dead ( unsigned long  session_id)
private
void metaproxy_1::filter::LoadBalance::Impl::add_package ( unsigned long  session_id)
private
void metaproxy_1::filter::LoadBalance::Impl::add_session ( unsigned long  session_id,
std::string  target 
)
private
void metaproxy_1::filter::LoadBalance::Impl::configure ( const xmlNode *  ptr)
unsigned int metaproxy_1::filter::LoadBalance::Impl::cost ( std::string  target)
private
unsigned int metaproxy_1::filter::LoadBalance::Impl::dead ( std::string  target)
private
std::string metaproxy_1::filter::LoadBalance::Impl::find_session_target ( unsigned long  session_id)
private
void metaproxy_1::filter::LoadBalance::Impl::process ( metaproxy_1::Package &  package)
void metaproxy_1::filter::LoadBalance::Impl::remove_package ( unsigned long  session_id)
private
void metaproxy_1::filter::LoadBalance::Impl::remove_session ( unsigned long  session_id)
private

Member Data Documentation

boost::mutex metaproxy_1::filter::LoadBalance::Impl::m_mutex
private

Definition at line 82 of file filter_load_balance.cpp.

std::map<unsigned long, std::string> metaproxy_1::filter::LoadBalance::Impl::m_session_target
private

Definition at line 84 of file filter_load_balance.cpp.

std::map<std::string, TargetStat> metaproxy_1::filter::LoadBalance::Impl::m_target_stat
private

Definition at line 83 of file filter_load_balance.cpp.


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