xrootd
Public Member Functions | Private Attributes | List of all members
XrdPosixCacheBC Class Reference

#include <XrdPosixCacheBC.hh>

Inheritance diagram for XrdPosixCacheBC:
Inheritance graph
[legend]
Collaboration diagram for XrdPosixCacheBC:
Collaboration graph
[legend]

Public Member Functions

virtual XrdOucCacheIO2Attach (XrdOucCacheIO2 *ioP, int opts=0)
 
virtual int isAttached ()
 
virtual int Rmdir (const char *path)
 
virtual int Rename (const char *pathO, const char *pathN)
 
virtual int Truncate (const char *path, off_t size)
 
virtual int Unlink (const char *path)
 
 XrdPosixCacheBC (XrdOucCache *cP)
 
virtual ~XrdPosixCacheBC ()
 
virtual XrdOucCacheIO2Attach (XrdOucCacheIO2 *ioP, int opts=0)=0
 
virtual XrdOucCacheIOAttach (XrdOucCacheIO *ioP, int opts=0)
 
virtual XrdOucCacheIOAttach (XrdOucCacheIO *ioP, int Options=0)=0
 
- Public Member Functions inherited from XrdOucCache2
virtual XrdOucCacheIOAttach (XrdOucCacheIO *ioP, int opts=0)
 
virtual XrdOucCacheCreate (Parms &Params, XrdOucCacheIO::aprParms *aprP=0)
 
virtual void EnvInfo (XrdOucEnv &theEnv)
 
virtual int LocalFilePath (const char *url, char *buff=0, int blen=0, LFP_Reason why=ForAccess)
 
virtual int Prepare (const char *url, int oflags, mode_t mode)
 
virtual int Stat (const char *url, struct stat &sbuff)
 
 XrdOucCache2 ()
 
virtual ~XrdOucCache2 ()
 
virtual XrdOucCacheIOAttach (XrdOucCacheIO *ioP, int Options=0)=0
 
- Public Member Functions inherited from XrdOucCache
 XrdOucCache ()
 
virtual ~XrdOucCache ()
 

Private Attributes

XrdOucCachev1Cache
 

Additional Inherited Members

- Public Types inherited from XrdOucCache2
enum  LFP_Reason { ForAccess =0, ForInfo, ForPath }
 
- Public Attributes inherited from XrdOucCache
XrdOucCacheStats Stats
 
- Static Public Attributes inherited from XrdOucCache
static const int optADB = 0x1000
 
static const int optFIS = 0x0001
 
static const int optFIU = 0x0002
 
static const int optRW = 0x0004
 
static const int optNEW = 0x0014
 
static const int optWIN = 0x0024
 
static const int isServer = 0x0010
 
static const int isStructured = 0x0020
 
static const int canPreRead = 0x0040
 
static const int logStats = 0x0080
 
static const int Serialized = 0x0004
 
static const int ioMTSafe = 0x0008
 
static const int Debug = 0x0003
 

Constructor & Destructor Documentation

◆ XrdPosixCacheBC()

XrdPosixCacheBC::XrdPosixCacheBC ( XrdOucCache cP)
inline

◆ ~XrdPosixCacheBC()

virtual XrdPosixCacheBC::~XrdPosixCacheBC ( )
inlinevirtual

Member Function Documentation

◆ Attach() [1/4]

virtual XrdOucCacheIO2* XrdOucCache2::Attach

◆ Attach() [2/4]

virtual XrdOucCacheIO* XrdOucCache2::Attach
inline

◆ Attach() [3/4]

virtual XrdOucCacheIO* XrdOucCache::Attach

Obtain a new XrdOucCacheIO2 object that fronts an existing XrdOucCacheIO2 with this cache. Upon success a pointer to a new XrdOucCacheIO2 object is returned and must be used to read and write data with the cache interposed. Upon failure, the original XrdOucCacheIO2 object is returned with errno set. You can continue using the object without any cache. The new cache should use the methods in the passed CacheIO2 object to perform I/O operatios.

Parameters
ioPPointer to the current CacheIO2 object used for I/O.
optsCache options identical to those defined for XrdOucCache Attach() method.
Returns
Pointer to a new XrdOucCacheIO2 object (success) or the original XrdOucCacheIO2 object (failure) with errno set.

◆ Attach() [4/4]

virtual XrdOucCacheIO2* XrdPosixCacheBC::Attach ( XrdOucCacheIO2 ioP,
int  opts = 0 
)
inlinevirtual

Implements XrdOucCache2.

References XrdOucCache::Attach(), and v1Cache.

◆ isAttached()

virtual int XrdPosixCacheBC::isAttached ( )
inlinevirtual

Reimplemented from XrdOucCache.

References XrdOucCache::isAttached(), and v1Cache.

◆ Rename()

virtual int XrdPosixCacheBC::Rename ( const char *  pathO,
const char *  pathN 
)
inlinevirtual

Reimplemented from XrdOucCache.

References XrdOucCache::Rename(), and v1Cache.

◆ Rmdir()

virtual int XrdPosixCacheBC::Rmdir ( const char *  path)
inlinevirtual

Reimplemented from XrdOucCache.

References XrdOucCache::Rmdir(), and v1Cache.

◆ Truncate()

virtual int XrdPosixCacheBC::Truncate ( const char *  path,
off_t  size 
)
inlinevirtual

Reimplemented from XrdOucCache.

References XrdOucCache::Truncate(), and v1Cache.

◆ Unlink()

virtual int XrdPosixCacheBC::Unlink ( const char *  path)
inlinevirtual

Reimplemented from XrdOucCache.

References XrdOucCache::Unlink(), and v1Cache.

Member Data Documentation

◆ v1Cache

XrdOucCache* XrdPosixCacheBC::v1Cache
private

The documentation for this class was generated from the following file: