XrdPosixCache Class Reference
#include <XrdPosixCache.hh>
List of all members.
Constructor & Destructor Documentation
XrdPosixCache::XrdPosixCache |
( |
|
) |
[inline] |
Constructor and destructor.
XrdPosixCache::~XrdPosixCache |
( |
|
) |
[inline] |
Member Function Documentation
int XrdPosixCache::CachePath |
( |
const char * |
url, |
|
|
char * |
buff, |
|
|
int |
blen | |
|
) |
| | |
Convert a logical path to the path of the corresonding entry in the cache.
- Parameters:
-
| url | -> url of the directory or file to be converted. |
| buff | -> buffer to receive the result. |
| blen | The length of the buffer (should be at least 1024). |
- Returns:
- =0 Buffer holds the result.
-
<0 Conversion failed, the return value is -errno.
int XrdPosixCache::CacheQuery |
( |
const char * |
url, |
|
|
bool |
hold = false | |
|
) |
| | |
Check cache status of a file.
- Parameters:
-
| url | -> url of the logical file to be checked in the cache. |
| hold | When true, the file purge time is extended to allow the file to be accessed before eligible for purging. When false (the default) only status information is returned. |
- Returns:
- >0 The file is fully cached.
-
=0 The file exists in the cache but is not fully cached.
-
<0 The file does not exist in the cache.
int XrdPosixCache::Rename |
( |
const char * |
oldPath, |
|
|
const char * |
newPath | |
|
) |
| | |
Rename a file or directory in the cache.
- Parameters:
-
| oldpath | -> filepath of existing directory or file. |
| newpath | -> filepath the directory or file is to have. |
- Returns:
- 0 This method is currently not supported.
int XrdPosixCache::Rmdir |
( |
const char * |
path |
) |
|
Remove directory from the cache.
- Parameters:
-
| path | -> filepath of directory to be removed |
- Returns:
- 0 This method is currently not supported.
int XrdPosixCache::Stat |
( |
const char * |
path, |
|
|
struct stat & |
sbuff | |
|
) |
| | |
Rename a file or directory in the cache.
- Parameters:
-
| path | -> filepath of existing directory or file. This is the actual path in the cache (see CachePath()). |
| sbuff | Reference to the stat structure to hold the information. |
- Returns:
- =0 The sbuff hold the information.
-
!0 The file or direcory does not exist in the cache.
Rename a file or directory in the cache.
- Parameters:
-
| Stat | Reference to the statistics object to be filled in. |
int XrdPosixCache::Truncate |
( |
const char * |
path, |
|
|
off_t |
size | |
|
) |
| | |
Truncate a file in the cache.
- Parameters:
-
| path | -> filepath of file to be truncated. |
| size | The size in bytes the file should have. |
- Returns:
- 0 This method is currently not supported.
int XrdPosixCache::Unlink |
( |
const char * |
path |
) |
|
Remove a file from the cache.
- Parameters:
-
| path | -> filepath of file to be removed. |
- Returns:
- 0 This method is currently not supported.
The documentation for this class was generated from the following file: