#include <Congestion.h>
Public Member Functions | |
FailHistory () | |
void | init (int window) |
void | init_event (long t, int n=1) |
int | regist_event (long t, int n=1) |
int | get_bin_events (int index) |
Data Fields | |
long | start |
int | bin_len |
int | length |
cong_hist_t | bins [CONG_HIST_ENTRIES] |
int | cur_index |
long | last_event |
int | events |
Definition at line 175 of file Congestion.h.
FailHistory::FailHistory | ( | ) | [inline] |
Definition at line 185 of file Congestion.h.
References bins.
int FailHistory::get_bin_events | ( | int | index | ) | [inline] |
Definition at line 192 of file Congestion.h.
References bins, CONG_HIST_ENTRIES, and cur_index.
void FailHistory::init | ( | int | window | ) |
Definition at line 493 of file Congestion.cc.
References bin_len, bins, CONG_HIST_ENTRIES, cur_index, events, last_event, length, and start.
Referenced by CongestionEntry::clearFailHistory().
void FailHistory::init_event | ( | long | t, | |
int | n = 1 | |||
) |
Definition at line 509 of file Congestion.cc.
References bin_len, bins, cur_index, events, last_event, length, and start.
Referenced by regist_event().
int FailHistory::regist_event | ( | long | t, | |
int | n = 1 | |||
) |
Definition at line 522 of file Congestion.cc.
References bin_len, bins, CONG_HIST_ENTRIES, cur_index, events, init_event(), last_event, length, and start.
Referenced by CongestionEntry::failed_at().
Definition at line 178 of file Congestion.h.
Referenced by CCFailHistoryTestCont::check_history(), init(), init_event(), and regist_event().
cong_hist_t FailHistory::bins[CONG_HIST_ENTRIES] |
Definition at line 180 of file Congestion.h.
Referenced by CCFailHistoryTestCont::check_history(), FailHistory(), get_bin_events(), init(), init_event(), and regist_event().
Definition at line 181 of file Congestion.h.
Referenced by CCFailHistoryTestCont::check_history(), get_bin_events(), init(), init_event(), and regist_event().
Definition at line 183 of file Congestion.h.
Referenced by CongestionEntry::applyNewRule(), CCFailHistoryTestCont::check_history(), CongestionEntry::compCongested(), init(), init_event(), regist_event(), CongestionEntry::sprint(), and CongestionEntry::usefulInfo().
Definition at line 182 of file Congestion.h.
Referenced by CCFailHistoryTestCont::check_history(), CongestionEntry::client_retry_after(), CongestionEntry::failed_at(), init(), init_event(), CongestionEntry::proxy_retry(), regist_event(), CongestionEntry::sprint(), and CongestionEntry::usefulInfo().
Definition at line 179 of file Congestion.h.
Referenced by CCFailHistoryTestCont::check_history(), init(), init_event(), and regist_event().
long FailHistory::start |
Definition at line 177 of file Congestion.h.
Referenced by CCFailHistoryTestCont::check_history(), init(), init_event(), and regist_event().