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


Public Member Functions | |
| HttpHbData (int id, int n) | |
| HttpHbData (HttpHbData &d) | |
| virtual | ~HttpHbData () |
| virtual int | size () const |
| virtual int | cost () const |
| virtual AppData * | copy () |
| int & | num_inv () |
| void | add (int i, InvalidationRec *r) |
| char * | rec_pg (int i) |
| double & | rec_mtime (int i) |
| void | extract (InvalidationRec *&ivlist) |
| int & | id () |
| AppDataType | type () const |
Private Member Functions | |
| InvalRec * | inv_rec () |
Private Attributes | |
| int | num_inv_ |
| InvalRec * | inv_rec_ |
|
||||||||||||
|
Definition at line 246 of file http-aux.h. References HTTP_INVALIDATION, inv_rec_, and num_inv_. Referenced by copy().
|
|
|
Definition at line 253 of file http-aux.h. References inv_rec_, and num_inv_.
|
|
|
Definition at line 261 of file http-aux.h. References inv_rec_.
|
|
||||||||||||
|
Definition at line 279 of file http-aux.h. References HttpHbData::InvalRec::copy(), and inv_rec(). Referenced by HttpMInvalCache::pack_heartbeat(), and HttpYucInvalServer::pack_heartbeat().
|
Here is the call graph for this function:

|
|
Reimplemented from HttpData. Definition at line 274 of file http-aux.h. References HttpHbData().
00274 {
00275 return (new HttpHbData(*this));
00276 }
|
Here is the call graph for this function:

|
|
Reimplemented from HttpData. Definition at line 270 of file http-aux.h. References HTTPHBDATA_COST, and num_inv_. Referenced by HttpMInvalCache::send_heartbeat(), and HttpYucInvalServer::send_heartbeat().
00270 {
00271 // Minimum size 1 so that TCP will send a packet
00272 return (num_inv_ == 0) ? 1 : (num_inv_*HTTPHBDATA_COST);
00273 }
|
|
|
Definition at line 40 of file http-aux.cc. References HttpHbData::InvalRec::copyto(), InvalidationRec::insert(), inv_rec(), and num_inv(). Referenced by HttpMInvalCache::recv_inv().
00041 {
00042 // XXX head must be passed in from outside, because the
00043 // InvalidationRec list will obtain the address of head
00044 head = NULL;
00045 InvalidationRec *q = NULL;
00046 // reconstruct a list of invalidation records.
00047 // We keep the updating record
00048 for (int i = 0; i < num_inv(); i++) {
00049 // Used only to mark that this page will be send in
00050 // the next multicast update. The updating field in
00051 // this agent will only be set after it gets the real
00052 // update. Here we set this field temporarily so that
00053 // recv_inv can find out the
00054 q = inv_rec()[i].copyto();
00055 q->insert(&head);
00056 }
00057 }
|
Here is the call graph for this function:

|
|
Definition at line 159 of file http-aux.h. References HttpData::id_. Referenced by HttpMInvalCache::process_data(), HttpMInvalCache::recv_inv(), and HttpMInvalCache::recv_leave().
00159 { return id_; }
|
|
|
Definition at line 243 of file http-aux.h. References inv_rec_. Referenced by add(), extract(), rec_mtime(), and rec_pg().
00243 { return inv_rec_; }
|
|
|
Definition at line 278 of file http-aux.h. References num_inv_. Referenced by extract(), and HttpMInvalCache::recv_inv().
00278 { return num_inv_; }
|
|
|
Definition at line 283 of file http-aux.h. References inv_rec(), and HttpHbData::InvalRec::mtime_. Referenced by HttpMInvalCache::command().
|
Here is the call graph for this function:

|
|
Definition at line 282 of file http-aux.h. References inv_rec(), and HttpHbData::InvalRec::pg_. Referenced by HttpMInvalCache::command().
|
Here is the call graph for this function:

|
|
Reimplemented from HttpData. Definition at line 266 of file http-aux.h. References num_inv_, and HttpData::size().
00266 {
00267 return HttpData::size() + num_inv_*sizeof(InvalRec);
00268 }
|
Here is the call graph for this function:

|
|
Definition at line 84 of file ns-process.h. References AppDataType, and AppData::type_. Referenced by Packet::accessdata(), TcpApp::process_data(), MediaClient::process_data(), MediaCache::process_data(), HttpMInvalCache::process_data(), HttpApp::process_data(), and UdpAgent::recv().
00084 { return type_; }
|
|
|
Definition at line 242 of file http-aux.h. Referenced by HttpHbData(), inv_rec(), and ~HttpHbData(). |
|
|
Definition at line 241 of file http-aux.h. Referenced by cost(), HttpHbData(), num_inv(), and size(). |
1.3.3