RTBKit  0.9
Open-source framework to create real-time ad bidding systems.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Types | Public Member Functions | Public Attributes
RTBKIT::AgentConfigurationListener Struct Reference
Inheritance diagram for RTBKIT::AgentConfigurationListener:
Datacratic::MessageLoop Datacratic::Epoller Datacratic::AsyncEventSource

List of all members.

Public Types

typedef std::function< void(std::string,
std::shared_ptr< const
AgentConfig >)> 
OnConfigChange
typedef std::function< void(const
AgentConfigEntry &info)> 
OnAgentFn

Public Member Functions

 AgentConfigurationListener (std::shared_ptr< zmq::context_t > context)
void init (std::shared_ptr< ConfigurationService > config)
void start ()
void shutdown ()
void forEachAgent (const OnAgentFn &onAgent) const
void forEachAccountAgent (const AccountKey &account, const OnAgentFn &onAgent) const
AgentConfigEntry getAgentEntry (const std::string &agent) const

Public Attributes

OnConfigChange onConfigChange

Detailed Description

Definition at line 48 of file agent_configuration_listener.h.


Member Typedef Documentation

typedef std::function<void (std::string, std::shared_ptr<const AgentConfig>)> RTBKIT::AgentConfigurationListener::OnConfigChange

Type of function to be called on a configuration change. If an agent has disappeared, the config pointer will be null.

Definition at line 64 of file agent_configuration_listener.h.


Member Function Documentation

void RTBKIT::AgentConfigurationListener::forEachAccountAgent ( const AccountKey account,
const OnAgentFn &  onAgent 
) const

Call the given callback for each agent that is bidding on the given account.

Definition at line 32 of file agent_configuration_listener.cc.

void RTBKIT::AgentConfigurationListener::forEachAgent ( const OnAgentFn &  onAgent) const

Call the given callback for each agent.

Definition at line 21 of file agent_configuration_listener.cc.

Find the information entry for the given agent. All elements are guaranteed to be valid until the object is destroyed.

Definition at line 50 of file agent_configuration_listener.cc.


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