LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "FileServiceProxy.h"
Classes | |
struct | FileEntity |
Public Member Functions | |
FileServiceProxy (std::vector< std::string > &&fileNames, size_t attempts=5, double waitBetweenAttempts=5.0) | |
~FileServiceProxy () | |
std::string | next () |
void | finish () |
Private Member Functions | |
std::string | obtainURI_ () |
std::string | obtainFileFromURI_ () |
Private Attributes | |
ServiceHandle< CatalogInterface > | ci_ {} |
ServiceHandle< FileTransfer > | ft_ {} |
struct art::detail::FileServiceProxy::FileEntity | currentItem_ |
size_t const | attemptsPerPhase_ |
double const | waitBetweenAttempts_ |
Definition at line 17 of file FileServiceProxy.h.
|
explicit |
Definition at line 4 of file FileServiceProxy.cc.
References attemptsPerPhase_, ci_, and waitBetweenAttempts_.
art::detail::FileServiceProxy::~FileServiceProxy | ( | ) |
Definition at line 15 of file FileServiceProxy.cc.
References ci_, currentItem_, art::detail::FileServiceProxy::FileEntity::ftStatus, art::INCOMPLETE, art::SKIPPED, art::SUCCESS, and art::detail::FileServiceProxy::FileEntity::uri.
void art::detail::FileServiceProxy::finish | ( | ) |
Definition at line 27 of file FileServiceProxy.cc.
References attemptsPerPhase_, ci_, art::CONSUMED, currentItem_, art::detail::FileServiceProxy::FileEntity::ftStatus, art::SUCCESS, and art::detail::FileServiceProxy::FileEntity::uri.
Referenced by next().
|
inline |
|
private |
Definition at line 70 of file FileServiceProxy.cc.
References attemptsPerPhase_, art::detail::FileServiceProxy::FileEntity::attemptsRemaining, art::errors::CatalogServiceError, ci_, currentItem_, ft_, art::detail::FileServiceProxy::FileEntity::ftStatus, art::PENDING, art::detail::FileServiceProxy::FileEntity::pfn, art::SUCCESS, art::TRANSFERRED, art::translateFileTransferStatus(), art::detail::FDS::UNAVAILABLE, art::detail::FileServiceProxy::FileEntity::uri, art::detail::FileServiceProxy::FileEntity::uriStatus, and waitBetweenAttempts_.
Referenced by obtainURI_().
|
private |
Definition at line 37 of file FileServiceProxy.cc.
References attemptsPerPhase_, art::detail::FileServiceProxy::FileEntity::attemptsRemaining, art::errors::CatalogServiceError, ci_, currentItem_, art::NO_MORE_FILES, obtainFileFromURI_(), art::PENDING, art::SUCCESS, art::translateFileDeliveryStatus(), art::detail::FDS::TRY_AGAIN_LATER, art::detail::FDS::UNAVAILABLE, art::detail::FileServiceProxy::FileEntity::uri, art::detail::FileServiceProxy::FileEntity::uriStatus, and waitBetweenAttempts_.
Referenced by next().
|
private |
Definition at line 43 of file FileServiceProxy.h.
Referenced by FileServiceProxy(), finish(), obtainFileFromURI_(), and obtainURI_().
|
private |
Definition at line 31 of file FileServiceProxy.h.
Referenced by FileServiceProxy(), finish(), obtainFileFromURI_(), obtainURI_(), and ~FileServiceProxy().
|
private |
Referenced by finish(), obtainFileFromURI_(), obtainURI_(), and ~FileServiceProxy().
|
private |
Definition at line 32 of file FileServiceProxy.h.
Referenced by obtainFileFromURI_().
|
private |
Definition at line 44 of file FileServiceProxy.h.
Referenced by FileServiceProxy(), obtainFileFromURI_(), and obtainURI_().