Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Static Private Attributes

XrdCmsKeyItem Class Reference

#include <XrdCmsKey.hh>

Collaboration diagram for XrdCmsKeyItem:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void Recycle ()
void Reload ()
 XrdCmsKeyItem ()
 ~XrdCmsKeyItem ()

Static Public Member Functions

static XrdCmsKeyItemAlloc (unsigned int theTock)
static int Replenish ()
static void Stats (int &isAlloc, int &isFree, int &wasEmpty)
static XrdCmsKeyItemUnload (unsigned int theTock)
static XrdCmsKeyItemUnload (XrdCmsKeyItem *theItem)

Public Attributes

XrdCmsKeyLoc Loc
XrdCmsKey Key
XrdCmsKeyItemNext

Static Public Attributes

static const unsigned int TickRate = 64
static const unsigned int TickMask = 63
static const int minAlloc = 4096
static const int minFree = 1024

Static Private Attributes

static XrdCmsKeyItemTockTable [TickRate] = {0}
static XrdCmsKeyItemFree = 0
static int numFree = 0
static int numHave = 0
static int numNull = 0

Constructor & Destructor Documentation

XrdCmsKeyItem::XrdCmsKeyItem (  )  [inline]
XrdCmsKeyItem::~XrdCmsKeyItem (  )  [inline]

Member Function Documentation

XrdCmsKeyItem * XrdCmsKeyItem::Alloc ( unsigned int  theTock  )  [static]
void XrdCmsKeyItem::Recycle (  ) 
void XrdCmsKeyItem::Reload (  ) 
int XrdCmsKeyItem::Replenish (  )  [static]

References DEBUG, EPNAME, Free, minAlloc, Next, numFree, and numHave.

Referenced by Alloc(), and XrdCmsCache::Recycle().

void XrdCmsKeyItem::Stats ( int &  isAlloc,
int &  isFree,
int &  wasEmpty 
) [static]

References numFree, numHave, and numNull.

Referenced by XrdCmsCache::Recycle().

XrdCmsKeyItem * XrdCmsKeyItem::Unload ( unsigned int  theTock  )  [static]
XrdCmsKeyItem * XrdCmsKeyItem::Unload ( XrdCmsKeyItem theItem  )  [static]

Member Data Documentation

XrdCmsKeyItem * XrdCmsKeyItem::Free = 0 [static, private]

Referenced by Alloc(), Recycle(), and Replenish().

const int XrdCmsKeyItem::minAlloc = 4096 [static]

Referenced by XrdCmsCache::Recycle(), and Replenish().

const int XrdCmsKeyItem::minFree = 1024 [static]

Referenced by XrdCmsCache::Recycle().

int XrdCmsKeyItem::numFree = 0 [static, private]

Referenced by Alloc(), Recycle(), Replenish(), and Stats().

int XrdCmsKeyItem::numHave = 0 [static, private]

Referenced by Replenish(), and Stats().

int XrdCmsKeyItem::numNull = 0 [static, private]

Referenced by Alloc(), and Stats().

const unsigned int XrdCmsKeyItem::TickMask = 63 [static]
const unsigned int XrdCmsKeyItem::TickRate = 64 [static]

Referenced by XrdCmsCache::Init().

XrdCmsKeyItem * XrdCmsKeyItem::TockTable = {0} [static, private]

Referenced by Alloc(), Reload(), and Unload().


The documentation for this class was generated from the following files: