![]() |
XRootD
|
An interface for metadata redirectors. More...
#include <XrdClRedirectorRegistry.hh>
Public Member Functions | |
virtual | ~VirtualRedirector () |
Destructor. More... | |
virtual int | Count (Message &req) const =0 |
Count how many replicas do we have left to try for given request. More... | |
virtual std::string | GetCheckSum (const std::string &type) const =0 |
virtual const std::vector< std::string > & | GetReplicas ()=0 |
Returns a vector with replicas as given in the meatlink file. More... | |
virtual long long | GetSize () const =0 |
virtual std::vector< std::string > | GetSupportedCheckSums () const =0 |
virtual std::string | GetTargetName () const =0 |
Gets the file name as specified in the metalink. More... | |
virtual XRootDStatus | HandleRequest (const Message *msg, MsgHandler *handler)=0 |
virtual XRootDStatus | Load (ResponseHandler *userHandler)=0 |
Initializes the object with the content of the metalink file. More... | |
An interface for metadata redirectors.
Definition at line 59 of file XrdClRedirectorRegistry.hh.
|
inlinevirtual |
|
pure virtual |
Count how many replicas do we have left to try for given request.
Implemented in XrdCl::MetalinkRedirector.
|
pure virtual |
Returns the checksum of the given type if specified in the metalink file, or an empty string otherwise
Implemented in XrdCl::MetalinkRedirector.
Referenced by XrdCl::ThirdPartyCopyJob::Run().
|
pure virtual |
Returns a vector with replicas as given in the meatlink file.
Implemented in XrdCl::MetalinkRedirector.
|
pure virtual |
Returns the file size as specified in the metalink, or a negative number if size was not specified
Implemented in XrdCl::MetalinkRedirector.
|
pure virtual |
Returns the default checksum type (the first one given in the metalink), if no checksum is available returns an empty string
Implemented in XrdCl::MetalinkRedirector.
Referenced by XrdCl::Utils::InferChecksumType().
|
pure virtual |
Gets the file name as specified in the metalink.
Implemented in XrdCl::MetalinkRedirector.
Referenced by XrdCl::CopyProcess::Prepare().
|
pure virtual |
Creates an instant redirect response for the given message or an error response if there are no more replicas to try. The virtual response is being handled by the given handler in the thread-pool.
Implemented in XrdCl::MetalinkRedirector.
Referenced by XrdCl::PostMaster::Redirect().
|
pure virtual |
Initializes the object with the content of the metalink file.
Implemented in XrdCl::MetalinkRedirector.