#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) |
#define GET_CLOCK_MONOTONIC | ( | ts | ) | clock_gettime(CLOCK_MONOTONIC, &ts); |
Definition at line 54 of file XrdRequestManager.cc.
Referenced by XrdAdaptor::RequestManager::handle(), XrdAdaptor::RequestManager::handleOpen(), XrdAdaptor::RequestManager::OpenHandler::HandleResponseWithHosts(), XrdAdaptor::RequestManager::initialize(), and XrdAdaptor::RequestManager::requestFailure().
#define XRD_ADAPTOR_CHUNK_THRESHOLD 1000 |
Definition at line 38 of file XrdRequestManager.cc.
Referenced by consumeChunkBack(), consumeChunkFront(), and XrdAdaptor::RequestManager::splitClientRequest().
#define XRD_ADAPTOR_LONG_OPEN_DELAY 2 * 60 |
Definition at line 34 of file XrdRequestManager.cc.
Referenced by XrdAdaptor::RequestManager::checkSourcesImpl(), and XrdAdaptor::RequestManager::handleOpen().
#define XRD_ADAPTOR_OPEN_PROBE_PERCENT 10 |
Definition at line 33 of file XrdRequestManager.cc.
Referenced by XrdAdaptor::RequestManager::checkSourcesImpl().
#define XRD_ADAPTOR_SHORT_OPEN_DELAY 5 |
Definition at line 25 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 35 of file XrdRequestManager.cc.
Referenced by XrdAdaptor::RequestManager::checkSourcesImpl().
#define XRD_CL_MAX_CHUNK 512 * 1024 |
Definition at line 23 of file XrdRequestManager.cc.
Referenced by consumeChunkBack(), consumeChunkFront(), XrdAdaptor::RequestManager::splitClientRequest(), and validateList().
|
static |
Definition at line 853 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 814 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 95 of file XrdRequestManager.cc.
References edm::storage::StatisticsSenderService::getJobID(), XrdAdaptor::Source::isDCachePool(), 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 59 of file XrdRequestManager.cc.
References diffTreeTool::diff.
Referenced by XrdAdaptor::RequestManager::checkSources(), and XrdAdaptor::RequestManager::checkSourcesImpl().
|
static |
Definition at line 892 of file XrdRequestManager.cc.
References pileupDistInMC::total, and XRD_CL_MAX_CHUNK.
Referenced by XrdAdaptor::RequestManager::splitClientRequest().