Handle XRootD stream IDs.
More...
#include <XrdClSIDManager.hh>
Handle XRootD stream IDs.
◆ SIDManager()
XrdCl::SIDManager::SIDManager |
( |
| ) |
|
|
inlineprivate |
◆ ~SIDManager()
XrdCl::SIDManager::~SIDManager |
( |
| ) |
|
|
inline |
◆ AllocateSID()
Status XrdCl::SIDManager::AllocateSID |
( |
uint8_t |
sid[2] | ) |
|
Allocate a SID
- Parameters
-
sid | a two byte array where the allocated SID should be stored |
- Returns
- stOK on success, stError on error
◆ GetNumberOfAllocatedSIDs()
uint16_t XrdCl::SIDManager::GetNumberOfAllocatedSIDs |
( |
| ) |
const |
Number of allocated streams.
◆ IsAnySIDOldAs()
bool XrdCl::SIDManager::IsAnySIDOldAs |
( |
const time_t |
tlim | ) |
const |
Check if any SID was allocated at or before a given time.
◆ IsTimedOut()
bool XrdCl::SIDManager::IsTimedOut |
( |
uint8_t |
sid[2] | ) |
|
Check if a SID is timed out.
◆ NumberOfTimedOutSIDs()
uint32_t XrdCl::SIDManager::NumberOfTimedOutSIDs |
( |
| ) |
const |
|
inline |
◆ ReleaseAllTimedOut()
void XrdCl::SIDManager::ReleaseAllTimedOut |
( |
| ) |
|
Release all timed out SIDs.
◆ ReleaseSID()
void XrdCl::SIDManager::ReleaseSID |
( |
uint8_t |
sid[2] | ) |
|
Release the SID that is no longer needed.
◆ ReleaseTimedOut()
void XrdCl::SIDManager::ReleaseTimedOut |
( |
uint8_t |
sid[2] | ) |
|
◆ TimeOutSID()
void XrdCl::SIDManager::TimeOutSID |
( |
uint8_t |
sid[2] | ) |
|
Register a SID of a request that timed out.
◆ SIDMgrPool
◆ pAllocTime
std::unordered_map<uint16_t, time_t> XrdCl::SIDManager::pAllocTime |
|
private |
◆ pFreeSIDs
std::list<uint16_t> XrdCl::SIDManager::pFreeSIDs |
|
private |
◆ pMutex
◆ pRefCount
size_t XrdCl::SIDManager::pRefCount |
|
mutableprivate |
◆ pSIDCeiling
uint16_t XrdCl::SIDManager::pSIDCeiling |
|
private |
◆ pTimeOutSIDs
std::set<uint16_t> XrdCl::SIDManager::pTimeOutSIDs |
|
private |
The documentation for this class was generated from the following file: