xrootd
|
#include <XrdCmsNash.hh>
Public Member Functions | |
XrdCmsKeyItem * | Add (XrdCmsKey &Key) |
XrdCmsKeyItem * | Find (XrdCmsKey &Key) |
int | Recycle (XrdCmsKeyItem *rip) |
XrdCmsNash (int psize=17711, int size=28657) | |
~XrdCmsNash () | |
Private Member Functions | |
void | Expand () |
Private Attributes | |
XrdCmsKeyItem ** | nashtable |
int | prevtablesize |
int | nashtablesize |
int | nashnum |
int | Threshold |
Static Private Attributes | |
static const int | LoadMax = 80 |
XrdCmsNash::XrdCmsNash | ( | int | psize = 17711 , |
int | size = 28657 |
||
) |
References LoadMax, nashnum, nashtable, nashtablesize, prevtablesize, and Threshold.
XrdCmsNash::~XrdCmsNash | ( | ) | [inline] |
XrdCmsKeyItem * XrdCmsNash::Add | ( | XrdCmsKey & | Key | ) |
void XrdCmsNash::Expand | ( | ) | [private] |
References XrdCmsKey::Hash, XrdCmsKeyItem::Key, LoadMax, nashtable, nashtablesize, XrdCmsKeyItem::Next, prevtablesize, and Threshold.
Referenced by Add().
XrdCmsKeyItem * XrdCmsNash::Find | ( | XrdCmsKey & | Key | ) |
References XrdCmsKey::Hash, XrdCmsKeyItem::Key, nashtable, nashtablesize, XrdCmsKeyItem::Next, and XrdCmsKey::setHash().
int XrdCmsNash::Recycle | ( | XrdCmsKeyItem * | rip | ) |
References XrdCmsKeyLoc::HashSave, XrdCmsKeyItem::Loc, nashnum, nashtable, nashtablesize, XrdCmsKeyItem::Next, and XrdCmsKeyItem::Recycle().
const int XrdCmsNash::LoadMax = 80 [static, private] |
Referenced by Expand(), and XrdCmsNash().
int XrdCmsNash::nashnum [private] |
Referenced by Add(), Recycle(), and XrdCmsNash().
XrdCmsKeyItem** XrdCmsNash::nashtable [private] |
Referenced by Add(), Expand(), Find(), Recycle(), and XrdCmsNash().
int XrdCmsNash::nashtablesize [private] |
Referenced by Add(), Expand(), Find(), Recycle(), and XrdCmsNash().
int XrdCmsNash::prevtablesize [private] |
Referenced by Expand(), and XrdCmsNash().
int XrdCmsNash::Threshold [private] |
Referenced by Add(), Expand(), and XrdCmsNash().