27#include <XrdCl/XrdClFileSystem.hh>
57 if (
fSystem->GetPathInfo(path, st) != 0) {
59 Info(
"IsStaged",
"path %s cannot be stat'ed", path);
65 Info(
"IsStaged",
"path '%s' is offline", path);
81 return fSystem->Locate(path, url);
97 Error(
"LocateCollection",
"No input collection given");
106 while ((info =
dynamic_cast<TFileInfo *
>(it.
Next())) != NULL) {
117 Info(
"LocateCollection",
"Not found: %s", startUrl.
Data());
124 if (startUrl != endUrl) {
126 }
else if (addDummyUrl) {
132 Info(
"LocateCollection",
"Found: %s --> %s", startUrl.
Data(),
160 return fSystem->Stage(path, priority);
173 return fSystem->Stage(paths, priority);
185 while (
TString(opt).Tokenize(token, from,
"[ ,|]")) {
189 priority = token.
Atoi();
int Int_t
Signed integer 4 bytes (int).
unsigned char UChar_t
Unsigned Character 1 byte (unsigned char).
int Ssiz_t
String size (currently int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
const char Option_t
Option string (const char).
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.
TFileStager(const char *stager)
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.
Enables access to XRootD filesystem interface using the new client.
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.