|
XRootD
|
Send file/filesystem queries to an XRootD cluster. More...
#include <XrdClFileSystem.hh>
Collaboration diagram for XrdCl::FileSystem:Public Types | |
| typedef std::vector< LocationInfo > | LocationList |
| Location list. More... | |
Public Member Functions | |
| FileSystem (const URL &url, bool enablePlugIns=true) | |
| ~FileSystem () | |
| Destructor. More... | |
| XRootDStatus | ChMod (const std::string &path, Access::Mode mode, ResponseHandler *handler, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | ChMod (const std::string &path, Access::Mode mode, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | DeepLocate (const std::string &path, OpenFlags::Flags flags, LocationInfo *&response, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | DeepLocate (const std::string &path, OpenFlags::Flags flags, ResponseHandler *handler, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | DelXAttr (const std::string &path, const std::vector< std::string > &attrs, ResponseHandler *handler, uint16_t timeout=0) |
| XRootDStatus | DelXAttr (const std::string &path, const std::vector< std::string > &attrs, std::vector< XAttrStatus > &result, uint16_t timeout=0) |
| XRootDStatus | DirList (const std::string &path, DirListFlags::Flags flags, DirectoryList *&response, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | DirList (const std::string &path, DirListFlags::Flags flags, ResponseHandler *handler, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| bool | GetProperty (const std::string &name, std::string &value) const |
| XRootDStatus | GetXAttr (const std::string &path, const std::vector< std::string > &attrs, ResponseHandler *handler, uint16_t timeout=0) |
| XRootDStatus | GetXAttr (const std::string &path, const std::vector< std::string > &attrs, std::vector< XAttr > &result, uint16_t timeout=0) |
| XRootDStatus | ListXAttr (const std::string &path, ResponseHandler *handler, uint16_t timeout=0) |
| XRootDStatus | ListXAttr (const std::string &path, std::vector< XAttr > &result, uint16_t timeout=0) |
| XRootDStatus | Locate (const std::string &path, OpenFlags::Flags flags, LocationInfo *&response, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | Locate (const std::string &path, OpenFlags::Flags flags, ResponseHandler *handler, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | MkDir (const std::string &path, MkDirFlags::Flags flags, Access::Mode mode, ResponseHandler *handler, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | MkDir (const std::string &path, MkDirFlags::Flags flags, Access::Mode mode, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | Mv (const std::string &source, const std::string &dest, ResponseHandler *handler, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | Mv (const std::string &source, const std::string &dest, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | Ping (ResponseHandler *handler, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | Ping (uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | Prepare (const std::vector< std::string > &fileList, PrepareFlags::Flags flags, uint8_t priority, Buffer *&response, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | Prepare (const std::vector< std::string > &fileList, PrepareFlags::Flags flags, uint8_t priority, ResponseHandler *handler, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | Protocol (ProtocolInfo *&response, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | Protocol (ResponseHandler *handler, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | Query (QueryCode::Code queryCode, const Buffer &arg, Buffer *&response, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | Query (QueryCode::Code queryCode, const Buffer &arg, ResponseHandler *handler, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | Rm (const std::string &path, ResponseHandler *handler, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | Rm (const std::string &path, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | RmDir (const std::string &path, ResponseHandler *handler, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | RmDir (const std::string &path, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | SendCache (const std::string &info, Buffer *&response, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| Send cache info to the server - sync. More... | |
| XRootDStatus | SendCache (const std::string &info, ResponseHandler *handler, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | SendInfo (const std::string &info, Buffer *&response, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| Send info to the server - sync. More... | |
| XRootDStatus | SendInfo (const std::string &info, ResponseHandler *handler, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| bool | SetProperty (const std::string &name, const std::string &value) |
| XRootDStatus | SetXAttr (const std::string &path, const std::vector< xattr_t > &attrs, ResponseHandler *handler, uint16_t timeout=0) |
| XRootDStatus | SetXAttr (const std::string &path, const std::vector< xattr_t > &attrs, std::vector< XAttrStatus > &result, uint16_t timeout=0) |
| XRootDStatus | Stat (const std::string &path, ResponseHandler *handler, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | Stat (const std::string &path, StatInfo *&response, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | StatVFS (const std::string &path, ResponseHandler *handler, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | StatVFS (const std::string &path, StatInfoVFS *&response, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | Truncate (const std::string &path, uint64_t size, ResponseHandler *handler, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
| XRootDStatus | Truncate (const std::string &path, uint64_t size, uint16_t timeout=0) XRD_WARN_UNUSED_RESULT |
Friends | |
| class | AssignLBHandler |
| class | ForkHandler |
Send file/filesystem queries to an XRootD cluster.
Definition at line 202 of file XrdClFileSystem.hh.
| typedef std::vector<LocationInfo> XrdCl::FileSystem::LocationList |
Location list.
Definition at line 208 of file XrdClFileSystem.hh.
| XrdCl::FileSystem::FileSystem | ( | const URL & | url, |
| bool | enablePlugIns = true |
||
| ) |
Constructor
| url | URL of the entry-point server to be contacted |
| enablePlugIns | enable the plug-in mechanism for this object |
Definition at line 1090 of file XrdClFileSystem.cc.
References XrdCl::PlugInFactory::CreateFileSystem(), XrdCl::Log::Error(), XrdCl::FileMsg, XrdCl::PlugInManager::GetFactory(), XrdCl::DefaultEnv::GetForkHandler(), XrdCl::DefaultEnv::GetLog(), XrdCl::URL::GetObfuscatedURL(), XrdCl::DefaultEnv::GetPlugInManager(), XrdCl::URL::GetURL(), and XrdCl::ForkHandler::RegisterFileSystemObject().
Referenced by DirList().
Here is the call graph for this function:
Here is the caller graph for this function:| XrdCl::FileSystem::~FileSystem | ( | ) |
Destructor.
Definition at line 1120 of file XrdClFileSystem.cc.
References XrdCl::DefaultEnv::GetForkHandler(), and XrdCl::ForkHandler::UnRegisterFileSystemObject().
Here is the call graph for this function:| XRootDStatus XrdCl::FileSystem::ChMod | ( | const std::string & | path, |
| Access::Mode | mode, | ||
| ResponseHandler * | handler, | ||
| uint16_t | timeout = 0 |
||
| ) |
Change access mode on a directory or a file - async
| path | file/directory path |
| mode | access mode, or'd Access::Mode |
| handler | handler to be notified when the response arrives |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1469 of file XrdClFileSystem.cc.
References XrdCl::Buffer::Append(), XrdCl::FileSystemPlugIn::ChMod(), XrdCl::MessageUtils::CreateRequest(), ClientChmodRequest::dlen, XrdCl::FileSystemImpl::fsdata, kXR_chmod, ClientChmodRequest::mode, XrdCl::MessageUtils::ProcessSendParams(), ClientChmodRequest::requestid, XrdCl::FileSystemData::Send(), XrdCl::XRootDTransport::SetDescription(), and XrdCl::MessageSendParams::timeout.
Referenced by ChMod(), and DoChMod().
Here is the call graph for this function:
Here is the caller graph for this function:| XRootDStatus XrdCl::FileSystem::ChMod | ( | const std::string & | path, |
| Access::Mode | mode, | ||
| uint16_t | timeout = 0 |
||
| ) |
Change access mode on a directory or a file - sync
| path | file/directory path |
| mode | access mode, or'd Access::Mode |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1497 of file XrdClFileSystem.cc.
References ChMod(), XrdCl::Status::IsOK(), and XrdCl::MessageUtils::WaitForStatus().
Here is the call graph for this function:| XRootDStatus XrdCl::FileSystem::DeepLocate | ( | const std::string & | path, |
| OpenFlags::Flags | flags, | ||
| LocationInfo *& | response, | ||
| uint16_t | timeout = 0 |
||
| ) |
Locate a file, recursively locate all disk servers - sync
| path | path to the file to be located |
| flags | some of the OpenFlags::Flags |
| response | the response (to be deleted by the user) |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1192 of file XrdClFileSystem.cc.
References DeepLocate(), XrdCl::Status::IsOK(), and XrdCl::MessageUtils::WaitForResponse().
Here is the call graph for this function:| XRootDStatus XrdCl::FileSystem::DeepLocate | ( | const std::string & | path, |
| OpenFlags::Flags | flags, | ||
| ResponseHandler * | handler, | ||
| uint16_t | timeout = 0 |
||
| ) |
Locate a file, recursively locate all disk servers - async
| path | path to the file to be located |
| flags | some of the OpenFlags::Flags |
| handler | handler to be notified when the response arrives, the response parameter will hold a Buffer object if the procedure is successful |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1180 of file XrdClFileSystem.cc.
References Locate().
Referenced by DeepLocate(), DirList(), DoLocate(), XrdCl::FileSystemUtils::GetSpaceInfo(), and XrdFfsPosix_mkdir().
Here is the call graph for this function:
Here is the caller graph for this function:| XRootDStatus XrdCl::FileSystem::DelXAttr | ( | const std::string & | path, |
| const std::vector< std::string > & | attrs, | ||
| ResponseHandler * | handler, | ||
| uint16_t | timeout = 0 |
||
| ) |
Delete extended attributes - async
| attrs | : list of extended attributes to set |
| handler | : handler to be notified when the response arrives, the response parameter will hold a std::vector of XAttrStatus objects |
| timeout | : timeout value, if 0 the environment default will be used |
Definition at line 2105 of file XrdClFileSystem.cc.
References XrdCl::errNotSupported, kXR_fattrDel, and XrdCl::stError.
Referenced by DelXAttr(), and DoXAttr().
Here is the caller graph for this function:| XRootDStatus XrdCl::FileSystem::DelXAttr | ( | const std::string & | path, |
| const std::vector< std::string > & | attrs, | ||
| std::vector< XAttrStatus > & | result, | ||
| uint16_t | timeout = 0 |
||
| ) |
Delete extended attributes - sync
| attrs | : list of extended attributes to set |
| result | : result of the operation |
| timeout | : timeout value, if 0 the environment default will be used |
Definition at line 2119 of file XrdClFileSystem.cc.
References DelXAttr(), XrdCl::Status::IsOK(), and XrdCl::MessageUtils::WaitForResponse().
Here is the call graph for this function:| XRootDStatus XrdCl::FileSystem::DirList | ( | const std::string & | path, |
| DirListFlags::Flags | flags, | ||
| DirectoryList *& | response, | ||
| uint16_t | timeout = 0 |
||
| ) |
List entries of a directory - sync
| path | directory path |
| flags | DirListFlags |
| response | the response (to be deleted by the user) |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1723 of file XrdClFileSystem.cc.
References FileSystem(), XrdCl::DirectoryList::Add(), XrdCl::LocationInfo::At(), XrdCl::DirectoryList::At(), XrdCl::DirectoryList::Begin(), XrdCl::DirListFlags::Chunked, XrdCl::Status::code, XrdCl::OpenFlags::Compress, DeepLocate(), DirList(), XrdCl::DirectoryList::End(), XrdCl::errNotFound, XrdCl::errNotSupported, XrdCl::RequestSync::FailureCount(), XrdCl::FileSystemImpl::fsdata, XrdCl::AnyObject::Get(), XrdCl::LocationInfo::Location::GetAddress(), XrdCl::DirectoryList::ListEntry::GetName(), XrdCl::DirectoryList::GetParentName(), XrdCl::DefaultEnv::GetPostMaster(), XrdCl::LocationInfo::GetSize(), XrdCl::DirectoryList::GetSize(), XrdCl::DirectoryList::ListEntry::GetStatInfo(), XrdCl::OpenFlags::IntentDirList, XrdCl::Status::IsOK(), kXR_isServer, XrdCl::DirListFlags::Locate, Locate(), XrdCl::DirListFlags::Merge, XrdCl::OpenFlags::PrefName, XrdCl::PostMaster::QueryTransport(), XrdCl::XRootDQuery::ServerFlags, XrdCl::DirectoryList::SetParentName(), XrdCl::URL::SetProtocol(), XrdCl::DirListFlags::Stat, Stat(), XrdCl::stError, XrdCl::stOK, XrdCl::suPartial, XrdCl::RequestSync::TaskDone(), XrdCl::RequestSync::WaitForAll(), XrdCl::RequestSync::WaitForQuota(), XrdCl::MessageUtils::WaitForResponse(), and XrdCl::DirListFlags::Zip.
Here is the call graph for this function:| XRootDStatus XrdCl::FileSystem::DirList | ( | const std::string & | path, |
| DirListFlags::Flags | flags, | ||
| ResponseHandler * | handler, | ||
| uint16_t | timeout = 0 |
||
| ) |
List entries of a directory - async
| path | directory path |
| flags | currently unused |
| handler | handler to be notified when the response arrives, the response parameter will hold a DirectoryList object if the procedure is successful |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1669 of file XrdClFileSystem.cc.
References XrdCl::Buffer::Append(), XrdCl::DirListFlags::Chunked, XrdCl::MessageSendParams::chunkedResponse, XrdCl::DirListFlags::Cksm, XrdCl::MessageUtils::CreateRequest(), XrdCl::FileSystemPlugIn::DirList(), ClientDirlistRequest::dlen, XrdCl::FileSystemImpl::fsdata, XrdCl::URL::GetPath(), XrdCl::Status::IsOK(), kXR_dcksm, kXR_dirlist, kXR_dstat, XrdCl::DirListFlags::Merge, ClientDirlistRequest::options, XrdCl::MessageUtils::ProcessSendParams(), XrdCl::DirListFlags::Recursive, ClientDirlistRequest::requestid, XrdCl::FileSystemData::Send(), XrdCl::XRootDTransport::SetDescription(), XrdCl::DirListFlags::Stat, Stat(), XrdCl::MessageSendParams::timeout, and XrdCl::DirListFlags::Zip.
Referenced by DirList(), DoLS(), IndexRemote(), and XrdPosixDir::Open().
Here is the call graph for this function:
Here is the caller graph for this function:| bool XrdCl::FileSystem::GetProperty | ( | const std::string & | name, |
| std::string & | value | ||
| ) | const |
Get filesystem property
Definition at line 2193 of file XrdClFileSystem.cc.
References XrdCl::FileSystemImpl::fsdata, and XrdCl::FileSystemPlugIn::GetProperty().
Referenced by DoLS().
Here is the call graph for this function:
Here is the caller graph for this function:| XRootDStatus XrdCl::FileSystem::GetXAttr | ( | const std::string & | path, |
| const std::vector< std::string > & | attrs, | ||
| ResponseHandler * | handler, | ||
| uint16_t | timeout = 0 |
||
| ) |
Get extended attributes - async
| attrs | : list of extended attributes to get |
| handler | : handler to be notified when the response arrives, the response parameter will hold a std::vector of XAttr objects |
| timeout | : timeout value, if 0 the environment default will be used |
Definition at line 2070 of file XrdClFileSystem.cc.
References XrdCl::errNotSupported, kXR_fattrGet, and XrdCl::stError.
Referenced by DoXAttr(), and GetXAttr().
Here is the caller graph for this function:| XRootDStatus XrdCl::FileSystem::GetXAttr | ( | const std::string & | path, |
| const std::vector< std::string > & | attrs, | ||
| std::vector< XAttr > & | result, | ||
| uint16_t | timeout = 0 |
||
| ) |
Get extended attributes - sync
| attrs | : list of extended attributes to get |
| result | : result of the operation |
| timeout | : timeout value, if 0 the environment default will be used |
Definition at line 2084 of file XrdClFileSystem.cc.
References GetXAttr(), XrdCl::Status::IsOK(), and XrdCl::MessageUtils::WaitForResponse().
Here is the call graph for this function:| XRootDStatus XrdCl::FileSystem::ListXAttr | ( | const std::string & | path, |
| ResponseHandler * | handler, | ||
| uint16_t | timeout = 0 |
||
| ) |
List extended attributes - async
| handler | : handler to be notified when the response arrives, the response parameter will hold a std::vector of XAttr objects |
| timeout | : timeout value, if 0 the environment default will be used |
Definition at line 2140 of file XrdClFileSystem.cc.
References ClientFattrRequest::aData, XrdCl::errNotSupported, kXR_fattrList, and XrdCl::stError.
Referenced by DoXAttr(), and ListXAttr().
Here is the caller graph for this function:| XRootDStatus XrdCl::FileSystem::ListXAttr | ( | const std::string & | path, |
| std::vector< XAttr > & | result, | ||
| uint16_t | timeout = 0 |
||
| ) |
List extended attributes - sync
| result | : result of the operation |
| timeout | : timeout value, if 0 the environment default will be used |
Definition at line 2155 of file XrdClFileSystem.cc.
References XrdCl::Status::IsOK(), ListXAttr(), and XrdCl::MessageUtils::WaitForResponse().
Here is the call graph for this function:| XRootDStatus XrdCl::FileSystem::Locate | ( | const std::string & | path, |
| OpenFlags::Flags | flags, | ||
| LocationInfo *& | response, | ||
| uint16_t | timeout = 0 |
||
| ) |
Locate a file - sync
| path | path to the file to be located |
| flags | some of the OpenFlags::Flags |
| response | the response (to be deleted by the user) |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1164 of file XrdClFileSystem.cc.
References XrdCl::Status::IsOK(), Locate(), and XrdCl::MessageUtils::WaitForResponse().
Here is the call graph for this function:| XRootDStatus XrdCl::FileSystem::Locate | ( | const std::string & | path, |
| OpenFlags::Flags | flags, | ||
| ResponseHandler * | handler, | ||
| uint16_t | timeout = 0 |
||
| ) |
Locate a file - async
| path | path to the file to be located |
| flags | some of the OpenFlags::Flags |
| handler | handler to be notified when the response arrives, the response parameter will hold a Buffer object if the procedure is successful |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1135 of file XrdClFileSystem.cc.
References XrdCl::Buffer::Append(), XrdCl::MessageUtils::CreateRequest(), ClientLocateRequest::dlen, XrdCl::FileSystemImpl::fsdata, kXR_locate, XrdCl::FileSystemPlugIn::Locate(), ClientLocateRequest::options, XrdCl::MessageUtils::ProcessSendParams(), ClientLocateRequest::requestid, XrdCl::FileSystemData::Send(), XrdCl::XRootDTransport::SetDescription(), and XrdCl::MessageSendParams::timeout.
Referenced by DeepLocate(), DirList(), DoLocate(), and Locate().
Here is the call graph for this function:
Here is the caller graph for this function:| XRootDStatus XrdCl::FileSystem::MkDir | ( | const std::string & | path, |
| MkDirFlags::Flags | flags, | ||
| Access::Mode | mode, | ||
| ResponseHandler * | handler, | ||
| uint16_t | timeout = 0 |
||
| ) |
Create a directory - async
| path | path to the directory |
| flags | or'd MkDirFlags |
| mode | access mode, or'd Access::Mode |
| handler | handler to be notified when the response arrives |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1383 of file XrdClFileSystem.cc.
References XrdCl::Buffer::Append(), XrdCl::MessageUtils::CreateRequest(), ClientMkdirRequest::dlen, XrdCl::FileSystemImpl::fsdata, kXR_mkdir, XrdCl::FileSystemPlugIn::MkDir(), ClientMkdirRequest::mode, ClientMkdirRequest::options, XrdCl::MessageUtils::ProcessSendParams(), ClientMkdirRequest::requestid, XrdCl::FileSystemData::Send(), XrdCl::XRootDTransport::SetDescription(), and XrdCl::MessageSendParams::timeout.
Referenced by DoMkDir(), XrdPosixXrootd::Mkdir(), and MkDir().
Here is the call graph for this function:
Here is the caller graph for this function:| XRootDStatus XrdCl::FileSystem::MkDir | ( | const std::string & | path, |
| MkDirFlags::Flags | flags, | ||
| Access::Mode | mode, | ||
| uint16_t | timeout = 0 |
||
| ) |
Create a directory - sync
| path | path to the directory |
| flags | or'd MkDirFlags |
| mode | access mode, or'd Access::Mode |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1413 of file XrdClFileSystem.cc.
References XrdCl::Status::IsOK(), MkDir(), and XrdCl::MessageUtils::WaitForStatus().
Here is the call graph for this function:| XRootDStatus XrdCl::FileSystem::Mv | ( | const std::string & | source, |
| const std::string & | dest, | ||
| ResponseHandler * | handler, | ||
| uint16_t | timeout = 0 |
||
| ) |
Move a directory or a file - async
| source | the file or directory to be moved |
| dest | the new name |
| handler | handler to be notified when the response arrives, |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1208 of file XrdClFileSystem.cc.
References XrdCl::Buffer::Append(), ClientMvRequest::arg1len, XrdCl::MessageUtils::CreateRequest(), ClientMvRequest::dlen, XrdCl::FileSystemImpl::fsdata, XrdCl::Buffer::GetBuffer(), kXR_mv, XrdCl::FileSystemPlugIn::Mv(), XrdCl::MessageUtils::ProcessSendParams(), ClientMvRequest::requestid, XrdCl::FileSystemData::Send(), XrdCl::XRootDTransport::SetDescription(), and XrdCl::MessageSendParams::timeout.
Referenced by DoMv(), Mv(), and XrdPosixXrootd::Rename().
Here is the call graph for this function:
Here is the caller graph for this function:| XRootDStatus XrdCl::FileSystem::Mv | ( | const std::string & | source, |
| const std::string & | dest, | ||
| uint16_t | timeout = 0 |
||
| ) |
Move a directory or a file - sync
| source | the file or directory to be moved |
| dest | the new name |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1240 of file XrdClFileSystem.cc.
References XrdCl::Status::IsOK(), Mv(), and XrdCl::MessageUtils::WaitForStatus().
Here is the call graph for this function:| XRootDStatus XrdCl::FileSystem::Ping | ( | ResponseHandler * | handler, |
| uint16_t | timeout = 0 |
||
| ) |
Check if the server is alive - async
| handler | handler to be notified when the response arrives |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1512 of file XrdClFileSystem.cc.
References XrdCl::MessageUtils::CreateRequest(), XrdCl::FileSystemImpl::fsdata, kXR_ping, XrdCl::FileSystemPlugIn::Ping(), XrdCl::MessageUtils::ProcessSendParams(), ClientPingRequest::requestid, XrdCl::FileSystemData::Send(), XrdCl::XRootDTransport::SetDescription(), and XrdCl::MessageSendParams::timeout.
Referenced by Ping().
Here is the call graph for this function:
Here is the caller graph for this function:| XRootDStatus XrdCl::FileSystem::Ping | ( | uint16_t | timeout = 0 | ) |
Check if the server is alive - sync
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1533 of file XrdClFileSystem.cc.
References XrdCl::Status::IsOK(), Ping(), and XrdCl::MessageUtils::WaitForStatus().
Here is the call graph for this function:| XRootDStatus XrdCl::FileSystem::Prepare | ( | const std::vector< std::string > & | fileList, |
| PrepareFlags::Flags | flags, | ||
| uint8_t | priority, | ||
| Buffer *& | response, | ||
| uint16_t | timeout = 0 |
||
| ) |
Prepare one or more files for access - sync
| fileList | list of files to be prepared |
| flags | PrepareFlags::Flags |
| priority | priority of the request 0 (lowest) - 3 (highest) |
| response | the response (to be deleted by the user) |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 2018 of file XrdClFileSystem.cc.
References XrdCl::Status::IsOK(), Prepare(), and XrdCl::MessageUtils::WaitForResponse().
Here is the call graph for this function:| XRootDStatus XrdCl::FileSystem::Prepare | ( | const std::vector< std::string > & | fileList, |
| PrepareFlags::Flags | flags, | ||
| uint8_t | priority, | ||
| ResponseHandler * | handler, | ||
| uint16_t | timeout = 0 |
||
| ) |
Prepare one or more files for access - async
| fileList | list of files to be prepared |
| flags | PrepareFlags::Flags |
| priority | priority of the request 0 (lowest) - 3 (highest) |
| handler | handler to be notified when the response arrives, the response parameter will hold a Buffer object if the procedure is successful |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1978 of file XrdClFileSystem.cc.
References XrdCl::Buffer::Append(), XrdCl::MessageUtils::CreateRequest(), ClientPrepareRequest::dlen, XrdCl::FileSystemImpl::fsdata, kXR_prepare, ClientPrepareRequest::options, ClientPrepareRequest::optionX, XrdCl::FileSystemPlugIn::Prepare(), XrdCl::MessageUtils::ProcessSendParams(), ClientPrepareRequest::prty, ClientPrepareRequest::requestid, XrdCl::FileSystemData::Send(), XrdCl::XRootDTransport::SetDescription(), and XrdCl::MessageSendParams::timeout.
Referenced by DoPrepare(), and Prepare().
Here is the call graph for this function:
Here is the caller graph for this function:| XRootDStatus XrdCl::FileSystem::Protocol | ( | ProtocolInfo *& | response, |
| uint16_t | timeout = 0 |
||
| ) |
Obtain server protocol information - sync
| response | the response (to be deleted by the user) |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1655 of file XrdClFileSystem.cc.
References XrdCl::Status::IsOK(), Protocol(), and XrdCl::MessageUtils::WaitForResponse().
Here is the call graph for this function:| XRootDStatus XrdCl::FileSystem::Protocol | ( | ResponseHandler * | handler, |
| uint16_t | timeout = 0 |
||
| ) |
Obtain server protocol information - async
| handler | handler to be notified when the response arrives, the response parameter will hold a ProtocolInfo object if the procedure is successful |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1633 of file XrdClFileSystem.cc.
References ClientProtocolRequest::clientpv, XrdCl::MessageUtils::CreateRequest(), XrdCl::FileSystemImpl::fsdata, kXR_protocol, kXR_PROTOCOLVERSION, XrdCl::MessageUtils::ProcessSendParams(), XrdCl::FileSystemPlugIn::Protocol(), ClientProtocolRequest::requestid, XrdCl::FileSystemData::Send(), XrdCl::XRootDTransport::SetDescription(), and XrdCl::MessageSendParams::timeout.
Referenced by Protocol().
Here is the call graph for this function:
Here is the caller graph for this function:| XRootDStatus XrdCl::FileSystem::Query | ( | QueryCode::Code | queryCode, |
| const Buffer & | arg, | ||
| Buffer *& | response, | ||
| uint16_t | timeout = 0 |
||
| ) |
Obtain server information - sync
| queryCode | the query code as specified in the QueryCode struct |
| arg | query argument |
| response | the response (to be deleted by the user) |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1281 of file XrdClFileSystem.cc.
References XrdCl::Status::IsOK(), Query(), and XrdCl::MessageUtils::WaitForResponse().
Here is the call graph for this function:| XRootDStatus XrdCl::FileSystem::Query | ( | QueryCode::Code | queryCode, |
| const Buffer & | arg, | ||
| ResponseHandler * | handler, | ||
| uint16_t | timeout = 0 |
||
| ) |
Obtain server information - async
| queryCode | the query code as specified in the QueryCode struct |
| arg | query argument |
| handler | handler to be notified when the response arrives, the response parameter will hold a Buffer object if the procedure is successful |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1255 of file XrdClFileSystem.cc.
References XrdCl::Buffer::Append(), XrdCl::MessageUtils::CreateRequest(), ClientQueryRequest::dlen, XrdCl::FileSystemImpl::fsdata, XrdCl::Buffer::GetBuffer(), XrdCl::Buffer::GetSize(), ClientQueryRequest::infotype, kXR_query, XrdCl::MessageUtils::ProcessSendParams(), XrdCl::FileSystemPlugIn::Query(), ClientQueryRequest::requestid, XrdCl::FileSystemData::Send(), XrdCl::XRootDTransport::SetDescription(), and XrdCl::MessageSendParams::timeout.
Referenced by XrdCl::Utils::CheckTPC(), XrdCl::Utils::CheckTPCLite(), XrdCl::EcHandler::Close(), DoQuery(), XrdCl::Utils::GetRemoteCheckSum(), XrdCl::FileSystemUtils::GetSpaceInfo(), XrdCl::Utils::GetSupportedCheckSums(), and Query().
Here is the call graph for this function:
Here is the caller graph for this function:| XRootDStatus XrdCl::FileSystem::Rm | ( | const std::string & | path, |
| ResponseHandler * | handler, | ||
| uint16_t | timeout = 0 |
||
| ) |
Remove a file - async
| path | path to the file to be removed |
| handler | handler to be notified when the response arrives |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1340 of file XrdClFileSystem.cc.
References XrdCl::Buffer::Append(), XrdCl::MessageUtils::CreateRequest(), ClientRmRequest::dlen, XrdCl::FileSystemImpl::fsdata, kXR_rm, XrdCl::MessageUtils::ProcessSendParams(), ClientRmRequest::requestid, XrdCl::FileSystemPlugIn::Rm(), XrdCl::FileSystemData::Send(), XrdCl::XRootDTransport::SetDescription(), and XrdCl::MessageSendParams::timeout.
Referenced by Rm(), XrdCl::ClassicCopyJob::Run(), and XrdPosixXrootd::Unlink().
Here is the call graph for this function:
Here is the caller graph for this function:| XRootDStatus XrdCl::FileSystem::Rm | ( | const std::string & | path, |
| uint16_t | timeout = 0 |
||
| ) |
Remove a file - sync
| path | path to the file to be removed |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1369 of file XrdClFileSystem.cc.
References XrdCl::Status::IsOK(), Rm(), and XrdCl::MessageUtils::WaitForStatus().
Here is the call graph for this function:| XRootDStatus XrdCl::FileSystem::RmDir | ( | const std::string & | path, |
| ResponseHandler * | handler, | ||
| uint16_t | timeout = 0 |
||
| ) |
Remove a directory - async
| path | path to the directory to be removed |
| handler | handler to be notified when the response arrives |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1429 of file XrdClFileSystem.cc.
References XrdCl::Buffer::Append(), XrdCl::MessageUtils::CreateRequest(), ClientRmdirRequest::dlen, XrdCl::FileSystemImpl::fsdata, kXR_rmdir, XrdCl::MessageUtils::ProcessSendParams(), ClientRmdirRequest::requestid, XrdCl::FileSystemPlugIn::RmDir(), XrdCl::FileSystemData::Send(), XrdCl::XRootDTransport::SetDescription(), and XrdCl::MessageSendParams::timeout.
Referenced by DoRmDir(), XrdPosixXrootd::Rmdir(), and RmDir().
Here is the call graph for this function:
Here is the caller graph for this function:| XRootDStatus XrdCl::FileSystem::RmDir | ( | const std::string & | path, |
| uint16_t | timeout = 0 |
||
| ) |
Remove a directory - sync
| path | path to the directory to be removed |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1455 of file XrdClFileSystem.cc.
References XrdCl::Status::IsOK(), RmDir(), and XrdCl::MessageUtils::WaitForStatus().
Here is the call graph for this function:| XRootDStatus XrdCl::FileSystem::SendCache | ( | const std::string & | info, |
| Buffer *& | response, | ||
| uint16_t | timeout = 0 |
||
| ) |
Send cache info to the server - sync.
Send cache into the server - sync
| info | the info string to be sent |
| response | the response (to be deleted by the user) |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1911 of file XrdClFileSystem.cc.
References XrdCl::Status::IsOK(), SendCache(), and XrdCl::MessageUtils::WaitForResponse().
Here is the call graph for this function:| XRootDStatus XrdCl::FileSystem::SendCache | ( | const std::string & | info, |
| ResponseHandler * | handler, | ||
| uint16_t | timeout = 0 |
||
| ) |
Send cache into the server - async
| info | the info string to be sent |
| handler | handler to be notified when the response arrives, the response parameter will hold a Buffer object if the procedure is successful |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1897 of file XrdClFileSystem.cc.
Referenced by DoCache(), and SendCache().
Here is the caller graph for this function:| XRootDStatus XrdCl::FileSystem::SendInfo | ( | const std::string & | info, |
| Buffer *& | response, | ||
| uint16_t | timeout = 0 |
||
| ) |
Send info to the server - sync.
Send info to the server (up to 1024 characters) - sync
| info | the info string to be sent |
| response | the response (to be deleted by the user) |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1938 of file XrdClFileSystem.cc.
References XrdCl::Status::IsOK(), SendInfo(), and XrdCl::MessageUtils::WaitForResponse().
Here is the call graph for this function:| XRootDStatus XrdCl::FileSystem::SendInfo | ( | const std::string & | info, |
| ResponseHandler * | handler, | ||
| uint16_t | timeout = 0 |
||
| ) |
Send info to the server (up to 1024 characters)- async
| info | the info string to be sent |
| handler | handler to be notified when the response arrives, the response parameter will hold a Buffer object if the procedure is successful |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1926 of file XrdClFileSystem.cc.
References XrdCl::FileSystemPlugIn::SendInfo().
Referenced by SendInfo().
Here is the call graph for this function:
Here is the caller graph for this function:| bool XrdCl::FileSystem::SetProperty | ( | const std::string & | name, |
| const std::string & | value | ||
| ) |
Set filesystem property
Filesystem properties: FollowRedirects [true/false] - enable/disable following redirections
Definition at line 2175 of file XrdClFileSystem.cc.
References XrdCl::FileSystemImpl::fsdata, and XrdCl::FileSystemPlugIn::SetProperty().
Here is the call graph for this function:| XRootDStatus XrdCl::FileSystem::SetXAttr | ( | const std::string & | path, |
| const std::vector< xattr_t > & | attrs, | ||
| ResponseHandler * | handler, | ||
| uint16_t | timeout = 0 |
||
| ) |
Set extended attributes - async
| attrs | : list of extended attributes to set |
| handler | : handler to be notified when the response arrives, the response parameter will hold a std::vector of XAttrStatus objects |
| timeout | : timeout value, if 0 the environment default will be used |
Definition at line 2035 of file XrdClFileSystem.cc.
References XrdCl::errNotSupported, kXR_fattrSet, and XrdCl::stError.
Referenced by DoXAttr(), and SetXAttr().
Here is the caller graph for this function:| XRootDStatus XrdCl::FileSystem::SetXAttr | ( | const std::string & | path, |
| const std::vector< xattr_t > & | attrs, | ||
| std::vector< XAttrStatus > & | result, | ||
| uint16_t | timeout = 0 |
||
| ) |
Set extended attributes - sync
| attrs | : list of extended attributes to set |
| result | : result of the operation |
| timeout | : timeout value, if 0 the environment default will be used |
Definition at line 2049 of file XrdClFileSystem.cc.
References XrdCl::Status::IsOK(), SetXAttr(), and XrdCl::MessageUtils::WaitForResponse().
Here is the call graph for this function:| XRootDStatus XrdCl::FileSystem::Stat | ( | const std::string & | path, |
| ResponseHandler * | handler, | ||
| uint16_t | timeout = 0 |
||
| ) |
Obtain status information for a path - async
| path | file/directory path |
| handler | handler to be notified when the response arrives, the response parameter will hold a StatInfo object if the procedure is successful |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1546 of file XrdClFileSystem.cc.
References XrdCl::Buffer::Append(), XrdCl::MessageUtils::CreateRequest(), ClientStatRequest::dlen, XrdCl::FileSystemImpl::fsdata, kXR_stat, ClientStatRequest::options, XrdCl::MessageUtils::ProcessSendParams(), ClientStatRequest::requestid, XrdCl::FileSystemData::Send(), XrdCl::XRootDTransport::SetDescription(), XrdCl::FileSystemPlugIn::Stat(), and XrdCl::MessageSendParams::timeout.
Referenced by DirList(), DoCD(), DoLS(), main(), and Stat().
Here is the call graph for this function:
Here is the caller graph for this function:| XRootDStatus XrdCl::FileSystem::Stat | ( | const std::string & | path, |
| StatInfo *& | response, | ||
| uint16_t | timeout = 0 |
||
| ) |
Obtain status information for a path - sync
| path | file/directory path |
| response | the response (to be deleted by the user only if the procedure is successful) |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1576 of file XrdClFileSystem.cc.
References XrdCl::Status::IsOK(), Stat(), and XrdCl::MessageUtils::WaitForResponse().
Here is the call graph for this function:| XRootDStatus XrdCl::FileSystem::StatVFS | ( | const std::string & | path, |
| ResponseHandler * | handler, | ||
| uint16_t | timeout = 0 |
||
| ) |
Obtain status information for a Virtual File System - async
| path | file/directory path |
| handler | handler to be notified when the response arrives, the response parameter will hold a StatInfoVFS object if the procedure is successful |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1591 of file XrdClFileSystem.cc.
References XrdCl::Buffer::Append(), XrdCl::MessageUtils::CreateRequest(), ClientStatRequest::dlen, XrdCl::FileSystemImpl::fsdata, kXR_stat, kXR_vfs, ClientStatRequest::options, XrdCl::MessageUtils::ProcessSendParams(), ClientStatRequest::requestid, XrdCl::FileSystemData::Send(), XrdCl::XRootDTransport::SetDescription(), XrdCl::FileSystemPlugIn::StatVFS(), and XrdCl::MessageSendParams::timeout.
Referenced by DoStatVFS(), XrdPosixXrootd::Statvfs(), and StatVFS().
Here is the call graph for this function:
Here is the caller graph for this function:| XRootDStatus XrdCl::FileSystem::StatVFS | ( | const std::string & | path, |
| StatInfoVFS *& | response, | ||
| uint16_t | timeout = 0 |
||
| ) |
Obtain status information for a Virtual File System - sync
| path | file/directory path |
| response | the response (to be deleted by the user) |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1618 of file XrdClFileSystem.cc.
References XrdCl::Status::IsOK(), StatVFS(), and XrdCl::MessageUtils::WaitForResponse().
Here is the call graph for this function:| XRootDStatus XrdCl::FileSystem::Truncate | ( | const std::string & | path, |
| uint64_t | size, | ||
| ResponseHandler * | handler, | ||
| uint16_t | timeout = 0 |
||
| ) |
Truncate a file - async
| path | path to the file to be truncated |
| size | file size |
| handler | handler to be notified when the response arrives |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1297 of file XrdClFileSystem.cc.
References XrdCl::Buffer::Append(), XrdCl::MessageUtils::CreateRequest(), ClientTruncateRequest::dlen, XrdCl::FileSystemImpl::fsdata, kXR_truncate, ClientTruncateRequest::offset, XrdCl::MessageUtils::ProcessSendParams(), ClientTruncateRequest::requestid, XrdCl::FileSystemData::Send(), XrdCl::XRootDTransport::SetDescription(), XrdCl::MessageSendParams::timeout, and XrdCl::FileSystemPlugIn::Truncate().
Referenced by DoTruncate(), XrdPosixXrootd::Truncate(), and Truncate().
Here is the call graph for this function:
Here is the caller graph for this function:| XRootDStatus XrdCl::FileSystem::Truncate | ( | const std::string & | path, |
| uint64_t | size, | ||
| uint16_t | timeout = 0 |
||
| ) |
Truncate a file - sync
| path | path to the file to be truncated |
| size | file size |
| timeout | timeout value, if 0 the environment default will be used |
Definition at line 1325 of file XrdClFileSystem.cc.
References XrdCl::Status::IsOK(), Truncate(), and XrdCl::MessageUtils::WaitForStatus().
Here is the call graph for this function:
|
friend |
Definition at line 204 of file XrdClFileSystem.hh.
|
friend |
Definition at line 205 of file XrdClFileSystem.hh.