#include <assert.h>
#include <iostream>
#include <algorithm>
#include <netdb.h>
#include "XrdCl/XrdClFile.hh"
#include "XrdCl/XrdClDefaultEnv.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_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 49 of file XrdRequestManager.cc.
Referenced by XrdAdaptor::RequestManager::handle(), XrdAdaptor::RequestManager::OpenHandler::HandleResponseWithHosts(), XrdAdaptor::RequestManager::initialize(), and XrdAdaptor::RequestManager::requestFailure().
#define XRD_ADAPTOR_LONG_OPEN_DELAY 2*60 |
Definition at line 31 of file XrdRequestManager.cc.
Referenced by XrdAdaptor::RequestManager::checkSourcesImpl(), and XrdAdaptor::RequestManager::handleOpen().
#define XRD_ADAPTOR_OPEN_PROBE_PERCENT 10 |
Definition at line 30 of file XrdRequestManager.cc.
Referenced by XrdAdaptor::RequestManager::checkSourcesImpl().
#define XRD_ADAPTOR_SHORT_OPEN_DELAY 5 |
Definition at line 22 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 32 of file XrdRequestManager.cc.
Referenced by XrdAdaptor::RequestManager::checkSourcesImpl().
#define XRD_CL_MAX_CHUNK 512*1024 |
Definition at line 20 of file XrdRequestManager.cc.
Referenced by consumeChunkBack(), consumeChunkFront(), XrdAdaptor::RequestManager::splitClientRequest(), and validateList().
|
static |
Definition at line 791 of file XrdRequestManager.cc.
References IOPosBuffer::data(), IOPosBuffer::offset(), IOPosBuffer::set_data(), IOPosBuffer::set_offset(), IOPosBuffer::set_size(), IOPosBuffer::size(), and XRD_CL_MAX_CHUNK.
Referenced by XrdAdaptor::RequestManager::splitClientRequest().
|
static |
Definition at line 742 of file XrdRequestManager.cc.
References IOPosBuffer::data(), prof2calltree::front, IOPosBuffer::offset(), IOPosBuffer::set_data(), IOPosBuffer::set_offset(), IOPosBuffer::set_size(), IOPosBuffer::size(), and XRD_CL_MAX_CHUNK.
Referenced by XrdAdaptor::RequestManager::splitClientRequest().
|
static |
Definition at line 83 of file XrdRequestManager.cc.
References edm::storage::StatisticsSenderService::getJobID(), XrdAdaptor::Source::isDCachePool(), nullHandler, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by XrdAdaptor::RequestManager::OpenHandler::HandleResponseWithHosts(), and XrdAdaptor::RequestManager::initialize().
long long timeDiffMS | ( | const timespec & | a, |
const timespec & | b | ||
) |
Definition at line 55 of file XrdRequestManager.cc.
References diffTreeTool::diff.
Referenced by XrdAdaptor::RequestManager::checkSources(), and XrdAdaptor::RequestManager::checkSourcesImpl().
|
static |
Definition at line 839 of file XrdRequestManager.cc.
References assert(), pileupDistInMC::total, and XRD_CL_MAX_CHUNK.
Referenced by XrdAdaptor::RequestManager::splitClientRequest().
SendMonitoringInfoHandler nullHandler |
Definition at line 79 of file XrdRequestManager.cc.
Referenced by SendMonitoringInfo().