xrootd
|
Go to the source code of this file.
Classes | |
class | XrdSecGMapEntry_t |
class | XrdOucGMap |
Macros | |
#define | XrdOucGMapArgs |
Functions | |
XrdOucGMap * | XrdOucgetGMap (XrdOucGMapArgs) |
#define XrdOucGMapArgs |
Constructor
eDest | -> The error object that must be used to print any errors or other messages (see XrdSysError.hh). |
mapfn | -> Path to the grid map file to be used. This pointer may be null; the default path will be tested then. |
parms | -> Argument string specified on the gridmap directive. It may be null or point to a null string if no parms exist. Curently supported parms: dbg to enable debug printouts to=timeout to set a timeout in secs on the validity of the information loaded from the file Default is 600 (10'); the reload is triggered by the first mapping request after the timeout is expired; the file is reloaded only if changed. |
XrdOucGMap * XrdOucgetGMap | ( | XrdOucGMapArgs | ) |
Obtain an instance of the XrdOucGMap object.
This extern "C" function is called when a shared library plug-in containing implementation of this class is loaded. It must exist in the shared library and must be thread-safe.
eDest | -> The error object that must be used to print any errors or other messages (see XrdSysError.hh). |
mapfn | -> Path to the grid map file to be used. This pointer may be null; the default path will be tested then. |
parms | -> Argument string specified on the gridmap directive. It may be null or point to a null string if no parms exist. |
The GMap object is used frequently in the course of creating new physical connections. The algorithms used by this object must be efficient and speedy; otherwise system performance will be severely degraded. Declare compilation version.
Additionally, you should declare the xrootd version you used to compile your plug-in. While not currently required, it is highly recommended to avoid execution issues should the class definition change. Declare it as:
#include "XrdVersion.hh" XrdVERSIONINFO(XrdOucgetGMap,<name>);
where <name> is a 1- to 15-character unquoted name identifying your plugin.