![]() |
RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
#include <port_range_service.h>
Public Member Functions | |
| JsonPortRangeService (const Json::Value &config) | |
| virtual PortRange | getRange (const std::string &name) |
| virtual void | dump (std::ostream &stream=std::cerr) const |
Implementation of the port range service that gets its mapping by reading a JSON file.
Definition at line 131 of file port_range_service.h.
| void Datacratic::JsonPortRangeService::dump | ( | std::ostream & | stream = std::cerr | ) | const [virtual] |
Dump the port ranges to the given stream.
Reimplemented from Datacratic::PortRangeService.
Definition at line 159 of file port_range_service.cc.
| PortRange Datacratic::JsonPortRangeService::getRange | ( | const std::string & | name | ) | [virtual] |
Return the range of ports for the given service name, and return the range. If name is not found, then depending upon the implementation either a new range of ports will be defined for that service, or an exception will be thrown.
Implements Datacratic::PortRangeService.
Definition at line 149 of file port_range_service.cc.
1.7.6.1