![]() |
RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
Public Types | |
typedef ML::Spinlock | Lock |
typedef boost::lock_guard< Lock > | Guard |
Public Member Functions | |
TestAgent (std::shared_ptr< RTBKIT::ServiceProxies > proxies, const std::string &name="testAgent") | |
void | setDefaultConfig () |
void | start () |
void | clear () |
bool | sleepUntilIdle (double waitTime=0.0) |
void | defaultError (double timestamp, const std::string &error, const std::vector< std::string > &message) |
void | finishBid (int &counter, const RTBKIT::BidResult &args) |
void | defaultWin (const RTBKIT::BidResult &args) |
void | defaultLoss (const RTBKIT::BidResult &args) |
void | defaultNoBudget (const RTBKIT::BidResult &args) |
void | defaultTooLate (const RTBKIT::BidResult &args) |
void | doBid (const Id &id, const Bids &bids, const Json::Value &metadata) |
void | bidNull (double timestamp, const Id &id, std::shared_ptr< RTBKIT::BidRequest > br, const Bids &bids, double timeLeftMs, const Json::Value &augmentations) |
void | recordBid (const Id &id) |
void | setupCallbacks () |
void | configure () |
Public Attributes | |
RTBKIT::AgentConfig | config |
int | numHeartbeats |
int | numBidRequests |
int | numErrors |
int | numGotConfig |
int | numWins |
int | numLosses |
int | numNoBudgets |
int | numTooLates |
Lock | lock |
std::set< Id > | awaitingStatus |
int | numBidsOutstanding |
Definition at line 15 of file test_agent.h.