![]() |
XRootD
|
Singleton access to URL to virtual redirector mapping. More...
#include <XrdClRedirectorRegistry.hh>
Public Member Functions | |
~RedirectorRegistry () | |
Destructor. More... | |
VirtualRedirector * | Get (const URL &url) const |
Get a virtual redirector associated with the given URL. More... | |
XRootDStatus | Register (const URL &url) |
Creates a new virtual redirector and registers it (async). More... | |
XRootDStatus | RegisterAndWait (const URL &url) |
Creates a new virtual redirector and registers it (sync). More... | |
void | Release (const URL &url) |
Release the virtual redirector associated with the given URL. More... | |
Static Public Member Functions | |
static RedirectorRegistry & | Instance () |
Returns reference to the single instance. More... | |
Singleton access to URL to virtual redirector mapping.
Definition at line 118 of file XrdClRedirectorRegistry.hh.
XrdCl::RedirectorRegistry::~RedirectorRegistry | ( | ) |
Destructor.
Definition at line 35 of file XrdClRedirectorRegistry.cc.
VirtualRedirector * XrdCl::RedirectorRegistry::Get | ( | const URL & | url | ) | const |
Get a virtual redirector associated with the given URL.
Definition at line 116 of file XrdClRedirectorRegistry.cc.
References XrdCl::URL::GetLocation().
Referenced by XrdCl::Utils::InferChecksumType(), XrdCl::CopyProcess::Prepare(), and XrdCl::PostMaster::Redirect().
|
static |
Returns reference to the single instance.
Definition at line 29 of file XrdClRedirectorRegistry.cc.
Referenced by XrdCl::FileStateHandler::~FileStateHandler(), XrdCl::Utils::InferChecksumType(), XrdCl::FileStateHandler::Open(), XrdCl::CopyProcess::Prepare(), XrdCl::PostMaster::Redirect(), XrdCl::MessageUtils::RedirectMessage(), and XrdCl::ThirdPartyCopyJob::Run().
XRootDStatus XrdCl::RedirectorRegistry::Register | ( | const URL & | url | ) |
Creates a new virtual redirector and registers it (async).
Definition at line 103 of file XrdClRedirectorRegistry.cc.
Referenced by XrdCl::MessageUtils::RedirectMessage().
XRootDStatus XrdCl::RedirectorRegistry::RegisterAndWait | ( | const URL & | url | ) |
Creates a new virtual redirector and registers it (sync).
Definition at line 108 of file XrdClRedirectorRegistry.cc.
References XrdCl::Status::IsOK(), and XrdCl::MessageUtils::WaitForStatus().
Referenced by XrdCl::CopyProcess::Prepare().
void XrdCl::RedirectorRegistry::Release | ( | const URL & | url | ) |
Release the virtual redirector associated with the given URL.
Definition at line 134 of file XrdClRedirectorRegistry.cc.
References XrdCl::URL::GetLocation().
Referenced by XrdCl::FileStateHandler::~FileStateHandler(), and XrdCl::FileStateHandler::Open().