CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Macros | Functions | Variables
XrdSource.cc File Reference
#include <memory>
#include <thread>
#include <chrono>
#include <atomic>
#include <iostream>
#include <cassert>
#include <netdb.h>
#include "XrdCl/XrdClFile.hh"
#include "FWCore/Utilities/interface/EDMException.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "XrdSource.h"
#include "XrdRequest.h"
#include "QualityMetric.h"
#include "XrdStatistics.h"

Go to the source code of this file.

Classes

class  DelayedClose
 
class  QueryAttrHandler
 
struct  QueryAttrHandler::QueryAttrState
 

Macros

#define _GLIBCXX_USE_NANOSLEEP
 
#define MAX_REQUEST   256 * 1024
 
#define XRD_CL_MAX_CHUNK   512 * 1024
 

Functions

 assert (m_qm.get())
 
 assert (m_fh.get())
 
 if (getDomain(m_id, domain_id))
 
 if (statsService)
 
 m_exclude (exclude)
 
 m_fh (std::move(fh))
 
 m_id ("(unknown)")
 
 setXrootdSite ()
 
static void validateList (const XrdCl::ChunkList &cl)
 

Variables

std::string domain_id
 
 else
 
std::atomic< int > g_delayCount {0}
 
 m_prettyid = m_id + " (unknown site)"
 
XrdSiteStatisticsInformationstatsService = XrdSiteStatisticsInformation::getInstance()
 

Macro Definition Documentation

#define _GLIBCXX_USE_NANOSLEEP

Definition at line 3 of file XrdSource.cc.

#define MAX_REQUEST   256 * 1024

Definition at line 23 of file XrdSource.cc.

#define XRD_CL_MAX_CHUNK   512 * 1024

Definition at line 24 of file XrdSource.cc.

Referenced by validateList().

Function Documentation

assert ( m_qm.  get())
assert ( m_fh.  get())
if ( getDomain(m_id, domain_id )

Definition at line 205 of file XrdSource.cc.

References domain_id.

205  {
206  m_site = domain_id;
207  } else {
std::string domain_id
Definition: XrdSource.cc:204
if ( statsService  )

Definition at line 214 of file XrdSource.cc.

References XrdAdaptor::XrdSiteStatisticsInformation::getStatisticsForSite().

214  {
215  m_stats = statsService->getStatisticsForSite(m_site);
216  }
std::shared_ptr< XrdSiteStatistics > getStatisticsForSite(std::string const &site)
XrdSiteStatisticsInformation * statsService
Definition: XrdSource.cc:213
m_exclude ( exclude  )
m_fh ( std::  movefh)
m_id ( "(unknown)"  )
setXrootdSite ( )
static void validateList ( const XrdCl::ChunkList &  cl)
static

Definition at line 370 of file XrdSource.cc.

References cms::cuda::assert(), and XRD_CL_MAX_CHUNK.

Referenced by XrdAdaptor::Source::handle().

370  {
371  off_t last_offset = -1;
372  for (const auto &ci : cl) {
373  assert(static_cast<off_t>(ci.offset) > last_offset);
374  last_offset = ci.offset;
375  assert(ci.length <= XRD_CL_MAX_CHUNK);
376  assert(ci.offset < 0x1ffffffffff);
377  assert(ci.offset > 0);
378  }
379  assert(cl.size() <= 1024);
380 }
assert(be >=bs)
tuple cl
Definition: haddnano.py:49
#define XRD_CL_MAX_CHUNK
Definition: XrdSource.cc:24

Variable Documentation

std::string domain_id

Definition at line 204 of file XrdSource.cc.

Referenced by if().

else
Initial value:
{
m_site = "Unknown (" + m_id + ")"
m_id("(unknown)")

Definition at line 207 of file XrdSource.cc.

std::atomic<int> g_delayCount {0}

Definition at line 32 of file XrdSource.cc.

m_prettyid = m_id + " (unknown site)"

Definition at line 203 of file XrdSource.cc.

XrdSiteStatisticsInformation* statsService = XrdSiteStatisticsInformation::getInstance()