XRootD
XrdCl::LocationInfo::Location Class Reference

Location. More...

#include <XrdClXRootDResponses.hh>

+ Collaboration diagram for XrdCl::LocationInfo::Location:

Public Member Functions

 Location (const std::string &address, LocationType type, AccessType access)
 Constructor. More...
 
AccessType GetAccessType () const
 Get access type. More...
 
const std::string & GetAddress () const
 Get address. More...
 
LocationType GetType () const
 Get location type. More...
 
bool IsManager () const
 Check whether the location is a manager. More...
 
bool IsServer () const
 Check whether the location is a server. More...
 

Detailed Description

Location.

Definition at line 69 of file XrdClXRootDResponses.hh.

Constructor & Destructor Documentation

◆ Location()

XrdCl::LocationInfo::Location::Location ( const std::string &  address,
LocationType  type,
AccessType  access 
)
inline

Constructor.

Definition at line 76 of file XrdClXRootDResponses.hh.

78  :
79  pAddress( address ),
80  pType( type ),
81  pAccess( access ) {}
int access(const char *path, int amode)

Member Function Documentation

◆ GetAccessType()

AccessType XrdCl::LocationInfo::Location::GetAccessType ( ) const
inline

Get access type.

Definition at line 102 of file XrdClXRootDResponses.hh.

103  {
104  return pAccess;
105  }

◆ GetAddress()

const std::string& XrdCl::LocationInfo::Location::GetAddress ( ) const
inline

Get address.

Definition at line 86 of file XrdClXRootDResponses.hh.

87  {
88  return pAddress;
89  }

Referenced by XrdCl::FileSystem::DirList(), XrdCl::ServerSpaceInfo::SelectLocations(), and XrdFfsPosix_mkdir().

+ Here is the caller graph for this function:

◆ GetType()

LocationType XrdCl::LocationInfo::Location::GetType ( ) const
inline

Get location type.

Definition at line 94 of file XrdClXRootDResponses.hh.

95  {
96  return pType;
97  }

Referenced by XrdCl::ServerSpaceInfo::SelectLocations().

+ Here is the caller graph for this function:

◆ IsManager()

bool XrdCl::LocationInfo::Location::IsManager ( ) const
inline

Check whether the location is a manager.

Definition at line 118 of file XrdClXRootDResponses.hh.

119  {
120  return pType == ManagerOnline || pType == ManagerPending;
121  }
@ ManagerOnline
manager node where the file is online
@ ManagerPending
manager node where the file is pending to be online

References XrdCl::LocationInfo::ManagerOnline, and XrdCl::LocationInfo::ManagerPending.

◆ IsServer()

bool XrdCl::LocationInfo::Location::IsServer ( ) const
inline

Check whether the location is a server.

Definition at line 110 of file XrdClXRootDResponses.hh.

111  {
112  return pType == ServerOnline || pType == ServerPending;
113  }
@ ServerPending
server node where the file is pending to be online
@ ServerOnline
server node where the file is online

References XrdCl::LocationInfo::ServerOnline, and XrdCl::LocationInfo::ServerPending.


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