ARC SDK
Public Types | Public Member Functions
DataStaging::TransferSharesConf Class Reference

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.
 

Detailed Description

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.

Member Enumeration Documentation

The criterion for assigning a share to a DTR.

Enumerator
USER 

Shares are defined per DN of the user's proxy.

VO 

Shares are defined per VOMS VO of the user's proxy.

GROUP 

Shares are defined per VOMS group of the user's proxy.

ROLE 

Shares are defined per VOMS role of the user's proxy.

NONE 

No share criterion - all DTRs will be assigned to a single share.


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