LArSoft
v06_85_00
Liquid Argon Software toolkit - http://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 20 of file FileServiceProxy.h.
|
explicit |
Definition at line 4 of file FileServiceProxy.cc.
References ci_.
art::detail::FileServiceProxy::~FileServiceProxy | ( | ) |
Definition at line 17 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 29 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 72 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 39 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 50 of file FileServiceProxy.h.
Referenced by finish(), obtainFileFromURI_(), and obtainURI_().
|
private |
Definition at line 34 of file FileServiceProxy.h.
Referenced by FileServiceProxy(), finish(), obtainFileFromURI_(), obtainURI_(), and ~FileServiceProxy().
|
private |
Referenced by finish(), obtainFileFromURI_(), obtainURI_(), and ~FileServiceProxy().
|
private |
Definition at line 35 of file FileServiceProxy.h.
Referenced by obtainFileFromURI_().
|
private |
Definition at line 51 of file FileServiceProxy.h.
Referenced by obtainFileFromURI_(), and obtainURI_().