ARC SDK
|
TransferSharesConf describes the configuration of TransferShares. More...
#include <arc/data-staging/TransferShares.h>
Public Types | |
enum | ShareType { USER, VO, GROUP, ROLE, NONE } |
The criterion for assigning a share to a DTR. More... | |
Public Member Functions | |
TransferSharesConf (const std::string &type, const std::map< std::string, int > &ref_shares) | |
Construct a new TransferSharesConf with given share type and reference shares. More... | |
TransferSharesConf () | |
Construct a new TransferSharesConf with no defined shares or policy. More... | |
void | set_share_type (const std::string &type) |
Set the share type. More... | |
void | set_reference_share (const std::string &RefShare, int Priority) |
Add a reference share. More... | |
void | set_reference_shares (const std::map< std::string, int > &shares) |
Set reference shares. More... | |
bool | is_configured (const std::string &ShareToCheck) |
Returns true if the given share is a reference share. More... | |
int | get_basic_priority (const std::string &ShareToCheck) |
Get the priority of this share. More... | |
std::string | conf () const |
Return human-readable configuration of shares. More... | |
std::string | extract_share_info (DTR_ptr DTRToExtract) |
Get the name of the share the DTR should be assigned to and the proxy type. More... | |
TransferSharesConf describes the configuration of TransferShares.
It allows reference shares to be defined with certain priorities. An instance of this class is used when creating a TransferShares object.
The criterion for assigning a share to a DTR.
DataStaging::TransferSharesConf::TransferSharesConf | ( | const std::string & | type, |
const std::map< std::string, int > & | ref_shares | ||
) |
Construct a new TransferSharesConf with given share type and reference shares.
DataStaging::TransferSharesConf::TransferSharesConf | ( | ) |
Construct a new TransferSharesConf with no defined shares or policy.
std::string DataStaging::TransferSharesConf::conf | ( | ) | const |
Return human-readable configuration of shares.
std::string DataStaging::TransferSharesConf::extract_share_info | ( | DTR_ptr | DTRToExtract | ) |
Get the name of the share the DTR should be assigned to and the proxy type.
int DataStaging::TransferSharesConf::get_basic_priority | ( | const std::string & | ShareToCheck | ) |
Get the priority of this share.
bool DataStaging::TransferSharesConf::is_configured | ( | const std::string & | ShareToCheck | ) |
Returns true if the given share is a reference share.
void DataStaging::TransferSharesConf::set_reference_share | ( | const std::string & | RefShare, |
int | Priority | ||
) |
Add a reference share.
void DataStaging::TransferSharesConf::set_reference_shares | ( | const std::map< std::string, int > & | shares | ) |
Set reference shares.
void DataStaging::TransferSharesConf::set_share_type | ( | const std::string & | type | ) |
Set the share type.