32 if (url && strlen(url) > 0) {
65 Warning(
"IsStaged",
"TNetSystem not initialized");
75 ::Info(
"TNetFileStager::GetPrefix",
"enter: %s", url);
87 ::Info(
"TNetFileStager::GetPrefix",
"found prefix: %s", pfx.
Data());
void Printf(const char *fmt,...)
virtual const char * GetName() const
Returns name of object.
virtual ~TNetFileStager()
Destructor.
Bool_t Matches(const char *s)
Returns kTRUE if stager 's' is compatible with current stager.
Bool_t IsStaged(const char *path)
Check if the file defined by 'path' is ready to be used.
static void GetPrefix(const char *url, TString &pfx)
Isolate prefix in url.
TNetFileStager(const char *stager="")
Constructor. Init a TNetSystem instance to the remote rootd.
Int_t Locate(const char *path, TString &endpath)
Get actual end-point url for a path Returns 0 in case of success and 1 if any error occured.
void Print(Option_t *option="") const
Print basic info about this stager.
Bool_t AccessPathName(const char *path, EAccessMode mode)
Returns FALSE if one can access a file using the specified access mode.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
TString & Insert(Ssiz_t pos, const char *s)
const char * Data() const
Bool_t BeginsWith(const char *s, ECaseCompare cmp=kExact) const
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
This class represents a WWW compatible URL.
const char * GetUser() const
const char * GetHost() const
const char * GetProtocol() const
static constexpr double s