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////////////////////////////////////////////////////////////////////////////////
21
22#include "TFileStager.h"
23
24class TCollection;
25class TNetXNGSystem;
26class TFileCollection;
27
28/// Enables access to XRootD staging capabilities using the new client
30
31private:
32 TNetXNGSystem *fSystem; // Used to access filesystem interface
33
34public:
35 TNetXNGFileStager(const char *url = "");
36 virtual ~TNetXNGFileStager();
37
38 Bool_t IsStaged(const char *path) override;
39 Int_t Locate(const char *path, TString &endpath) override;
41 Bool_t Matches(const char *s) override;
42 Bool_t Stage(const char *path, Option_t *opt = nullptr) override;
43 Bool_t Stage(TCollection *pathlist, Option_t *opt = nullptr) override;
44 Bool_t IsValid() const override { return fSystem ? kTRUE : kFALSE; }
45
46private:
48
49 ClassDefOverride(TNetXNGFileStager, 0) //! Interface to a 'XRD' staging
50};
51
52#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:348
Collection abstract base class.
Definition TCollection.h:65
Class that contains a list of TFileInfo's and accumulated meta data information about its entries.
Enables access to XRootD staging capabilities using the new client.
Bool_t Matches(const char *s) override
Returns kTRUE if stager 's' is compatible with current stager.
Bool_t IsValid() const override
TNetXNGFileStager(const char *url="")
Constructor.
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
Enables access to XRootD filesystem interface using the new client.
Basic string class.
Definition TString.h:139