#include <XrdOdcFinder.hh>


Public Member Functions | |
| void | Added (const char *path) |
| int | Configure (char *cfn) |
| int | Forward (XrdOucErrInfo &Resp, const char *cmd, const char *arg1=0, const char *arg2=0) |
| int | Locate (XrdOucErrInfo &Resp, const char *path, int flags, XrdOucEnv *Info=0) |
| int | Prepare (XrdOucErrInfo &Resp, XrdSfsPrep &pargs) |
| void | Removed (const char *path) |
| void * | Start () |
| XrdOdcFinderTRG (XrdSysLogger *lp, int whoami, int port) | |
| ~XrdOdcFinderTRG () | |
Private Member Functions | |
| void | Hookup () |
Private Attributes | |
| XrdOucStream * | OLBp |
| XrdSysMutex | myData |
| int | myPort |
| char * | OLBPath |
| char * | Login |
| int | isRedir |
| int | isProxy |
| int | Active |
| XrdOdcFinderTRG::XrdOdcFinderTRG | ( | XrdSysLogger * | lp, | |
| int | whoami, | |||
| int | port | |||
| ) |
| void XrdOdcFinderTRG::Added | ( | const char * | path | ) |
References Active, XrdOucStream::Close(), XrdSysMutex::Lock(), myData, OLBp, XrdOucStream::Put(), and XrdSysMutex::UnLock().
| int XrdOdcFinderTRG::Configure | ( | char * | cfn | ) | [virtual] |
Implements XrdOdcFinder.
References XrdOdcConfig::Configure(), XrdSysError::Emsg(), isRedir, OdcEDest, XrdOdcConfig::OLBPath, OLBPath, XrdSysThread::Run(), and XrdOdcStartOlb().
| int XrdOdcFinderTRG::Forward | ( | XrdOucErrInfo & | Resp, | |
| const char * | cmd, | |||
| const char * | arg1 = 0, |
|||
| const char * | arg2 = 0 | |||
| ) | [inline, virtual] |
Implements XrdOdcFinder.
| void XrdOdcFinderTRG::Hookup | ( | ) | [private] |
References Active, XrdOucStream::Attach(), XrdSysError::Emsg(), XrdSysMutex::Lock(), myData, OdcEDest, OLBp, OLBPath, opts, stat(), XrdSysMutex::UnLock(), and XrdSysTimer::Wait().
Referenced by Start().
| int XrdOdcFinderTRG::Locate | ( | XrdOucErrInfo & | Resp, | |
| const char * | path, | |||
| int | flags, | |||
| XrdOucEnv * | Info = 0 | |||
| ) | [inline, virtual] |
Implements XrdOdcFinder.
| int XrdOdcFinderTRG::Prepare | ( | XrdOucErrInfo & | Resp, | |
| XrdSfsPrep & | pargs | |||
| ) | [inline, virtual] |
Implements XrdOdcFinder.
| void XrdOdcFinderTRG::Removed | ( | const char * | path | ) |
References Active, XrdOucStream::Close(), XrdSysMutex::Lock(), myData, OLBp, XrdOucStream::Put(), and XrdSysMutex::UnLock().
| void * XrdOdcFinderTRG::Start | ( | ) |
References Active, XrdOucStream::Close(), XrdSysError::Emsg(), XrdOucStream::GetLine(), Hookup(), XrdSysMutex::Lock(), Login, myData, OdcEDest, OLBp, OLBPath, XrdOucStream::Put(), XrdSysMutex::UnLock(), and XrdSysTimer::Wait().
Referenced by XrdOdcStartOlb().
int XrdOdcFinderTRG::Active [private] |
Referenced by Added(), Hookup(), Removed(), Start(), and XrdOdcFinderTRG().
int XrdOdcFinderTRG::isProxy [private] |
Referenced by XrdOdcFinderTRG().
int XrdOdcFinderTRG::isRedir [private] |
Referenced by Configure(), and XrdOdcFinderTRG().
char* XrdOdcFinderTRG::Login [private] |
Referenced by Start(), XrdOdcFinderTRG(), and ~XrdOdcFinderTRG().
XrdSysMutex XrdOdcFinderTRG::myData [private] |
int XrdOdcFinderTRG::myPort [private] |
Referenced by XrdOdcFinderTRG().
XrdOucStream* XrdOdcFinderTRG::OLBp [private] |
Referenced by Added(), Hookup(), Removed(), Start(), XrdOdcFinderTRG(), and ~XrdOdcFinderTRG().
char* XrdOdcFinderTRG::OLBPath [private] |
Reimplemented from XrdOdcFinder.
Referenced by Configure(), Hookup(), Start(), and XrdOdcFinderTRG().
1.7.1