xrootd
|
An interface for metadata redirectors. More...
#include <XrdClRedirectorRegistry.hh>
Public Member Functions | |
virtual | ~VirtualRedirector () |
Destructor. | |
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. | |
virtual std::string | GetTargetName () const =0 |
Gets the file name as specified in the metalink. | |
virtual std::string | GetCheckSum (const std::string &type) const =0 |
virtual std::vector< std::string > | GetSupportedCheckSums () const =0 |
virtual long long | GetSize () const =0 |
virtual const std::vector< std::string > & | GetReplicas ()=0 |
Returns a vector with replicas as given in the meatlink file. | |
virtual int | Count (Message &req) const =0 |
Count how many replicas do we have left to try for given request. | |
An interface for metadata redirectors.
|
inlinevirtual |
Destructor.
|
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.
|
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.
|
pure virtual |
Gets the file name as specified in the metalink.
Implemented in XrdCl::MetalinkRedirector.
|
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.
|
pure virtual |
Initializes the object with the content of the metalink file.
Implemented in XrdCl::MetalinkRedirector.