xrootd
Enumerations | Functions
XrdCms Namespace Reference

Enumerations

enum  { IsProxy = 1, IsRedir = 2, IsTarget = 4, IsMeta = 8 }
 

Functions

XrdCmsClientGetDefaultClient (XrdSysLogger *Logger, int opMode, int myPort)
 

Detailed Description

The following instantiation mode flags are passed to the instantiator (see comments that follow). They may be or'd together, depending on which mode the cms client should operate. They are defined as follows:

extern "C" XrdCmsClient *XrdCmsGetClient(XrdSysLogger *Logger, int opMode, int myPort XrdOss *theSS);Obtain an instance of a default unconfigured XrdCmsClient.

The following function may be called to obtain an instance of the default XrdCmsClient object. The Configure() method is not called before the object is returned. The parameters are the same as those for the function XrdCmsGetClient(), above. Note that you need not supply a pointer to the underlying storage system, as this is historic in nature.

Returns
Success: a pointer to the appropriate object (IsRedir or IsTarget).
    Failure: a null pointer, neither ISRedir nor IsTarget has been
             specified or there is insufficient memory.  

Enumeration Type Documentation

anonymous enum
Enumerator
IsProxy 

The role is proxy {plus one or more of the below}.

IsRedir 

The role is manager and will redirect users.

IsTarget 

The role is server and will be a redirection target.

IsMeta 

The role is meta {plus one or more of the above}.

Function Documentation

XrdCmsClient* XrdCms::GetDefaultClient ( XrdSysLogger Logger,
int  opMode,
int  myPort 
)