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. | |
TransferSharesConf () | |
Construct a new TransferSharesConf with no defined shares or policy. | |
void | set_share_type (const std::string &type) |
Set the share type. | |
void | set_reference_share (const std::string &RefShare, int Priority) |
Add a reference share. | |
void | set_reference_shares (const std::map< std::string, int > &shares) |
Set reference shares. | |
bool | is_configured (const std::string &ShareToCheck) |
Returns true if the given share is a reference share. | |
int | get_basic_priority (const std::string &ShareToCheck) |
Get the priority of this share. | |
std::string | conf () const |
Return human-readable configuration of shares. | |
std::string | extract_share_info (DTR_ptr DTRToExtract) |
Get the name of the share the DTR should be assigned to and the proxy type. | |
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.