xrootd
Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
XrdCmsClientMsg Class Reference

#include <XrdCmsClientMsg.hh>

Collaboration diagram for XrdCmsClientMsg:
Collaboration graph
[legend]

Public Member Functions

int getResult ()
 
int ID ()
 
void Lock ()
 
void Recycle ()
 
void UnLock ()
 
int Wait4Reply (int wtime)
 
 XrdCmsClientMsg ()
 
 ~XrdCmsClientMsg ()
 

Static Public Member Functions

static XrdCmsClientMsgAlloc (XrdOucErrInfo *erp)
 
static int Init ()
 
static int inQ ()
 
static int Reply (const char *Man, XrdCms::CmsRRHdr &hdr, XrdNetBuffer *buff)
 

Static Private Member Functions

static XrdCmsClientMsgRemFromWaitQ (int msgid)
 

Private Attributes

XrdCmsClientMsgnext
 
XrdSysCondVar Hold
 
int inwaitq
 
int id
 
XrdOucErrInfoResp
 
int Result
 

Static Private Attributes

static const int MidMask = 1023
 
static const int MaxMsgs = 1024
 
static const int MidIncr = 1024
 
static const int IncMask = 0x3ffffc00
 
static int nextid = 0
 
static int numinQ = 0
 
static XrdCmsClientMsgmsgTab = 0
 
static XrdCmsClientMsgnextfree = 0
 
static XrdSysMutex FreeMsgQ
 

Constructor & Destructor Documentation

XrdCmsClientMsg::XrdCmsClientMsg ( )
inline

References inwaitq, next, Resp, and Result.

XrdCmsClientMsg::~XrdCmsClientMsg ( )
inline

Member Function Documentation

XrdCmsClientMsg * XrdCmsClientMsg::Alloc ( XrdOucErrInfo erp)
static
int XrdCmsClientMsg::getResult ( )
inline

References Result.

Referenced by XrdCmsFinderRMT::send2Man().

int XrdCmsClientMsg::ID ( )
inline

References id.

Referenced by XrdCmsFinderRMT::send2Man().

int XrdCmsClientMsg::Init ( )
static

References id, and next.

Referenced by XrdCmsClientConfig::Configure().

static int XrdCmsClientMsg::inQ ( )
inlinestatic

References numinQ.

Referenced by XrdCmsClientMan::whatsUp().

void XrdCmsClientMsg::Lock ( )
inline

References Hold, and XrdSysCondVar::Lock().

Referenced by Alloc().

void XrdCmsClientMsg::Recycle ( )
XrdCmsClientMsg * XrdCmsClientMsg::RemFromWaitQ ( int  msgid)
staticprivate

References Hold, and XrdSysCondVar::Lock().

Referenced by Reply().

int XrdCmsClientMsg::Reply ( const char *  Man,
XrdCms::CmsRRHdr hdr,
XrdNetBuffer buff 
)
static
void XrdCmsClientMsg::UnLock ( )
inline

References Hold, and XrdSysCondVar::UnLock().

Referenced by Alloc().

int XrdCmsClientMsg::Wait4Reply ( int  wtime)
inline

References Hold, and XrdSysCondVar::Wait().

Referenced by XrdCmsFinderRMT::send2Man().

Member Data Documentation

XrdSysMutex XrdCmsClientMsg::FreeMsgQ
staticprivate
XrdSysCondVar XrdCmsClientMsg::Hold
private
int XrdCmsClientMsg::id
private

Referenced by Alloc(), ID(), and Init().

const int XrdCmsClientMsg::IncMask = 0x3ffffc00
staticprivate
int XrdCmsClientMsg::inwaitq
private

Referenced by Alloc(), and XrdCmsClientMsg().

const int XrdCmsClientMsg::MaxMsgs = 1024
staticprivate
const int XrdCmsClientMsg::MidIncr = 1024
staticprivate
const int XrdCmsClientMsg::MidMask = 1023
staticprivate
XrdCmsClientMsg * XrdCmsClientMsg::msgTab = 0
staticprivate
XrdCmsClientMsg* XrdCmsClientMsg::next
private

Referenced by Alloc(), Init(), and XrdCmsClientMsg().

XrdCmsClientMsg * XrdCmsClientMsg::nextfree = 0
staticprivate
int XrdCmsClientMsg::nextid = 0
staticprivate
int XrdCmsClientMsg::numinQ = 0
staticprivate

Referenced by inQ().

XrdOucErrInfo* XrdCmsClientMsg::Resp
private

Referenced by Alloc(), Reply(), and XrdCmsClientMsg().

int XrdCmsClientMsg::Result
private

Referenced by getResult(), Reply(), and XrdCmsClientMsg().


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