#include <XrdCmsUtils.hh>
◆ XrdCmsUtils()
XrdCmsUtils::XrdCmsUtils |
( |
| ) |
|
|
inline |
◆ ~XrdCmsUtils()
XrdCmsUtils::~XrdCmsUtils |
( |
| ) |
|
◆ Display()
static void XrdCmsUtils::Display |
( |
XrdSysError * |
eDest, |
|
|
const char * |
hSpec, |
|
|
const char * |
hName, |
|
|
bool |
isBad |
|
) |
| |
|
staticprivate |
◆ loadPerfMon()
Load the performance monitor plugin.
- Parameters
-
eDest | Pointer to the error message object to route messages. |
libPath | A pointer to the shared library path. |
urVer | Reference to the caller's version number. |
- Returns
- Pointer to the performance monitor object or nil upon failure.
◆ ParseMan()
static bool XrdCmsUtils::ParseMan |
( |
XrdSysError * |
eDest, |
|
|
XrdOucTList ** |
oldMans, |
|
|
char * |
hSpec, |
|
|
char * |
hPort, |
|
|
int * |
sPort = 0 , |
|
|
bool |
hush = false |
|
) |
| |
|
static |
Obtain and merge a new manager list with an existing list.
- Parameters
-
eDest | Pointer to the error message object to route messages. |
oldMans | A pointer to the existing list of managers, if any. If oldMans is nil, then the hSpec/hPort/sPort is processed but no list is returned. |
hSpec | the host specification suitable for XrdNetAddr.Set(). The hSpec may end with a '+' indicating that all addresses assigned to hSpec be considered for inclusion. |
hPort | the port specification which can be a text number or a service name (e.g. xroot). |
sPort | If not nil, the *sPort will be set to the numeric hPort if the IP address in one of the entries matches the host address. Otherwise, the value is unchanged. |
hush | When true does not print the dns name to host mappings. |
- Returns
- Success: True and if oldMans is supplied, the additional entries that do not duplicate existing entries are added to the front. Note: *oldMans->val is the port number. *oldMans->text is the host name. The list of objects belongs to the caller. Failure: False. Any existing list is not modified. However, sPort may be updated, if correct, even when false is returned.
◆ ParseManPort()
Obtain the port for a manager specification
- Parameters
-
eDest | Pointer to the error message object to route messages. |
CFile | The configuration file stream. |
hSpec | The initial manager specification which may or may not have the port number in it. |
- Returns
- Success: Pointer to a copy of the port specification. The caller is responsible for freeing it using free(). Failure: A nil pointer. An error message has already been issued.
◆ SInsert()
◆ SiteName()
static const char * XrdCmsUtils::SiteName |
( |
int |
snum | ) |
|
|
static |
Translate site number to site name.
- Parameters
-
- Returns
- Pointer to the corresponding site name (anonymous if none).
The documentation for this class was generated from the following file: