#include <XrdNetCache.hh>
|
static void | SetKT (int ktval) |
|
XrdNetCache::XrdNetCache |
( |
int |
psize = 987 , |
|
|
int |
csize = 1597 |
|
) |
| |
Constructor. When allocateing a new hash, two adjacent Fibonocci numbers. The series is simply n[j] = n[j-1] + n[j-2].
- Parameters
-
psize | the correct Fibonocci antecedent to csize. |
csize | the initial size of the table. |
XrdNetCache::~XrdNetCache |
( |
| ) |
|
|
inline |
Destructor. The XrdNetCache object is not designed to be deleted. Doing so will cause memory to be lost.
Add an address-hostname association to the cache. The address must be an INET family address; otherwise it is not added.
- Parameters
-
hAddr | points to the address of the name. |
hName | points to the name to be associated with the address. |
void XrdNetCache::Expand |
( |
| ) |
|
|
private |
Locate an address-hostname association in the cache.
- Parameters
-
hAddr | points to the address of the name. |
- Returns
- Success: an strdup'd string of the corresponding name. Failure: 0;
static void XrdNetCache::SetKT |
( |
int |
ktval | ) |
|
|
inlinestatic |
Set the default keep time for entries in the cache during initialization.
- Parameters
-
ktVal | the number of seconds to keep an entry in the cache. |
References keepTime.
int XrdNetCache::keepTime |
|
staticprivate |
const int XrdNetCache::LoadMax = 80 |
|
staticprivate |
anItem** XrdNetCache::nashtable |
|
private |
int XrdNetCache::nashtablesize |
|
private |
int XrdNetCache::prevtablesize |
|
private |
int XrdNetCache::Threshold |
|
private |
The documentation for this class was generated from the following file: