CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
download::ShardingPolicy Class Referenceabstract

#include <sharding_policy.h>

Inheritance diagram for download::ShardingPolicy:
Collaboration diagram for download::ShardingPolicy:

Public Member Functions

 ShardingPolicy ()
virtual ~ShardingPolicy ()
virtual void AddProxy (const std::string &proxy)=0
virtual std::string GetNextProxy (const std::string *url, const std::string &current_proxy, size_t off)=0
virtual int32_t GetNumberOfProxiesOnline ()=0
virtual std::string GetProxyList ()=0
virtual void LogProxyList ()=0

Additional Inherited Members

- Private Member Functions inherited from SingleCopy
 SingleCopy ()

Detailed Description

Interface class for a sharding policy that returns the optimal proxy for each download request.

Definition at line 30 of file sharding_policy.h.

Constructor & Destructor Documentation

download::ShardingPolicy::ShardingPolicy ( )

Definition at line 32 of file sharding_policy.h.

virtual download::ShardingPolicy::~ShardingPolicy ( )

Definition at line 33 of file sharding_policy.h.

Member Function Documentation

virtual void download::ShardingPolicy::AddProxy ( const std::string &  proxy)
pure virtual
virtual std::string download::ShardingPolicy::GetNextProxy ( const std::string *  url,
const std::string &  current_proxy,
size_t  off 
pure virtual
virtual int32_t download::ShardingPolicy::GetNumberOfProxiesOnline ( )
pure virtual
virtual std::string download::ShardingPolicy::GetProxyList ( )
pure virtual
virtual void download::ShardingPolicy::LogProxyList ( )
pure virtual

The documentation for this class was generated from the following file: