Grid Community Toolkit
6.2.1705709074 (tag: v6.2.20240202)
|
Net Manager Python Module. More...
Net Manager Python Module.
The Net Manager Python module is an example module that provides basic Python language bindings to the Network Manager callout functionality. To use this example, define a python module that implements the some subset of the following functions:
The task_id, transport, local_contact, and remote_contact parameters to these functions are all string objects. The attrs parameter to these functions are lists of 3-tuples (scope, name, value).
To use this with the GridFTP server, add a file containing the following to the GridFTP configuration directory /etc/gridftp.d
:
$PYTHONPATH PATH xnetmgr "manager=python;pymod=MODULE_NAME;"
Where 'PATH' is the directory containing your module and 'MODULE_NAME' is the name of the python module that you would use to import it (i.e. without the '.py' extension). So a module '/usr/local/globus/routeman.py' would require
$PYTHONPATH /usr/local/globus xnetmgr "manager=python;pymod=routeman;"
To use this with the XIO module directly, set the string options manager=python;pymod=routeman;
. You'll need to set the PYTHONPATH
environment variable elsewhere.
To configure the network manager to use this module directly without XIO, set the "pymod" attribute in the "python" scope to the name of the python module to import and use. For example:
and pass this to the context functions.