t provides get and set methods for all of the various handle
specific attributes, and hides the underlying memory management.
Methods
|
|
|
|
__del__
|
__del__ ( self )
Destroys an instance.
It will close the connection, and deactivate the globus_replica_management
module, and delete the handle.
Raises:
A SessionAttrException 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_management_module, and create
the session attr handle..
Arguments
Raises:
A SessionAttrException is thrown if unable to activate the module, or
create the attribute.
|
|
copy
|
copy ( self )
Copy the session attributes.
Returns
A new SessionAttr instance with the same setting as self.
Raisess
A SessionAttrException is thrown if unable to copy the attr.
|
|
get_caching
|
get_caching ( self )
Get the catalog connection caching behavior.
Returns
A boolean, true if caching is enable, false otherwise.
Raises
A SessionAttrException is thrown if unable to get the caching
behavior.
|
|
get_ftp_handleattr
|
get_ftp_handleattr ( self )
Get the GridFTP handle attributes.
These attributes are used when initializing the GridFTP handle.
Returns
A HandleAttr instance.
Raises
A SessionAttrException is thrown if unable to get the ftp
handleattr.
|
|
get_ftp_update_frequency
|
get_ftp_update_frequency ( self )
Get the rollback and restart information update frequency.
Returns
how often the rollback and restart information
is generated during a transfer is pushed out to the rollback
and restart information entry, expressed as a multiple of 5
second intervals
Raises
A SessionAttrException is thrown if unable to get the update
frequency.
|
|
get_handle
|
get_handle ( self )
Return the underlying replica management 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.
|
|
get_third_party_transfer
|
get_third_party_transfer ( self )
Get the catalog connection third_party_transfer behavior.
Returns
A boolean, true if third_party_transfer is enable, false otherwise.
Raises
A SessionAttrException is thrown if unable to get the third_party_transfer
behavior.
|
|
set_caching
|
set_caching ( self, caching )
Set the catalog connection caching behavior.
Arguments
Raises
A SessionAttrException is thrown if unable to set the
caching behavior.
|
|
set_ftp_handleattr
|
set_ftp_handleattr ( self, ftpAttr )
Set the GridFTP handle attributes.
These attributes are used when initializing the GridFTP handle.
Arguments
Raises
A SessionAttrException is thrown if unable to set the ftp
handleattr.
|
|
set_ftp_update_frequency
|
set_ftp_update_frequency ( self, frequency )
Set the rollback and restart information update frequency.
Arguments
Raises
A SessionAttrException is thrown if unable to set the update
frequency.
|
|
set_third_party_transfer
|
set_third_party_transfer ( self, third_party_transfer )
Set whether to initiate an FTP third party transfer or to buffer the transfer locally.
he default is to use third party transfer.
Arguments
Raises
A SessionAttrException is thrown if unable to set the
third_party_transfer behavior.
|