12 #ifndef ROOT_TAlienFile
13 #define ROOT_TAlienFile
39 class TAlienFile :
public TXNetFile {
53 TAlienFile() : TXNetFile(), fLfn(), fAuthz(), fGUID(), fUrl(), fPfn(), fSE(), fImage(0), fNreplicas(0), fOpenedAt(0), fElapsed(0) { }
54 TAlienFile(
const char *purl, Option_t *option =
"",
55 const char *ftitle =
"", Int_t compress = ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault,
56 Bool_t parallelopen = kFALSE,
const char *lurl = 0,
57 const char *authz = 0);
58 virtual ~TAlienFile();
60 virtual void Close(
const Option_t *opt =
"");
62 const char *GetGUID()
const {
return fGUID;}
63 Double_t GetElapsed()
const {
return fElapsed;}
64 Int_t GetImage()
const {
return fImage;}
65 const char *GetLfn()
const {
return fLfn;}
66 Int_t GetNreplicas()
const {
return fNreplicas;}
67 Long64_t GetOpenTime()
const {
return fOpenedAt;}
68 const char *GetPfn()
const {
return fPfn;}
69 const char *GetSE()
const {
return fSE;}
70 const char *GetUrl()
const {
return fUrl;}
73 void SetGUID(
const char *guid) {fGUID = guid;}
74 void SetElapsed(Double_t real) {fElapsed = real;}
75 void SetImage(Int_t image) {fImage = image;}
76 void SetNreplicas(Int_t nrep) {fNreplicas = nrep;}
77 void SetPfn(
const char *pfn) {fPfn = pfn;}
78 void SetSE(
const char *se) {fSE = se;}
79 void SetUrl(
const char *url) {fUrl = url;}
82 static TAlienFile *Open(
const char *lfn,
const Option_t *option =
"",
83 const char *title =
"", Int_t compress = ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault,
84 Bool_t parallelopen = kFALSE);
85 static TString SUrl(
const char *lfn);
87 ClassDef(TAlienFile, 4)