#include <XrdOdcResp.hh>


Public Member Functions | |
| void | Done (int &Result, XrdOucErrInfo *eInfo) |
| int | ID () |
| void | Reply (const char *Man, char *reply) |
| int | Same (unsigned long long arg1, unsigned long long arg2) |
| XrdOdcResp () | |
| ~XrdOdcResp () | |
Static Public Member Functions | |
| static XrdOdcResp * | Alloc (XrdOucErrInfo *erp, int msgid) |
| static void | setDelay (int repdly) |
Private Member Functions | |
| void | Recycle () |
Private Attributes | |
| XrdOdcRespCB | SyncCB |
| XrdOdcResp * | next |
| int | myID |
| char | UserID [64] |
Static Private Attributes | |
| static XrdOdcResp * | nextFree = 0 |
| static XrdSysMutex | myMutex |
| static int | numFree = 0 |
| static const int | maxFree = 300 |
| static int | RepDelay = 5 |
Friends | |
| class | XrdOdcRespQ |
| XrdOdcResp::~XrdOdcResp | ( | ) | [inline] |
| XrdOdcResp * XrdOdcResp::Alloc | ( | XrdOucErrInfo * | erp, | |
| int | msgid | |||
| ) | [static] |
References XrdOucErrInfo::ErrCB, XrdOucErrInfo::ErrCBarg, XrdOucErrInfo::getErrCB(), XrdOucErrInfo::getErrUser(), XrdOdcRespCB::Init(), XrdSysMutex::Lock(), myID, myMutex, next, nextFree, numFree, XrdOucErrInfo::setErrCB(), strlcpy(), SyncCB, XrdSysMutex::UnLock(), UserID, and XrdOdcResp().
Referenced by XrdOdcManager::delayResp().
| void XrdOdcResp::Done | ( | int & | Result, | |
| XrdOucErrInfo * | eInfo | |||
| ) | [inline, virtual] |
Implements XrdOucEICB.
References Recycle().
| int XrdOdcResp::ID | ( | ) | [inline] |
References myID.
| void XrdOdcResp::Recycle | ( | void | ) | [private] |
References XrdSysMutex::Lock(), maxFree, myMutex, next, nextFree, numFree, and XrdSysMutex::UnLock().
| void XrdOdcResp::Reply | ( | const char * | Man, | |
| char * | reply | |||
| ) |
References DEBUG, XrdOucEICB::Done(), EPNAME, XrdOucErrInfo::ErrCB, index(), XrdOdcMsg::mapError(), myID, Recycle(), RepDelay, XrdOucErrInfo::setErrInfo(), SyncCB, TRACE, UserID, and XrdOdcRespCB::Wait().
Referenced by XrdOdcManager::relayResp().
| int XrdOdcResp::Same | ( | unsigned long long | arg1, | |
| unsigned long long | arg2 | |||
| ) | [inline, virtual] |
Implements XrdOucEICB.
| static void XrdOdcResp::setDelay | ( | int | repdly | ) | [inline, static] |
References RepDelay.
friend class XrdOdcRespQ [friend] |
const int XrdOdcResp::maxFree = 300 [static, private] |
Referenced by Recycle().
int XrdOdcResp::myID [private] |
Referenced by XrdOdcRespQ::Add(), Alloc(), ID(), XrdOdcRespQ::Rem(), and Reply().
XrdSysMutex XrdOdcResp::myMutex [static, private] |
XrdOdcResp* XrdOdcResp::next [private] |
Referenced by XrdOdcRespQ::Add(), Alloc(), XrdOdcRespQ::Purge(), Recycle(), XrdOdcRespQ::Rem(), and XrdOdcResp().
XrdOdcResp * XrdOdcResp::nextFree = 0 [static, private] |
int XrdOdcResp::numFree = 0 [static, private] |
int XrdOdcResp::RepDelay = 5 [static, private] |
Referenced by Reply(), and setDelay().
XrdOdcRespCB XrdOdcResp::SyncCB [private] |
char XrdOdcResp::UserID[64] [private] |
1.7.1