#include <cassert>
#include <iostream>
#include <algorithm>
#include <netdb.h>
#include "XrdCl/XrdClFile.hh"
#include "XrdCl/XrdClDefaultEnv.hh"
#include "XrdCl/XrdClFileSystem.hh"
#include "FWCore/Utilities/interface/CPUTimer.h"
#include "FWCore/Utilities/interface/EDMException.h"
#include "FWCore/Utilities/interface/Likely.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "FWCore/Utilities/interface/thread_safety_macros.h"
#include "Utilities/StorageFactory/interface/StatisticsSenderService.h"
#include "XrdStatistics.h"
#include "Utilities/XrdAdaptor/src/XrdRequestManager.h"
#include "Utilities/XrdAdaptor/src/XrdHostHandler.hh"
Go to the source code of this file.
Classes | |
class | SendMonitoringInfoHandler |
Macros | |
#define | GET_CLOCK_MONOTONIC(ts) clock_gettime(CLOCK_MONOTONIC, &ts); |
#define | XRD_ADAPTOR_CHUNK_THRESHOLD 1000 |
#define | XRD_ADAPTOR_LONG_OPEN_DELAY 2 * 60 |
#define | XRD_ADAPTOR_OPEN_PROBE_PERCENT 10 |
#define | XRD_ADAPTOR_SHORT_OPEN_DELAY 5 |
#define | XRD_ADAPTOR_SOURCE_QUALITY_FUDGE 100 |
#define | XRD_CL_MAX_CHUNK 512 * 1024 |
Functions | |
static void | consumeChunkBack (size_t front, std::vector< IOPosBuffer > &input, std::vector< IOPosBuffer > &output, IOSize chunksize) |
static void | consumeChunkFront (size_t &front, std::vector< IOPosBuffer > &input, std::vector< IOPosBuffer > &output, IOSize chunksize) |
static void | SendMonitoringInfo (XrdCl::File &file) |
long long | timeDiffMS (const timespec &a, const timespec &b) |
static IOSize | validateList (const std::vector< IOPosBuffer > req) |
Variables | |
SendMonitoringInfoHandler | nullHandler |
#define GET_CLOCK_MONOTONIC | ( | ts | ) | clock_gettime(CLOCK_MONOTONIC, &ts); |
Definition at line 54 of file XrdRequestManager.cc.
#define XRD_ADAPTOR_CHUNK_THRESHOLD 1000 |
Definition at line 38 of file XrdRequestManager.cc.
#define XRD_ADAPTOR_LONG_OPEN_DELAY 2 * 60 |
Definition at line 34 of file XrdRequestManager.cc.
#define XRD_ADAPTOR_OPEN_PROBE_PERCENT 10 |
Definition at line 33 of file XrdRequestManager.cc.
#define XRD_ADAPTOR_SHORT_OPEN_DELAY 5 |
Definition at line 25 of file XrdRequestManager.cc.
#define XRD_ADAPTOR_SOURCE_QUALITY_FUDGE 100 |
Definition at line 35 of file XrdRequestManager.cc.
#define XRD_CL_MAX_CHUNK 512 * 1024 |
Definition at line 23 of file XrdRequestManager.cc.
|
static |
Definition at line 836 of file XrdRequestManager.cc.
References IOPosBuffer::data(), input, IOPosBuffer::offset(), convertSQLitetoXML_cfg::output, IOPosBuffer::set_data(), IOPosBuffer::set_offset(), IOPosBuffer::set_size(), IOPosBuffer::size(), XRD_ADAPTOR_CHUNK_THRESHOLD, and XRD_CL_MAX_CHUNK.
Referenced by XrdAdaptor::RequestManager::splitClientRequest().
|
static |
Definition at line 797 of file XrdRequestManager.cc.
References IOPosBuffer::data(), input, IOPosBuffer::offset(), convertSQLitetoXML_cfg::output, IOPosBuffer::set_data(), IOPosBuffer::set_offset(), IOPosBuffer::set_size(), IOPosBuffer::size(), XRD_ADAPTOR_CHUNK_THRESHOLD, and XRD_CL_MAX_CHUNK.
Referenced by XrdAdaptor::RequestManager::splitClientRequest().
|
static |
Definition at line 85 of file XrdRequestManager.cc.
References FrontierConditions_GlobalTag_cff::file, edm::storage::StatisticsSenderService::getJobID(), XrdAdaptor::Source::isDCachePool(), nullHandler, AlCaHLTBitMon_QueryRunRegistry::string, hcal_runs::URL, and relmon_authenticated_wget::url.
Referenced by XrdAdaptor::RequestManager::OpenHandler::HandleResponseWithHosts(), and XrdAdaptor::RequestManager::initialize().
long long timeDiffMS | ( | const timespec & | a, |
const timespec & | b | ||
) |
Definition at line 59 of file XrdRequestManager.cc.
References a, b, and change_name::diff.
Referenced by XrdAdaptor::RequestManager::checkSources(), and XrdAdaptor::RequestManager::checkSourcesImpl().
|
static |
Definition at line 875 of file XrdRequestManager.cc.
References cms::cuda::assert(), dqmMemoryStats::total, and XRD_CL_MAX_CHUNK.
Referenced by XrdAdaptor::RequestManager::splitClientRequest().
SendMonitoringInfoHandler nullHandler |
Definition at line 83 of file XrdRequestManager.cc.
Referenced by SendMonitoringInfo().