27#include <XrdCl/XrdClFileSystem.hh>
60 Info(
"IsStaged",
"path %s cannot be stat'ed", path);
66 Info(
"IsStaged",
"path '%s' is offline", path);
98 Error(
"LocateCollection",
"No input collection given");
107 while ((info =
dynamic_cast<TFileInfo *
>(it.
Next())) != NULL) {
118 Info(
"LocateCollection",
"Not found: %s", startUrl.
Data());
125 if (startUrl != endUrl) {
127 }
else if (addDummyUrl) {
133 Info(
"LocateCollection",
"Found: %s --> %s", startUrl.
Data(),
186 while (
TString(opt).Tokenize(token, from,
"[ ,|]")) {
190 priority = token.
Atoi();
Bool_t R_ISOFF(Int_t mode)
Collection abstract base class.
Class that contains a list of TFileInfo's and accumulated meta data information about its entries.
Class describing a generic file including meta information.
Bool_t AddUrl(const char *url, Bool_t infront=kFALSE)
Add a new URL.
TUrl * GetCurrentUrl() const
Return the current url.
Bool_t Matches(const char *s) override
Returns kTRUE if stager 's' is compatible with current stager.
TNetXNGFileStager(const char *url="")
Constructor.
Int_t LocateCollection(TFileCollection *fc, Bool_t addDummyUrl=kFALSE) override
Bulk locate request for a collection of files.
Bool_t Stage(const char *path, Option_t *opt=nullptr) override
Issue a stage request for a single file.
UChar_t ParseStagePriority(Option_t *opt)
Get a staging priority value from an option string.
virtual ~TNetXNGFileStager()
Destructor.
Bool_t IsStaged(const char *path) override
Check if a file is staged.
Int_t Locate(const char *path, TString &endpath) override
Get actual endpoint URL.
Int_t GetPathInfo(const char *path, FileStat_t &buf) override
Get info about a file (stat)
virtual Int_t Stage(const char *path, UChar_t priority)
Issue a stage request for a single file.
virtual Int_t Locate(const char *path, TString &endurl)
Get the endpoint URL of a file.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
Int_t Atoi() const
Return integer value of string.
const char * Data() const
Bool_t IsDigit() const
Returns true if all characters in string are digits (0-9) or white spaces, i.e.
TString & ReplaceAll(const TString &s1, const TString &s2)
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
const char * GetUrl(Bool_t withDeflt=kFALSE) const
Return full URL.