Logo ROOT  
Reference Guide
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);
40 Int_t Locate(const char *path, TString &endpath);
42 Bool_t Matches(const char *s);
43 Bool_t Stage(const char *path, Option_t *opt = 0);
44 Bool_t Stage(TCollection *pathlist, Option_t *opt = 0);
45 Bool_t IsValid() const { return (fSystem ? kTRUE : kFALSE); }
46
47private:
49
50 ClassDef( TNetXNGFileStager, 0 ) //! Interface to a 'XRD' staging
51};
52
53#endif
int Int_t
Definition: RtypesCore.h:45
unsigned char UChar_t
Definition: RtypesCore.h:38
const Bool_t kFALSE
Definition: RtypesCore.h:101
bool Bool_t
Definition: RtypesCore.h:63
const Bool_t kTRUE
Definition: RtypesCore.h:100
const char Option_t
Definition: RtypesCore.h:66
#define ClassDef(name, id)
Definition: Rtypes.h:325
static struct mg_connection * fc(struct mg_context *ctx)
Definition: civetweb.c:3728
Collection abstract base class.
Definition: TCollection.h:65
Class that contains a list of TFileInfo's and accumulated meta data information about its entries.
Int_t LocateCollection(TFileCollection *fc, Bool_t addDummyUrl=kFALSE)
Bulk locate request for a collection of files.
Bool_t Matches(const char *s)
Returns kTRUE if stager 's' is compatible with current stager.
TNetXNGFileStager(const char *url="")
Constructor.
Bool_t Stage(const char *path, Option_t *opt=0)
Issue a stage request for a single file.
Int_t Locate(const char *path, TString &endpath)
Get actual endpoint URL.
UChar_t ParseStagePriority(Option_t *opt)
Get a staging priority value from an option string.
virtual ~TNetXNGFileStager()
Destructor.
Bool_t IsStaged(const char *path)
Check if a file is staged.
Bool_t IsValid() const
TNetXNGSystem * fSystem
Basic string class.
Definition: TString.h:136
static constexpr double s