![]() |
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 (RouterTester &routerTester) | |
| future< bool > | getConfigFuture () |
| future< bool > | getCompleteFuture () |
| void | setDefaultConfig () |
| void | defaultError (double timestamp, const std::string &error, const std::vector< std::string > &message) |
| void | defaultNeedConfig (double) |
| void | defaultGotConfig (double) |
| void | defaultAckHeartbeat (double) |
| void | finishBid (const BiddingAgent::BidResultArgs &args) |
| void | step1Check () |
| void | step2Check () |
| void | step3Check () |
| void | defaultWin (const BiddingAgent::BidResultArgs &args) |
| void | injectWins () |
| void | defaultLoss (const BiddingAgent::BidResultArgs &args) |
| void | defaultNoBudget (const BiddingAgent::BidResultArgs &args) |
| void | defaultBid (double timestamp, const Id &id, std::shared_ptr< BidRequest > br, const Json::Value &imp, double timeLeftMs) |
| void | setupCallbacks () |
| void | configure () |
| void | doBid (const Id &id, const Json::Value &response, const Json::Value &metadata) |
| void | recordBid (const Id &id) |
Public Attributes | |
| AgentConfig | config |
| promise< bool > | configPromise_ |
| promise< bool > | completePromise_ |
| RouterTester & | tester_ |
| bool | haveGotConfig |
| int | numHeartbeats |
| int | numBidRequests |
| int | numErrors |
| int | numGotConfig |
| int | numWins |
| int | numLosses |
| int | numNoBudgets |
| int | numTooLates |
| int | numAuctions |
| int | expectedWins_ |
| int | expectedNoBudgets_ |
| int | totalRequests_ |
| uint64_t | bidPrice_ |
| uint64_t | winPrice_ |
| unsigned int | step_ |
| Lock | lock |
| std::set< Id > | awaitingStatus |
| int | numBidsOutstanding |
Definition at line 41 of file router_banker_test.cc.
1.7.6.1