#include <XrdNetCache.hh>
|
| static void | SetKT (int ktval) |
| |
◆ XrdNetCache()
| 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::~XrdNetCache |
( |
| ) |
|
|
inline |
Destructor. The XrdNetCache object is not designed to be deleted. Doing so will cause memory to be lost.
◆ Add()
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. |
◆ Expand()
| void XrdNetCache::Expand |
( |
| ) |
|
|
private |
◆ Find()
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;
◆ GenKey()
◆ Locate()
◆ SetKT()
| 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.
◆ keepTime
| int XrdNetCache::keepTime |
|
staticprivate |
◆ LoadMax
| const int XrdNetCache::LoadMax = 80 |
|
staticprivate |
◆ myMutex
◆ nashnum
◆ nashtable
| anItem** XrdNetCache::nashtable |
|
private |
◆ nashtablesize
| int XrdNetCache::nashtablesize |
|
private |
◆ prevtablesize
| int XrdNetCache::prevtablesize |
|
private |
◆ Threshold
| int XrdNetCache::Threshold |
|
private |
The documentation for this class was generated from the following file: