Handle XRootD stream IDs. More...
#include <XrdClSIDManager.hh>
Public Member Functions | |
| ~SIDManager () | |
| Destructor. | |
| Status | AllocateSID (uint8_t sid[2]) |
| uint16_t | GetNumberOfAllocatedSIDs () const |
| Number of allocated streams. | |
| bool | IsAnySIDOldAs (const time_t tlim) const |
| Check if any SID was allocated at or before a given time. | |
| bool | IsTimedOut (uint8_t sid[2]) |
| Check if a SID is timed out. | |
| uint32_t | NumberOfTimedOutSIDs () const |
| Number of timeout sids. | |
| void | ReleaseAllTimedOut () |
| Release all timed out SIDs. | |
| void | ReleaseSID (uint8_t sid[2]) |
| Release the SID that is no longer needed. | |
| void | ReleaseTimedOut (uint8_t sid[2]) |
| Release a timed out SID. | |
| void | TimeOutSID (uint8_t sid[2]) |
| Register a SID of a request that timed out. | |
Friends | |
| class | SIDMgrPool |
Handle XRootD stream IDs.
Definition at line 42 of file XrdClSIDManager.hh.
|
inline |
| Status XrdCl::SIDManager::AllocateSID | ( | uint8_t | sid[2] | ) |
Allocate a SID
| sid | a two byte array where the allocated SID should be stored |
Definition at line 28 of file XrdClSIDManager.cc.
References XrdCl::errNoMoreFreeSIDs, and XrdCl::stError.
| uint16_t XrdCl::SIDManager::GetNumberOfAllocatedSIDs | ( | ) | const |
Number of allocated streams.
Definition at line 135 of file XrdClSIDManager.cc.
| bool XrdCl::SIDManager::IsAnySIDOldAs | ( | const time_t | tlim | ) | const |
Check if any SID was allocated at or before a given time.
Definition at line 84 of file XrdClSIDManager.cc.
| bool XrdCl::SIDManager::IsTimedOut | ( | uint8_t | sid[2] | ) |
Check if a SID is timed out.
Definition at line 97 of file XrdClSIDManager.cc.
|
inline |
Number of timeout sids.
Definition at line 109 of file XrdClSIDManager.hh.
| void XrdCl::SIDManager::ReleaseAllTimedOut | ( | ) |
Release all timed out SIDs.
Definition at line 123 of file XrdClSIDManager.cc.
| void XrdCl::SIDManager::ReleaseSID | ( | uint8_t | sid[2] | ) |
Release the SID that is no longer needed.
Definition at line 60 of file XrdClSIDManager.cc.
| void XrdCl::SIDManager::ReleaseTimedOut | ( | uint8_t | sid[2] | ) |
Release a timed out SID.
Definition at line 111 of file XrdClSIDManager.cc.
| void XrdCl::SIDManager::TimeOutSID | ( | uint8_t | sid[2] | ) |
Register a SID of a request that timed out.
Definition at line 72 of file XrdClSIDManager.cc.
|
friend |