#include <assert.h>
#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/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ServiceRegistry/interface/Service.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 53 of file XrdRequestManager.cc.
Referenced by XrdAdaptor::RequestManager::handle(), XrdAdaptor::RequestManager::OpenHandler::HandleResponseWithHosts(), XrdAdaptor::RequestManager::initialize(), and XrdAdaptor::RequestManager::requestFailure().
#define XRD_ADAPTOR_CHUNK_THRESHOLD 1000 |
Definition at line 36 of file XrdRequestManager.cc.
Referenced by consumeChunkBack(), consumeChunkFront(), and XrdAdaptor::RequestManager::splitClientRequest().
#define XRD_ADAPTOR_LONG_OPEN_DELAY 2*60 |
Definition at line 32 of file XrdRequestManager.cc.
Referenced by XrdAdaptor::RequestManager::checkSourcesImpl(), and XrdAdaptor::RequestManager::handleOpen().
#define XRD_ADAPTOR_OPEN_PROBE_PERCENT 10 |
Definition at line 31 of file XrdRequestManager.cc.
Referenced by XrdAdaptor::RequestManager::checkSourcesImpl().
#define XRD_ADAPTOR_SHORT_OPEN_DELAY 5 |
Definition at line 23 of file XrdRequestManager.cc.
Referenced by XrdAdaptor::RequestManager::checkSourcesImpl(), XrdAdaptor::RequestManager::handleOpen(), and XrdAdaptor::RequestManager::initialize().
#define XRD_ADAPTOR_SOURCE_QUALITY_FUDGE 100 |
Definition at line 33 of file XrdRequestManager.cc.
Referenced by XrdAdaptor::RequestManager::checkSourcesImpl().
#define XRD_CL_MAX_CHUNK 512*1024 |
Definition at line 21 of file XrdRequestManager.cc.
Referenced by consumeChunkBack(), consumeChunkFront(), XrdAdaptor::RequestManager::splitClientRequest(), and validateList().
|
static |
Definition at line 937 of file XrdRequestManager.cc.
References IOPosBuffer::data(), IOPosBuffer::offset(), 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 888 of file XrdRequestManager.cc.
References IOPosBuffer::data(), IOPosBuffer::offset(), 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 91 of file XrdRequestManager.cc.
References edm::storage::StatisticsSenderService::getJobID(), XrdAdaptor::Source::isDCachePool(), nullHandler, AlCaHLTBitMon_QueryRunRegistry::string, rrClient::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 mps_update::diff.
Referenced by XrdAdaptor::RequestManager::checkSources(), and XrdAdaptor::RequestManager::checkSourcesImpl().
|
static |
Definition at line 985 of file XrdRequestManager.cc.
References assert(), pileupDistInMC::total, and XRD_CL_MAX_CHUNK.
Referenced by XrdAdaptor::RequestManager::splitClientRequest().
SendMonitoringInfoHandler nullHandler |
Definition at line 87 of file XrdRequestManager.cc.
Referenced by SendMonitoringInfo().