RTBKit  0.9
Open-source framework to create real-time ad bidding systems.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions
Datacratic::JsonPortRangeService Struct Reference

#include <port_range_service.h>

Inheritance diagram for Datacratic::JsonPortRangeService:
Datacratic::PortRangeService

List of all members.

Public Member Functions

 JsonPortRangeService (const Json::Value &config)
virtual PortRange getRange (const std::string &name)
virtual void dump (std::ostream &stream=std::cerr) const

Detailed Description

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.


Member Function Documentation

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.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator