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());
virtual const char * GetName() const
Returns name of object.
Bool_t Matches(const char *s)
Returns kTRUE if stager 's' is compatible with current stager.
Bool_t AccessPathName(const char *path, EAccessMode mode)
Returns FALSE if one can access a file using the specified access mode.
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...
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
This class represents a WWW compatible URL.
virtual ~TNetFileStager()
Destructor.
const char * GetProtocol() const
TString & Insert(Ssiz_t pos, const char *s)
const char * GetHost() const
static void GetPrefix(const char *url, TString &pfx)
Isolate prefix in url.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
const char * GetUser() const
void Print(Option_t *option="") const
Print basic info about this stager.
Bool_t BeginsWith(const char *s, ECaseCompare cmp=kExact) const
Bool_t IsStaged(const char *path)
Check if the file defined by 'path' is ready to be used.
static constexpr double s
TNetFileStager(const char *stager="")
Constructor. Init a TNetSystem instance to the remote rootd.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
const char * Data() const