XrdCl::VirtualRedirector Class Reference

An interface for metadata redirectors. More...

#include <XrdClRedirectorRegistry.hh>

Inheritance diagram for XrdCl::VirtualRedirector:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~VirtualRedirector ()
 Destructor.
virtual XRootDStatus HandleRequest (const Message *msg, IncomingMsgHandler *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 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.

Detailed Description

An interface for metadata redirectors.


Constructor & Destructor Documentation

virtual XrdCl::VirtualRedirector::~VirtualRedirector (  )  [inline, virtual]

Destructor.


Member Function Documentation

virtual int XrdCl::VirtualRedirector::Count ( Message req  )  const [pure virtual]

Count how many replicas do we have left to try for given request.

Implemented in XrdCl::MetalinkRedirector.

virtual std::string XrdCl::VirtualRedirector::GetCheckSum ( const std::string &  type  )  const [pure virtual]

Returns the checksum of the given type if specified in the metalink file, or an empty string otherwise

Implemented in XrdCl::MetalinkRedirector.

virtual const std::vector<std::string>& XrdCl::VirtualRedirector::GetReplicas (  )  [pure virtual]

Returns a vector with replicas as given in the meatlink file.

Implemented in XrdCl::MetalinkRedirector.

virtual long long XrdCl::VirtualRedirector::GetSize (  )  const [pure virtual]

Returns the file size as specified in the metalink, or a negative number if size was not specified

Implemented in XrdCl::MetalinkRedirector.

virtual std::string XrdCl::VirtualRedirector::GetTargetName (  )  const [pure virtual]

Gets the file name as specified in the metalink.

Implemented in XrdCl::MetalinkRedirector.

virtual XRootDStatus XrdCl::VirtualRedirector::HandleRequest ( const Message msg,
IncomingMsgHandler handler 
) [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.

virtual XRootDStatus XrdCl::VirtualRedirector::Load ( ResponseHandler userHandler  )  [pure virtual]

Initializes the object with the content of the metalink file.

Implemented in XrdCl::MetalinkRedirector.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 23 Mar 2020 for xrootd by  doxygen 1.6.1