Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TNetXNGFileStager.h
Go to the documentation of this file.
1// @(#)root/netxng:$Id$
2/*************************************************************************
3 * Copyright (C) 1995-2013, Rene Brun and Fons Rademakers. *
4 * All rights reserved. *
5 * *
6 * For the licensing terms see $ROOTSYS/LICENSE. *
7 * For the list of contributors see $ROOTSYS/README/CREDITS. *
8 *************************************************************************/
9
10#ifndef ROOT_TNetXNGFileStager
11#define ROOT_TNetXNGFileStager
12
13////////////////////////////////////////////////////////////////////////////////
14// //
15// TNetXNGFileStager //
16// //
17// Authors: Lukasz Janyst, Justin Salmon //
18// CERN, 2013 //
19// //
20// Enables access to XRootD staging capabilities using the new client. //
21// //
22////////////////////////////////////////////////////////////////////////////////
23
24#include "TFileStager.h"
25
26class TCollection;
27class TNetXNGSystem;
28class TFileCollection;
29
31
32private:
33 TNetXNGSystem *fSystem; // Used to access filesystem interface
34
35public:
36 TNetXNGFileStager(const char *url = "");
37 virtual ~TNetXNGFileStager();
38
39 Bool_t IsStaged(const char *path) override;
40 Int_t Locate(const char *path, TString &endpath) override;
41 Int_t LocateCollection(TFileCollection *fc, Bool_t addDummyUrl = kFALSE) override;
42 Bool_t Matches(const char *s) override;
43 Bool_t Stage(const char *path, Option_t *opt = nullptr) override;
44 Bool_t Stage(TCollection *pathlist, Option_t *opt = nullptr) override;
45 Bool_t IsValid() const override { return fSystem ? kTRUE : kFALSE; }
46
47private:
49
50 ClassDefOverride(TNetXNGFileStager, 0) //! Interface to a 'XRD' staging
51};
52
53#endif
unsigned char UChar_t
Definition RtypesCore.h:38
constexpr Bool_t kFALSE
Definition RtypesCore.h:94
constexpr Bool_t kTRUE
Definition RtypesCore.h:93
const char Option_t
Definition RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
Collection abstract base class.
Definition TCollection.h:65
Class that contains a list of TFileInfo's and accumulated meta data information about its entries.
Bool_t Matches(const char *s) override
Returns kTRUE if stager 's' is compatible with current stager.
Bool_t IsValid() const override
Int_t LocateCollection(TFileCollection *fc, Bool_t addDummyUrl=kFALSE) override
Bulk locate request for a collection of files.
Bool_t Stage(const char *path, Option_t *opt=nullptr) override
Issue a stage request for a single file.
UChar_t ParseStagePriority(Option_t *opt)
Get a staging priority value from an option string.
virtual ~TNetXNGFileStager()
Destructor.
Bool_t IsStaged(const char *path) override
Check if a file is staged.
Int_t Locate(const char *path, TString &endpath) override
Get actual endpoint URL.
TNetXNGSystem * fSystem
Basic string class.
Definition TString.h:139