Public Member Functions | |
virtual bool | check (const std::string &proto, const std::string &path, const AuxSettings &aux, IOOffset *size=0) const override |
virtual std::unique_ptr< Storage > | open (const std::string &proto, const std::string &path, int mode, AuxSettings const &aux) const override |
virtual 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 68 of file DCacheStorageMaker.cc.
References normalise(), setTimeout(), findQualityFiles::size, AlCaHLTBitMon_QueryRunRegistry::string, and StorageMaker::AuxSettings::timeout.
|
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 15 of file DCacheStorageMaker.cc.
References AlCaHLTBitMon_ParallelJobs::p.
Referenced by check(), open(), and stagein().
|
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 32 of file DCacheStorageMaker.cc.
References StorageFactory::CACHE_HINT_STORAGE, StorageFactory::cacheHint(), f, mergeVDriftHistosByStation::file, StorageFactory::get(), alignBH_cfg::mode, normalise(), IOFlags::OpenUnbuffered, StorageFactory::READ_HINT_UNBUFFERED, StorageFactory::readHint(), setTimeout(), AlCaHLTBitMon_QueryRunRegistry::string, StorageMaker::AuxSettings::timeout, and StorageFactory::wrapNonLocalFile().
|
inlineprivate |
Definition at line 92 of file DCacheStorageMaker.cc.
|
inlineoverridevirtual |
Reimplemented from StorageMaker.
Definition at line 52 of file DCacheStorageMaker.cc.
References cms::Exception::addContext(), normalise(), setTimeout(), AlCaHLTBitMon_QueryRunRegistry::string, and StorageMaker::AuxSettings::timeout.