#include <XrdFrmProxy.hh>

Classes | |
| struct | o2qMap |
| class | Queues |
Public Member Functions | |
| int | Add (char Opc, const char *Lfn, const char *Opq, const char *Usr, const char *Rid, const char *Nop, const char *Pop, int Prty=1) |
| int | Del (char Opc, const char *Rid) |
| int | List (Queues &State, char *Buff, int Bsz) |
| int | List (int qType, int qPrty, XrdFrmRequest::Item *Items, int Num) |
| int | Init (int opX, const char *aPath, int aMode, const char *qPath=0) |
| XrdFrmProxy (XrdSysLogger *lP, const char *iName, int Debug=0) | |
| ~XrdFrmProxy () | |
Static Public Attributes | |
| static const int | opGet = 1 |
| static const int | opPut = 2 |
| static const int | opMig = 4 |
| static const int | opStg = 8 |
| static const int | opAll = 15 |
Private Member Functions | |
| int | Init2 (const char *cfgFN) |
| int | qChk (XrdOucStream &cFile) |
Private Attributes | |
| XrdFrmReqAgent * | Agent [XrdFrmRequest::numQ] |
| const char * | insName |
| char * | intName |
| char * | QPath |
Static Private Attributes | |
| static o2qMap | oqMap [] |
| static int | oqNum = sizeof(oqMap)/sizeof(oqMap[0]) |
| XrdFrmProxy::XrdFrmProxy | ( | XrdSysLogger * | lP, | |
| const char * | iName, | |||
| int | Debug = 0 | |||
| ) |
References Agent, insName, XrdOucUtils::InstName(), intName, QPath, Say, XrdCms::Trace, TRACE_ALL, and XrdOucTrace::What.
| XrdFrmProxy::~XrdFrmProxy | ( | ) | [inline] |
| int XrdFrmProxy::Add | ( | char | Opc, | |
| const char * | Lfn, | |||
| const char * | Opq, | |||
| const char * | Usr, | |||
| const char * | Rid, | |||
| const char * | Nop, | |||
| const char * | Pop, | |||
| int | Prty = 1 | |||
| ) |
References XrdFrmReqAgent::Add(), Agent, XrdFrmUtils::chkURL(), XrdFrmRequest::ID, intName, XrdFrmRequest::LFN, XrdFrmRequest::LFO, XrdFrmUtils::MapM2O(), XrdFrmUtils::MapR2Q(), XrdFrmRequest::Notify, XrdFrmRequest::Opaque, XrdFrmRequest::OPc, XrdFrmRequest::Options, XrdFrmRequest::Prty, strlcpy(), and XrdFrmRequest::User.
Referenced by XrdCmsPrepare::Add(), and XrdOssSys::Stage_QT().
| int XrdFrmProxy::Del | ( | char | Opc, | |
| const char * | Rid | |||
| ) |
References Agent, XrdFrmReqAgent::Del(), XrdFrmRequest::ID, XrdFrmUtils::MapR2Q(), and strlcpy().
Referenced by XrdCmsPrepare::Del().
| int XrdFrmProxy::Init | ( | int | opX, | |
| const char * | aPath, | |||
| int | aMode, | |||
| const char * | qPath = 0 | |||
| ) |
References Agent, Init2(), insName, XrdFrmUtils::makePath(), oqMap, oqNum, QPath, and XrdFrmProxy::o2qMap::qType.
Referenced by XrdFrmAdmin::ConfigProxy(), XrdOssSys::ConfigStage(), and XrdCmsPrepare::Reset().
| int XrdFrmProxy::Init2 | ( | const char * | cfgFN | ) | [private] |
References XrdOucStream::Attach(), XrdOucStream::Close(), XrdOucStream::Echo(), XrdOucStream::GetMyFirstWord(), XrdOucStream::LastError(), open, qChk(), and Say.
Referenced by Init().
| int XrdFrmProxy::List | ( | int | qType, | |
| int | qPrty, | |||
| XrdFrmRequest::Item * | Items, | |||
| int | Num | |||
| ) |
References Agent, XrdFrmReqAgent::List(), opAll, oqMap, oqNum, XrdFrmProxy::o2qMap::oType, and XrdFrmProxy::o2qMap::qType.
| int XrdFrmProxy::List | ( | XrdFrmProxy::Queues & | State, | |
| char * | Buff, | |||
| int | Bsz | |||
| ) |
References XrdFrmProxy::Queues::Active, Agent, XrdFrmRequest::maxPrty, XrdFrmReqAgent::NextLFN(), XrdFrmProxy::Queues::Offset, opAll, oqMap, oqNum, XrdFrmProxy::o2qMap::oType, XrdFrmProxy::Queues::Prty, XrdFrmProxy::Queues::QList, XrdFrmProxy::Queues::QNow, and XrdFrmProxy::o2qMap::qType.
Referenced by XrdFrmAdmin::QueryXfrQ(), and XrdCmsPrepare::Reset().
| int XrdFrmProxy::qChk | ( | XrdOucStream & | cFile | ) | [private] |
References XrdOucStream::GetWord(), QPath, and Say.
Referenced by Init2().
XrdFrmReqAgent* XrdFrmProxy::Agent[XrdFrmRequest::numQ] [private] |
Referenced by Add(), Del(), Init(), List(), and XrdFrmProxy().
const char* XrdFrmProxy::insName [private] |
Referenced by Init(), and XrdFrmProxy().
char* XrdFrmProxy::intName [private] |
Referenced by Add(), and XrdFrmProxy().
const int XrdFrmProxy::opAll = 15 [static] |
Referenced by List(), and XrdFrmAdmin::QueryXfrQ().
const int XrdFrmProxy::opGet = 1 [static] |
Referenced by XrdFrmAdmin::ConfigProxy(), and XrdFrmAdmin::QueryXfrQ().
const int XrdFrmProxy::opMig = 4 [static] |
Referenced by XrdFrmAdmin::ConfigProxy(), and XrdFrmAdmin::QueryXfrQ().
const int XrdFrmProxy::opPut = 2 [static] |
Referenced by XrdFrmAdmin::ConfigProxy(), and XrdFrmAdmin::QueryXfrQ().
const int XrdFrmProxy::opStg = 8 [static] |
Referenced by XrdFrmAdmin::ConfigProxy(), XrdOssSys::ConfigStage(), XrdFrmAdmin::QueryXfrQ(), and XrdCmsPrepare::Reset().
XrdFrmProxy::o2qMap XrdFrmProxy::oqMap [static, private] |
{{"getf", XrdFrmRequest::getQ, opGet},
{"migr", XrdFrmRequest::migQ, opMig},
{"pstg", XrdFrmRequest::stgQ, opStg},
{"putf", XrdFrmRequest::putQ, opPut}}
int XrdFrmProxy::oqNum = sizeof(oqMap)/sizeof(oqMap[0]) [static, private] |
char* XrdFrmProxy::QPath [private] |
Referenced by Init(), qChk(), and XrdFrmProxy().
1.6.2-20100208