The main interface to the replica catatlog collection attribute module.
t provides get and set methods for all of the various handle
specific attributes, and hides the underlying memory management.
Methods
|
|
__del__
__init__
get_authentication_mode
get_handle
set_authentication_mode
|
|
__del__
|
__del__ ( self )
Destroys an instance.
It will close the connection, and deactivate the globus_replica_catalog
module, and delete the handle.
Raises:
A CollectionAttrException is thrown if unable to destroy the module. This
exception can't be caught, and should never happend. It's there mainly
for debugging if it does happen. :-)
|
|
__init__
|
__init__ ( self, handle=None )
Construct an instance.
This will activate the globus_replica_catalog_module, and create
the collection attr handle..
Arguments
Raises:
A CollectionAttrException is thrown if unable to activate the module, or
create the attribute.
|
|
get_authentication_mode
|
get_authentication_mode ( self )
Get the authentication mode of the connection attributes.
Returns
A 3-tuple is returned. (mode, usr, passwd). If mode is secure,
usr and passwd are None. The possible modes are the same
as set_authentication_mode.
Raises
A CollectionAttrException is thrown if unable to get the
authentication mode.
|
|
get_handle
|
get_handle ( self )
Return the underlying replica catalog handle attr handle.
XXX This handle is only valid as long as this object exists. When
the object is destroyed, the memory this handle points to is freed.
Returns:
A string containing the pointer.
|
|
set_authentication_mode
|
set_authentication_mode (
self,
mode,
usr=None,
passwd=None,
)
Set the authentication mode of the connection attributes.
The current implementation requires the authentication mode be set to
GLOBUS_REPLICA_CATALOG_AUTHENTICATION_MODE_CLEARTEXT.
To connect to a replica catalog that allows unauthenticated queries
(generally not updates as well), set the authentication mode to
GLOBUS_REPLICA_CATALOG_AUTHENTICATION_MODE_CLEARTEXT
and pass in None for both username and password.
Arguments
mode Type of authentication to use when connecting to
the catalog. One of:
GLOBUS_REPLICA_CATALOG_AUTHENTICATION_MODE_CLEARTEXT,
GLOBUS_REPLICA_CATALOG_AUTHENTICATION_MODE_SECURE
usr The string user name to connectin with if set to auth mode cleartext.
passwd The string password to use if auth mode is set to cleartext.
Raises
A CollectionAttrException is thrown if unable to set the authentication
mode.
|
|