Inherits Continuation.
Public Member Functions | |
int | mainEvent (int event, Event *e) |
void | init () |
int | get_congest_list () |
CongestionEntry * | gen_CongestionEntry (sockaddr const *ip, int congested=0) |
CCCongestionDBTestCont (Ptr< ProxyMutex > _mutex, RegressionTest *_test) | |
virtual | ~CCCongestionDBTestCont () |
Data Fields | |
int | final_status |
bool | complete |
RegressionTest * | test |
CongestionControlRecord * | rule |
CongestionDB * | db |
int | dbsize |
Definition at line 369 of file CongestionTest.cc.
CCCongestionDBTestCont::CCCongestionDBTestCont | ( | Ptr< ProxyMutex > | _mutex, | |
RegressionTest * | _test | |||
) | [inline] |
Definition at line 385 of file CongestionTest.cc.
References mainEvent(), and SET_HANDLER.
virtual CCCongestionDBTestCont::~CCCongestionDBTestCont | ( | ) | [inline, virtual] |
Definition at line 390 of file CongestionTest.cc.
References db, CongestionDB::removeAllRecords(), and rule.
CongestionEntry * CCCongestionDBTestCont::gen_CongestionEntry | ( | sockaddr const * | ip, | |
int | congested = 0 | |||
) |
Definition at line 402 of file CongestionTest.cc.
References ats_ip_ntop(), CongestionEntry::m_congested, CongestionEntry::m_ref_count, make_key(), CongestionControlRecord::pRecord, and rule.
Referenced by mainEvent().
int CCCongestionDBTestCont::get_congest_list | ( | ) |
Definition at line 435 of file CongestionTest.cc.
References db, MTHashTable< key_t, data_t >::first_entry(), MTHashTable< key_t, data_t >::getSize(), MTHashTable< key_t, data_t >::next_entry(), CongestionDB::RunTodoList(), and CongestionEntry::sprint().
Referenced by mainEvent().
void CCCongestionDBTestCont::init | ( | void | ) |
Definition at line 418 of file CongestionTest.cc.
References db, dbsize, CongestionControlRecord::fail_window, CongestionControlRecord::max_connection_failures, MT_HASHTABLE_PARTITIONS, CongestionControlRecord::pRecord, CongestionDB::removeAllRecords(), and rule.
Referenced by mainEvent().
int CCCongestionDBTestCont::mainEvent | ( | int | event, | |
Event * | e | |||
) |
Definition at line 459 of file CongestionTest.cc.
References CongestionDB::addRecord(), ats_ip4_set(), complete, db, dbsize, final_status, gen_CongestionEntry(), get_congest_list(), init(), CongestionEntry::m_key, CongestionDB::removeAllRecords(), rprintf(), IpEndpoint::sa, RegressionTest::status, and test.
Referenced by CCCongestionDBTestCont().
Definition at line 372 of file CongestionTest.cc.
Referenced by mainEvent().
Definition at line 380 of file CongestionTest.cc.
Referenced by get_congest_list(), init(), mainEvent(), and ~CCCongestionDBTestCont().
Definition at line 381 of file CongestionTest.cc.
Referenced by init(), and mainEvent().
Definition at line 371 of file CongestionTest.cc.
Referenced by mainEvent().
Definition at line 379 of file CongestionTest.cc.
Referenced by gen_CongestionEntry(), init(), and ~CCCongestionDBTestCont().
Definition at line 373 of file CongestionTest.cc.
Referenced by mainEvent().