#include <XrdCmsRTable.hh>
Public Member Functions | |
| short | Add (XrdCmsNode *nP) |
| void | Del (XrdCmsNode *nP) |
| XrdCmsNode * | Find (short Num, int Inst) |
| void | Send (const char *What, const char *data, int dlen) |
| void | Lock () |
| void | UnLock () |
| XrdCmsRTable () | |
| ~XrdCmsRTable () | |
Private Attributes | |
| XrdSysMutex | myMutex |
| XrdCmsNode * | Rtable [maxRD] |
| int | Hwm |
Definition at line 21 of file XrdCmsRTable.hh.
| XrdCmsRTable::XrdCmsRTable | ( | ) | [inline] |
| XrdCmsRTable::~XrdCmsRTable | ( | ) | [inline] |
Definition at line 39 of file XrdCmsRTable.hh.
| short XrdCmsRTable::Add | ( | XrdCmsNode * | nP | ) |
Definition at line 32 of file XrdCmsRTable.cc.
References Hwm, i, XrdSysMutex::Lock(), maxRD, myMutex, Rtable, and XrdSysMutex::UnLock().
Referenced by XrdCmsProtocol::Admit_Redirector().
| void XrdCmsRTable::Del | ( | XrdCmsNode * | nP | ) |
Definition at line 58 of file XrdCmsRTable.cc.
References Hwm, i, XrdSysMutex::Lock(), myMutex, Rtable, and XrdSysMutex::UnLock().
Referenced by XrdCmsProtocol::Process().
| XrdCmsNode * XrdCmsRTable::Find | ( | short | Num, | |
| int | Inst | |||
| ) |
Definition at line 87 of file XrdCmsRTable.cc.
Referenced by XrdCmsReq::Reply(), XrdCmsRRQ::sendLocResp(), and XrdCmsRRQ::sendResponse().
| void XrdCmsRTable::Send | ( | const char * | What, | |
| const char * | data, | |||
| int | dlen | |||
| ) |
Definition at line 101 of file XrdCmsRTable.cc.
References DEBUG, EPNAME, Hwm, i, XrdSysMutex::Lock(), myMutex, Rtable, XrdCmsNode::Send(), and XrdSysMutex::UnLock().
Referenced by XrdCmsState::Monitor().
| void XrdCmsRTable::Lock | ( | ) | [inline] |
Definition at line 33 of file XrdCmsRTable.hh.
References XrdSysMutex::Lock(), and myMutex.
Referenced by XrdCmsReq::Reply(), XrdCmsRRQ::sendLocResp(), and XrdCmsRRQ::sendResponse().
| void XrdCmsRTable::UnLock | ( | void | ) | [inline] |
Definition at line 35 of file XrdCmsRTable.hh.
References myMutex, and XrdSysMutex::UnLock().
Referenced by XrdCmsReq::Reply(), XrdCmsRRQ::sendLocResp(), and XrdCmsRRQ::sendResponse().
XrdSysMutex XrdCmsRTable::myMutex [private] |
XrdCmsNode* XrdCmsRTable::Rtable[maxRD] [private] |
Definition at line 44 of file XrdCmsRTable.hh.
Referenced by Add(), Del(), Find(), Send(), and XrdCmsRTable().
int XrdCmsRTable::Hwm [private] |
Definition at line 45 of file XrdCmsRTable.hh.
Referenced by Add(), Del(), Find(), Send(), and XrdCmsRTable().
1.5.1