XrdPfc::IO Class Reference
Base cache-io class that implements XrdOucCacheIO abstract methods.
More...
#include <XrdPfcIO.hh>
List of all members.
Detailed Description
Base cache-io class that implements XrdOucCacheIO abstract methods.
Constructor & Destructor Documentation
Member Function Documentation
Original data source.
References m_io.
Detach this CacheIO object from the cache.
- Note:
- This method must be called instead of using the delete operator since CacheIO objects may have multiple outstanding references and actual deletion may need to be defered.
- Parameters:
-
| iocd | reference to the detach complete callback object. |
- Returns:
- true Deletion can occur immediately. There is no outstanding I/O.
-
false Deletion must be deferred until it is safe to so from the cache perspective. At which point, the cache will call the DetachDone() method in the passed callback object. No locks may be held with respect to the CacheIO object when this is done to avoid deadlocks.
Implements XrdOucCacheIO.
virtual void XrdPfc::IO::DetachFinalize |
( |
|
) |
[pure virtual] |
const char* XrdPfc::IO::GetPath |
( |
|
) |
[inline, protected] |
virtual bool XrdPfc::IO::ioActive |
( |
|
) |
[pure virtual] |
virtual const char* XrdPfc::IO::Path |
( |
|
) |
[inline, virtual] |
virtual int XrdPfc::IO::Sync |
( |
|
) |
[inline, virtual] |
Perform an synchronous sync() operation.
- Returns:
- <0 - Sync failed, value is -errno. =0 - Sync succeeded.
Implements XrdOucCacheIO.
virtual int XrdPfc::IO::Trunc |
( |
long long |
offs |
) |
[inline, virtual] |
Perform an synchronous trunc() operation.
- Parameters:
-
| offs | the size the file is have. |
- Returns:
- <0 - Trunc failed, value is -errno. =0 - Trunc succeeded.
Implements XrdOucCacheIO.
virtual void XrdPfc::IO::Update |
( |
XrdOucCacheIO & |
iocp |
) |
[virtual] |
virtual int XrdPfc::IO::Write |
( |
char * |
buff, |
|
|
long long |
offs, |
|
|
int |
wlen | |
|
) |
| | [inline, virtual] |
Perform an synchronous write.
- Parameters:
-
| buff | pointer to the buffer holding the contents. The buffer must remain valid until the callback is invoked. |
| offs | the offset into the file. |
| wlen | the number of bytes to write |
- Returns:
- < 0 - Write failed, value is -errno. >=0 - Write succeeded, value is number of bytes written.
Implements XrdOucCacheIO.
Member Data Documentation
reference to Cache statistics
The documentation for this class was generated from the following file: