XrdCmsManTree Class Reference

#include <XrdCmsManTree.hh>

List of all members.

Public Types

enum  connStat

Public Member Functions

int Connect (int nID, XrdCmsNode *nP)
void Disc (int nID)
int Register ()
void setMaxCon (int i)
int Trying (int nID, int Lvl)
 XrdCmsManTree ()
 ~XrdCmsManTree ()

Private Member Functions

void Redrive (int nID)
void Pause (int nID)

Private Attributes

XrdSysMutex myMutex
XrdCmsManTree::TreeInfo tmInfo [XrdCmsManager::MTMax]
char buff [8]
int maxTMI
int numConn
int maxConn
int atRoot
int conLevel
int conNID
int numWaiting
connStat myStatus

Classes

struct  TreeInfo


Detailed Description

Definition at line 20 of file XrdCmsManTree.hh.


Member Enumeration Documentation

enum XrdCmsManTree::connStat

Definition at line 34 of file XrdCmsManTree.hh.


Constructor & Destructor Documentation

XrdCmsManTree::XrdCmsManTree (  )  [inline]

Definition at line 36 of file XrdCmsManTree.hh.

XrdCmsManTree::~XrdCmsManTree (  )  [inline]

Definition at line 39 of file XrdCmsManTree.hh.


Member Function Documentation

int XrdCmsManTree::Connect ( int  nID,
XrdCmsNode nP 
)

Definition at line 37 of file XrdCmsManTree.cc.

References atRoot, buff, conLevel, Connected, conNID, XrdSysError::Emsg(), i, XrdCms::kYR_disc, XrdCmsManTree::TreeInfo::Level, maxConn, maxTMI, myMutex, myStatus, XrdCmsManTree::TreeInfo::nodeP, numConn, Pending, XrdFrm::Say(), snprintf, XrdCmsManTree::TreeInfo::Status, and tmInfo.

Referenced by XrdCmsProtocol::Pander().

void XrdCmsManTree::Disc ( int  nID  ) 

Definition at line 88 of file XrdCmsManTree.cc.

References Active, atRoot, conLevel, Connected, conNID, XrdSysMutex::Lock(), myMutex, myStatus, XrdCmsManTree::TreeInfo::nodeP, numConn, Pending, XrdCmsManTree::TreeInfo::Status, tmInfo, and XrdSysMutex::UnLock().

Referenced by XrdCmsProtocol::Pander().

int XrdCmsManTree::Register (  ) 

Definition at line 106 of file XrdCmsManTree.cc.

References Active, XrdSysMutex::Lock(), maxTMI, myMutex, XrdCmsManTree::TreeInfo::Status, tmInfo, and XrdSysMutex::UnLock().

Referenced by XrdCmsProtocol::Pander().

void XrdCmsManTree::setMaxCon ( int  i  ) 

Definition at line 125 of file XrdCmsManTree.cc.

References buff, maxConn, and snprintf.

Referenced by XrdCmsConfig::setupServer().

int XrdCmsManTree::Trying ( int  nID,
int  Lvl 
)

Definition at line 143 of file XrdCmsManTree.cc.

References Active, conLevel, Connected, i, XrdCmsManTree::TreeInfo::Level, XrdSysMutex::Lock(), maxTMI, myMutex, myStatus, numWaiting, Pause(), Redrive(), tmInfo, XrdSysMutex::UnLock(), and Waiting.

Referenced by XrdCmsProtocol::Pander().

void XrdCmsManTree::Redrive ( int  nID  )  [inline, private]

Definition at line 43 of file XrdCmsManTree.hh.

References Active, numWaiting, XrdSysSemaphore::Post(), XrdCmsManTree::TreeInfo::Status, XrdCmsManTree::TreeInfo::theSem, and tmInfo.

Referenced by Trying().

void XrdCmsManTree::Pause ( int  nID  )  [inline, private]

Definition at line 47 of file XrdCmsManTree.hh.

References myMutex, numWaiting, XrdCmsManTree::TreeInfo::Status, XrdCmsManTree::TreeInfo::theSem, tmInfo, XrdSysMutex::UnLock(), XrdSysSemaphore::Wait(), and Waiting.

Referenced by Trying().


Member Data Documentation

XrdSysMutex XrdCmsManTree::myMutex [private]

Definition at line 53 of file XrdCmsManTree.hh.

Referenced by Connect(), Disc(), Pause(), Register(), and Trying().

struct XrdCmsManTree::TreeInfo XrdCmsManTree::tmInfo[XrdCmsManager::MTMax] [private]

Referenced by Connect(), Disc(), Pause(), Redrive(), Register(), and Trying().

char XrdCmsManTree::buff[8] [private]

Definition at line 67 of file XrdCmsManTree.hh.

Referenced by Connect(), and setMaxCon().

int XrdCmsManTree::maxTMI [private]

Definition at line 68 of file XrdCmsManTree.hh.

Referenced by Connect(), Register(), and Trying().

int XrdCmsManTree::numConn [private]

Definition at line 69 of file XrdCmsManTree.hh.

Referenced by Connect(), and Disc().

int XrdCmsManTree::maxConn [private]

Definition at line 70 of file XrdCmsManTree.hh.

Referenced by Connect(), and setMaxCon().

int XrdCmsManTree::atRoot [private]

Definition at line 71 of file XrdCmsManTree.hh.

Referenced by Connect(), and Disc().

int XrdCmsManTree::conLevel [private]

Definition at line 72 of file XrdCmsManTree.hh.

Referenced by Connect(), Disc(), and Trying().

int XrdCmsManTree::conNID [private]

Definition at line 73 of file XrdCmsManTree.hh.

Referenced by Connect(), and Disc().

int XrdCmsManTree::numWaiting [private]

Definition at line 74 of file XrdCmsManTree.hh.

Referenced by Pause(), Redrive(), and Trying().

connStat XrdCmsManTree::myStatus [private]

Definition at line 75 of file XrdCmsManTree.hh.

Referenced by Connect(), Disc(), and Trying().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:50:20 2011 for ROOT_528-00b_version by  doxygen 1.5.1