WebFramework v3.0.12
Web framework for C++.
|
Public Member Functions | |
Connections (std::string_view ip, std::string_view port, bool useHTTPS) | |
uint64_t | operator() () const override |
Calculate load score(choose server with lowest score) | |
void | onStart () override |
On start event. | |
void | onEnd () override |
On end event. | |
![]() | |
BaseLoadBalancerHeuristic (std::string_view ip, std::string_view port, bool useHTTPS) | |
const std::string & | getIp () const |
Get server ip. | |
const std::string & | getPort () const |
Get server port. | |
bool | getUseHTTPS () const |
Is server using HTTPS. | |
Definition at line 9 of file Connections.h.
framework::load_balancer::Connections::Connections | ( | std::string_view | ip, |
std::string_view | port, | ||
bool | useHTTPS ) |
Definition at line 9 of file Connections.cpp.
|
overridevirtual |
On end event.
Reimplemented from framework::load_balancer::BaseLoadBalancerHeuristic.
Definition at line 21 of file Connections.cpp.
|
overridevirtual |
On start event.
Reimplemented from framework::load_balancer::BaseLoadBalancerHeuristic.
Definition at line 16 of file Connections.cpp.
|
overridevirtual |
Calculate load score(choose server with lowest score)
Implements framework::load_balancer::BaseLoadBalancerHeuristic.
Definition at line 26 of file Connections.cpp.