10 #ifndef ROOT_TXNetFile    11 #define ROOT_TXNetFile   100              const char *logicalurl = 0);
   106    virtual void     Flush();
 
virtual ~TXNetFile()
Destructor. 
 
Int_t ParseOptions(const char *opts, Int_t &cachesz, Int_t &readaheadsz, Int_t &rmpolicy, Int_t &mxredir, Int_t &rastrategy, Int_t &readtrimblksz)
Parse input options for cache parameters. 
 
void Init(Bool_t create)
Initialize the file. 
 
EAsyncOpenStatus
Asynchronous open request status. 
 
Int_t SysStat(Int_t fd, Long_t *id, Long64_t *size, Long_t *flags, Long_t *modtime)
Override TNetFile::SysStat (see parent's method for more details). 
 
This class represents a WWW compatible URL. 
 
virtual TFile::EAsyncOpenStatus GetAsyncOpenStatus()
Return status of asynchronous request. 
 
static Int_t GetRootdProtocol(TSocket *s)
Find out the remote rootd protocol version. 
 
virtual Int_t ReOpen(const Option_t *mode)
Re-open the file (see TNetFile::ReOpen() or TFile::ReOpen() for more details). 
 
virtual Bool_t ReadBuffer(char *buf, Int_t len)
Override TNetFile::ReadBuffer to deal with the xrootd server. 
 
TXNetFile & operator=(const TXNetFile &)
 
#define ClassDef(name, id)
 
static TFileStager * fgFileStager
 
virtual Bool_t ReadBufferAsync(Long64_t offs, Int_t len)
Implementation dealing with the xrootd server. 
 
static void SetEnv()
Set the relevant environment variables. 
 
virtual void ResetCache()
Reset the cache. 
 
Int_t SysOpen(const char *pathname, Int_t flags, UInt_t mode)
Override TNetFile::SysOpen (see parent's method for more details). 
 
static void FormUrl(TUrl uut, TString &uu)
Form url for rootd socket. 
 
virtual void Flush()
Flushes un-written data. 
 
virtual Int_t GetBytesToPrefetch() const
Max number of bytes to prefetch. 
 
virtual Bool_t WriteBuffer(const char *buffer, Int_t BufferLength)
Override TNetFile::WriteBuffer to deal with the xrootd server. 
 
virtual Bool_t IsOpen() const
Return kTRUE if the file is open, kFALSE otherwise. 
 
virtual void Close(const Option_t *opt="")
Close the file (see TNetFile::Close() or TFile::Close() for more details). 
 
static constexpr double s
 
Bool_t Open(Option_t *option, Bool_t parallelopen)
The real creation work is done here. 
 
void CreateXClient(const char *url, Option_t *option, Int_t netopt, Bool_t parallelopen)
The real creation work is done here. 
 
Int_t SysClose(Int_t fd)
Override TNetFile::SysClose (see parent's method for more details). 
 
virtual void Print(Option_t *option="") const
Print the local statistics. 
 
virtual Bool_t ReadBuffers(char *buf, Long64_t *pos, Int_t *len, Int_t nbuf)
Read the nbuf blocks described in arrays pos and len, where pos[i] is the seek position of block i of...
 
void SynchronizeCacheSize()
Synchronize the cache size Alternative purging policy.