|
XRootD
|
#include <XrdPosixCache.hh>
Collaboration diagram for XrdPosixCache:Public Member Functions | |
| XrdPosixCache () | |
| Constructor and destructor. More... | |
| ~XrdPosixCache () | |
| int | CachePath (const char *url, char *buff, int blen) |
| int | CacheQuery (const char *url, bool hold=false) |
| int | Rename (const char *oldPath, const char *newPath) |
| int | Rmdir (const char *path) |
| int | Stat (const char *path, struct stat &sbuff) |
| void | Statistics (XrdOucCacheStats &Stats) |
| int | Truncate (const char *path, off_t size) |
| int | Unlink (const char *path) |
Definition at line 35 of file XrdPosixCache.hh.
|
inline |
|
inline |
Definition at line 139 of file XrdPosixCache.hh.
| int XrdPosixCache::CachePath | ( | const char * | url, |
| char * | buff, | ||
| int | blen | ||
| ) |
Convert a logical path to the path of the corresonding entry in the cache.
| 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). |
Definition at line 50 of file XrdPosixCache.cc.
References XrdOucCache::ForPath, XrdOucCache::LocalFilePath(), and XrdPosixGlobals::theCache.
Here is the call graph for this function:| int XrdPosixCache::CacheQuery | ( | const char * | url, |
| bool | hold = false |
||
| ) |
Check cache status of a file.
| 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. |
Definition at line 59 of file XrdPosixCache.cc.
References XrdOucCache::ForAccess, XrdOucCache::ForInfo, XrdOucCache::LocalFilePath(), and XrdPosixGlobals::theCache.
Here is the call graph for this function:| int XrdPosixCache::Rename | ( | const char * | oldPath, |
| const char * | newPath | ||
| ) |
Rename a file or directory in the cache.
| oldPath | -> filepath of existing directory or file. |
| newPath | -> filepath the directory or file is to have. |
Definition at line 82 of file XrdPosixCache.cc.
References XrdOucCache::Rename(), and XrdPosixGlobals::theCache.
Here is the call graph for this function:| int XrdPosixCache::Rmdir | ( | const char * | path | ) |
Remove directory from the cache.
| path | -> filepath of directory to be removed |
Definition at line 75 of file XrdPosixCache.cc.
References XrdOucCache::Rmdir(), and XrdPosixGlobals::theCache.
Here is the call graph for this function:| int XrdPosixCache::Stat | ( | const char * | path, |
| struct stat & | sbuff | ||
| ) |
Rename a file or directory in the cache.
| 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. |
Definition at line 89 of file XrdPosixCache.cc.
References XrdOucCache::Stat(), and XrdPosixGlobals::theCache.
Here is the call graph for this function:| void XrdPosixCache::Statistics | ( | XrdOucCacheStats & | Stats | ) |
Rename a file or directory in the cache.
| Stats | Reference to the statistics object to be filled in. |
Definition at line 96 of file XrdPosixCache.cc.
References XrdOucCacheStats::Get(), XrdOucCache::Statistics, XrdPosixGlobals::Stats, and XrdPosixGlobals::theCache.
Here is the call graph for this function:| int XrdPosixCache::Truncate | ( | const char * | path, |
| off_t | size | ||
| ) |
Truncate a file in the cache.
| path | -> filepath of file to be truncated. |
| size | The size in bytes the file should have. |
Definition at line 103 of file XrdPosixCache.cc.
References XrdPosixGlobals::theCache, and XrdOucCache::Truncate().
Here is the call graph for this function:| int XrdPosixCache::Unlink | ( | const char * | path | ) |
Remove a file from the cache.
| path | -> filepath of file to be removed. |
Definition at line 110 of file XrdPosixCache.cc.
References XrdPosixGlobals::theCache, and XrdOucCache::Unlink().
Here is the call graph for this function: