Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TNetFileStager.h
Go to the documentation of this file.
1// @(#)root/netx:$Id$
2// Author: G. Ganis Feb 2011
3
4/*************************************************************************
5 * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TNetFileStager
13#define ROOT_TNetFileStager
14
15//////////////////////////////////////////////////////////////////////////
16// //
17// TNetFileStager //
18// //
19// TFileStager implementation for a 'rootd' backend. //
20// //
21//////////////////////////////////////////////////////////////////////////
22
23#include "TFileStager.h"
24
25class TCollection;
26
27namespace ROOT::Deprecated {
28
29class TNetSystem;
30
32
33private:
34 TString fPrefix; // prefix to prepend to requests
35 TNetSystem *fSystem; // instance of the admin interface
36
37 static void GetPrefix(const char *url, TString &pfx);
38
39public:
40 TNetFileStager(const char *stager = "");
41 virtual ~TNetFileStager();
42
43 Bool_t IsStaged(const char *path) override;
44 Int_t Locate(const char *path, TString &endpath) override;
45 Bool_t Matches(const char *s) override;
46
47 Bool_t IsValid() const override { return fSystem ? kTRUE : kFALSE; }
48
49 void Print(Option_t *option = "") const override;
50
51 ClassDefOverride(TNetFileStager,0) // Implementation for a 'rootd' backend
52};
53
54} // namespace ROOT::Deprecated
55
56using TNetFileStager R__DEPRECATED(6, 42, "TNetFileStager is deprecated") = ROOT::Deprecated::TNetFileStager;
57
58#endif
#define R__DEPRECATED(MAJOR, MINOR, REASON)
Definition RConfig.hxx:510
constexpr Bool_t kFALSE
Definition RtypesCore.h:108
constexpr Bool_t kTRUE
Definition RtypesCore.h:107
const char Option_t
Option string (const char)
Definition RtypesCore.h:80
#define ClassDefOverride(name, id)
Definition Rtypes.h:348
TNetFileStager(const char *stager="")
Constructor. Init a TNetSystem instance to the remote rootd.
Bool_t Matches(const char *s) override
Returns kTRUE if stager 's' is compatible with current stager.
virtual ~TNetFileStager()
Destructor.
Bool_t IsStaged(const char *path) override
Check if the file defined by 'path' is ready to be used.
static void GetPrefix(const char *url, TString &pfx)
Isolate prefix in url.
Int_t Locate(const char *path, TString &endpath) override
Get actual end-point url for a path Returns 0 in case of success and 1 if any error occurred.
Bool_t IsValid() const override
void Print(Option_t *option="") const override
Print basic info about this stager.
Collection abstract base class.
Definition TCollection.h:65
Basic string class.
Definition TString.h:138