26 #include <XrdCl/XrdClFileSystem.hh> 59 Info(
"IsStaged",
"path %s cannot be stat'ed", path);
65 Info(
"IsStaged",
"path '%s' is offline", path);
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(),
185 while (
TString(opt).Tokenize(token, from,
"[ ,|]")) {
189 priority = token.
Atoi();
TNetXNGFileStager(const char *url="")
Constructor.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
UChar_t ParseStagePriority(Option_t *opt)
Get a staging priority value from an option string.
TString & ReplaceAll(const TString &s1, const TString &s2)
TUrl * GetCurrentUrl() const
Return the current url.
Bool_t Matches(const char *s)
Returns kTRUE if stager 's' is compatible with current stager.
virtual Int_t Stage(const char *path, UChar_t priority)
Issue a stage request for a single file.
Bool_t AddUrl(const char *url, Bool_t infront=kFALSE)
Add a new URL.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
const char * GetUrl(Bool_t withDeflt=kFALSE) const
Return full URL.
Int_t Locate(const char *path, TString &endpath)
Get actual endpoint URL.
Bool_t Stage(const char *path, Option_t *opt=0)
Issue a stage request for a single file.
static struct mg_connection * fc(struct mg_context *ctx)
Int_t LocateCollection(TFileCollection *fc, Bool_t addDummyUrl=kFALSE)
Bulk locate request for a collection of files.
Bool_t IsStaged(const char *path)
Check if a file is staged.
Collection abstract base class.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual ~TNetXNGFileStager()
Destructor.
virtual Int_t GetPathInfo(const char *path, FileStat_t &buf)
Get info about a file (stat)
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Class that contains a list of TFileInfo's and accumulated meta data information about its entries...
Int_t Atoi() const
Return integer value of string.
Bool_t IsDigit() const
Returns true if all characters in string are digits (0-9) or white spaces, i.e.
Class describing a generic file including meta information.
virtual Int_t Locate(const char *path, TString &endurl)
Get the endpoint URL of a file.
Bool_t R_ISOFF(Int_t mode)