xrootd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
XrdCl::SIDMgrPool Class Reference

Pool of SID manager objects. More...

#include <XrdClSIDManager.hh>

Collaboration diagram for XrdCl::SIDMgrPool:
Collaboration graph
[legend]

Classes

struct  RecycleSidMgr
 A functional object for handling the deletion of SIDManager objects. More...
 

Public Member Functions

 ~SIDMgrPool ()
 Destructor. More...
 
std::shared_ptr< SIDManagerGetSIDMgr (const URL &url)
 
void Recycle (SIDManager *mgr)
 

Static Public Member Functions

static SIDMgrPoolInstance ()
 

Private Member Functions

 SIDMgrPool ()
 Constructor. More...
 
 SIDMgrPool (const SIDMgrPool &)=delete
 Deleted constructors. More...
 
 SIDMgrPool (SIDMgrPool &&)=delete
 
SIDMgrPooloperator= (const SIDMgrPool &)=delete
 Deleted assigment operators. More...
 
SIDMgrPooloperator= (SIDMgrPool &&)=delete
 

Private Attributes

XrdSysMutex mtx
 
std::unordered_map
< std::string, SIDManager * > 
pool
 

Detailed Description

Pool of SID manager objects.

Constructor & Destructor Documentation

XrdCl::SIDMgrPool::~SIDMgrPool ( )
inline

Destructor.

XrdCl::SIDMgrPool::SIDMgrPool ( )
inlineprivate

Constructor.

Referenced by Instance().

XrdCl::SIDMgrPool::SIDMgrPool ( const SIDMgrPool )
privatedelete

Deleted constructors.

XrdCl::SIDMgrPool::SIDMgrPool ( SIDMgrPool &&  )
privatedelete

Member Function Documentation

std::shared_ptr<SIDManager> XrdCl::SIDMgrPool::GetSIDMgr ( const URL url)
Parameters
url: URL for which we need a SIDManager
Returns
: a shared pointer to SIDManager object, the pointer has
static SIDMgrPool& XrdCl::SIDMgrPool::Instance ( )
inlinestatic
Returns
: instance of SIDMgrPool

References SIDMgrPool().

Referenced by XrdCl::SIDMgrPool::RecycleSidMgr::operator()().

SIDMgrPool& XrdCl::SIDMgrPool::operator= ( const SIDMgrPool )
privatedelete

Deleted assigment operators.

SIDMgrPool& XrdCl::SIDMgrPool::operator= ( SIDMgrPool &&  )
privatedelete
void XrdCl::SIDMgrPool::Recycle ( SIDManager mgr)
Parameters
mgr: the SIDManager object to be recycled

Referenced by XrdCl::SIDMgrPool::RecycleSidMgr::operator()().

Member Data Documentation

XrdSysMutex XrdCl::SIDMgrPool::mtx
private
std::unordered_map<std::string, SIDManager*> XrdCl::SIDMgrPool::pool
private

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