#include <http-aux.h>
Collaboration diagram for NeighborCache:

Public Member Functions | |
| NeighborCache (HttpMInvalCache *c, double t, LivenessTimer *timer) | |
| ~NeighborCache () | |
| double | time () |
| void | reset_timer (double time) |
| int | is_down () |
| void | down () |
| void | up () |
| int | num () const |
| HttpMInvalCache * | cache () |
| void | pack_leave (HttpLeaveData &) |
| int | is_server_down (int sid) |
| void | server_down (int sid) |
| void | server_up (int sid) |
| void | invalidate (HttpMInvalCache *c) |
| void | add_server (int sid) |
Protected Attributes | |
| HttpMInvalCache * | cache_ |
| double | time_ |
| int | down_ |
| ServerList | sl_ |
| LivenessTimer * | timer_ |
|
||||||||||||||||
|
Definition at line 405 of file http-aux.h. References cache_, down_, time_, and timer_.
|
|
|
Definition at line 59 of file http-aux.cc. References TimerHandler::cancel(), NeighborCache::ServerList::gethead(), NeighborCache::ServerEntry::next(), sl_, and timer_.
|
Here is the call graph for this function:

|
|
Definition at line 119 of file http-aux.cc. References NeighborCache::ServerList::insert(), and sl_. Referenced by HttpMInvalCache::check_sstate().
|
Here is the call graph for this function:

|
|
Definition at line 417 of file http-aux.h. References cache_. Referenced by HttpMInvalCache::command(), and HttpMInvalCache::process_inv().
00417 { return cache_; }
|
|
|
Definition at line 414 of file http-aux.h. References down_. Referenced by HttpMInvalCache::handle_node_failure().
00414 { down_ = 1; }
|
|
|
Definition at line 102 of file http-aux.cc. References NeighborCache::ServerList::gethead(), HttpMInvalCache::invalidate_server(), NeighborCache::ServerEntry::next(), NeighborCache::ServerEntry::server(), and sl_. Referenced by HttpMInvalCache::handle_node_failure().
00103 {
00104 ServerEntry *s = sl_.gethead();
00105 while (s != NULL) {
00106 c->invalidate_server(s->server());
00107 s = s->next();
00108 }
00109 }
|
Here is the call graph for this function:

|
|
Definition at line 413 of file http-aux.h. References down_. Referenced by HttpMInvalCache::recv_heartbeat().
00413 { return down_; }
|
|
|
Definition at line 71 of file http-aux.cc. References NeighborCache::ServerList::gethead(), NeighborCache::ServerEntry::is_down(), NeighborCache::ServerEntry::next(), NeighborCache::ServerEntry::server(), and sl_.
|
Here is the call graph for this function:

|
|
Definition at line 416 of file http-aux.h. References NeighborCache::ServerList::num(), and sl_. Referenced by HttpMInvalCache::handle_node_failure().
|
Here is the call graph for this function:

|
|
Definition at line 111 of file http-aux.cc. References HttpLeaveData::add(), NeighborCache::ServerList::gethead(), and sl_. Referenced by HttpMInvalCache::handle_node_failure().
|
Here is the call graph for this function:

|
|
Definition at line 410 of file http-aux.h. References LivenessTimer::resched(), time_, and timer_. Referenced by HttpMInvalCache::recv_heartbeat().
|
Here is the call graph for this function:

|
|
Definition at line 82 of file http-aux.cc. References NeighborCache::ServerEntry::down(), NeighborCache::ServerList::gethead(), NeighborCache::ServerEntry::next(), NeighborCache::ServerEntry::server(), and sl_.
|
Here is the call graph for this function:

|
|
Definition at line 92 of file http-aux.cc. References NeighborCache::ServerList::gethead(), NeighborCache::ServerEntry::next(), NeighborCache::ServerEntry::server(), sl_, and NeighborCache::ServerEntry::up(). Referenced by HttpMInvalCache::check_sstate().
|
Here is the call graph for this function:

|
|
Definition at line 409 of file http-aux.h. References time_.
00409 { return time_; }
|
|
|
Definition at line 415 of file http-aux.h. References down_. Referenced by HttpMInvalCache::recv_heartbeat().
00415 { down_ = 0; }
|
|
|
Definition at line 454 of file http-aux.h. Referenced by cache(), and NeighborCache(). |
|
|
Definition at line 456 of file http-aux.h. Referenced by down(), is_down(), NeighborCache(), and up(). |
|
|
Definition at line 457 of file http-aux.h. Referenced by add_server(), invalidate(), is_server_down(), num(), pack_leave(), server_down(), server_up(), and ~NeighborCache(). |
|
|
Definition at line 455 of file http-aux.h. Referenced by NeighborCache(), reset_timer(), and time(). |
|
|
Definition at line 458 of file http-aux.h. Referenced by NeighborCache(), reset_timer(), and ~NeighborCache(). |
1.3.3