Public Member Functions | |
bool | check (const std::string &proto, const std::string &path, const AuxSettings &aux, IOOffset *size=nullptr) const override |
std::unique_ptr< Storage > | open (const std::string &proto, const std::string &path, int mode, AuxSettings const &aux) const override |
void | stagein (const std::string &proto, const std::string &path, const AuxSettings &aux) const override |
Public Member Functions inherited from StorageMaker | |
StorageMaker ()=default | |
virtual | ~StorageMaker ()=default |
Private Member Functions | |
void | setTimeout (unsigned int timeout) const |
Static Private Member Functions | |
static std::string | normalise (const std::string &proto, const std::string &path) |
Definition at line 9 of file DCacheStorageMaker.cc.
|
inlineoverridevirtual |
Reimplemented from StorageMaker.
Definition at line 59 of file DCacheStorageMaker.cc.
References printConversionInfo::aux, visDQMUpload::buf, normalise(), castor_dqm_sourceclient_file_cfg::path, setTimeout(), findQualityFiles::size, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inlinestaticprivate |
Return appropriate path for use with dcap library. If the path is in the URL form ([gsi]dcap://host:port/path), return the full URL as it is. If the path is /pnfs form (dcap:/pnfs/path), return only the path part, unless the protocol is 'gsidcap', in which case return the whole thing.
Definition at line 14 of file DCacheStorageMaker.cc.
References AlCaHLTBitMon_ParallelJobs::p, and castor_dqm_sourceclient_file_cfg::path.
|
inlineoverridevirtual |
Open a storage object for the given URL (protocol + path), using the mode bits. No temporary files are downloaded.
Implements StorageMaker.
Definition at line 29 of file DCacheStorageMaker.cc.
References printConversionInfo::aux, StorageFactory::CACHE_HINT_STORAGE, f, geometryDiff::file, StorageFactory::get(), ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, eostools::move(), normalise(), IOFlags::OpenUnbuffered, castor_dqm_sourceclient_file_cfg::path, StorageFactory::READ_HINT_UNBUFFERED, setTimeout(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
inlineprivate |
|
inlineoverridevirtual |
Reimplemented from StorageMaker.
Definition at line 47 of file DCacheStorageMaker.cc.
References cms::Exception::addContext(), printConversionInfo::aux, normalise(), castor_dqm_sourceclient_file_cfg::path, setTimeout(), and AlCaHLTBitMon_QueryRunRegistry::string.