#include <http-aux.h>
Inheritance diagram for HBTimer:


Public Types | |
| enum | TimerStatus { TIMER_IDLE, TIMER_PENDING, TIMER_HANDLING } |
Public Member Functions | |
| HBTimer (HttpMInvalCache *a, double interval) | |
| void | set_interval (double interval) |
| double | get_interval () const |
| double | next_interval () |
| void | sched () |
| void | resched () |
| void | sched (double delay) |
| void | resched (double delay) |
| void | cancel () |
| void | force_cancel () |
| int | status () |
Protected Member Functions | |
| virtual void | expire (Event *e) |
| virtual void | handle (Event *e) |
Protected Attributes | |
| HttpMInvalCache * | a_ |
| double | interval_ |
| int | status_ |
| Event | event_ |
|
|
Definition at line 66 of file timer-handler.h.
00066 { TIMER_IDLE, TIMER_PENDING, TIMER_HANDLING };
|
|
||||||||||||
|
Definition at line 94 of file http-aux.h.
00094 : TimerHandler() { 00095 a_ = a, interval_ = interval; 00096 } |
|
Here is the call graph for this function:

|
|
Implements TimerHandler. Definition at line 30 of file http-aux.cc. References a_, HTTP_INVALIDATION, and HttpMInvalCache::timeout().
|
Here is the call graph for this function:

|
|
Definition at line 60 of file timer-handler.h. References TimerHandler::_cancel(), TimerHandler::status_, TimerHandler::TIMER_IDLE, and TimerHandler::TIMER_PENDING. Referenced by TcpAgent::cancel_rtx_timer(), TcpSessionAgent::cancel_rtx_timer(), TcpFsAgent::cancel_rtx_timer(), AbsTcpAgent::cancel_timer(), TcpAgent::cancel_timers(), TcpSessionAgent::cancel_timers(), FullTcpAgent::cancel_timers(), TcpFsAgent::cancel_timers(), SinkAgent::command(), UnslottedAlohaMac::end_of_contention(), GAFAgent::processDiscoveryMsg(), RTPAgent::rate_change(), TfrcAgent::stop(), RTPAgent::stop(), and SinkAgent::stop().
00060 { // cancel!
00061 if (status_ == TIMER_PENDING) {
00062 _cancel();
00063 status_ = TIMER_IDLE;
00064 }
00065 }
|
Here is the call graph for this function:

|
|
Definition at line 98 of file http-aux.h. References interval_.
00098 { return interval_; }
|
|
|
Reimplemented from TimerHandler. Definition at line 108 of file http-aux.h. References TimerHandler::handle(), and resched().
00108 {
00109 TimerHandler::handle(e);
00110 resched();
00111 }
|
Here is the call graph for this function:

|
|
Definition at line 99 of file http-aux.h. References interval_, and Random::uniform(). Referenced by resched().
00099 {
00100 return interval_ * (1 + Random::uniform(-0.1,0.1));
00101 }
|
Here is the call graph for this function:

|
Here is the call graph for this function:

|
|
Definition at line 103 of file http-aux.h. References next_interval(), and TimerHandler::resched(). Referenced by handle().
00103 {
00104 TimerHandler::resched(next_interval());
00105 }
|
Here is the call graph for this function:

|
Here is the call graph for this function:

|
|
Definition at line 102 of file http-aux.h. References interval_, and TimerHandler::sched(). Referenced by HttpMInvalCache::command().
00102 { TimerHandler::sched(interval_); }
|
Here is the call graph for this function:

|
|
Definition at line 97 of file http-aux.h. References interval_. Referenced by HttpMInvalCache::HttpMInvalCache().
00097 { interval_ = interval; }
|
|
|
|
Definition at line 112 of file http-aux.h. |
|
|
Definition at line 75 of file timer-handler.h. Referenced by TimerHandler::_cancel(), TimerHandler::_sched(), WebPage::start(), and EmpWebPage::start(). |
|
|
Definition at line 113 of file http-aux.h. Referenced by get_interval(), HBTimer(), next_interval(), sched(), and set_interval(). |
|
1.3.3