#include <XrdCmsManTree.hh>
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 |
Definition at line 20 of file XrdCmsManTree.hh.
Definition at line 34 of file XrdCmsManTree.hh.
XrdCmsManTree::XrdCmsManTree | ( | ) | [inline] |
Definition at line 36 of file XrdCmsManTree.hh.
XrdCmsManTree::~XrdCmsManTree | ( | ) | [inline] |
Definition at line 39 of file XrdCmsManTree.hh.
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().
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] |
char XrdCmsManTree::buff[8] [private] |
int XrdCmsManTree::maxTMI [private] |
int XrdCmsManTree::numConn [private] |
int XrdCmsManTree::maxConn [private] |
int XrdCmsManTree::atRoot [private] |
int XrdCmsManTree::conLevel [private] |
int XrdCmsManTree::conNID [private] |
int XrdCmsManTree::numWaiting [private] |
connStat XrdCmsManTree::myStatus [private] |