xrootd
Loading...
Searching...
No Matches
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.
 
std::shared_ptr< SIDManagerGetSIDMgr (const URL &url)
 
void Recycle (SIDManager *mgr)
 

Static Public Member Functions

static SIDMgrPoolInstance ()
 

Private Member Functions

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

Private Attributes

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

Detailed Description

Pool of SID manager objects.

Constructor & Destructor Documentation

◆ ~SIDMgrPool()

XrdCl::SIDMgrPool::~SIDMgrPool ( )
inline

Destructor.

◆ SIDMgrPool() [1/3]

XrdCl::SIDMgrPool::SIDMgrPool ( )
inlineprivate

Constructor.

Referenced by Instance().

◆ SIDMgrPool() [2/3]

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

Deleted constructors.

◆ SIDMgrPool() [3/3]

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

Member Function Documentation

◆ GetSIDMgr()

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

◆ Instance()

static SIDMgrPool & XrdCl::SIDMgrPool::Instance ( )
inlinestatic
Returns
: instance of SIDMgrPool

References SIDMgrPool().

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

◆ operator=() [1/2]

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

Deleted assigment operators.

◆ operator=() [2/2]

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

◆ Recycle()

void XrdCl::SIDMgrPool::Recycle ( SIDManager mgr)
Parameters
mgr: the SIDManager object to be recycled

Member Data Documentation

◆ mtx

XrdSysMutex XrdCl::SIDMgrPool::mtx
private

◆ pool

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

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