Table of Contents

Class: SessionAttr ./pyGlobus/replicaManagement.py

The main interface to the replica management session 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__
copy
get_caching
get_ftp_handleattr
get_ftp_update_frequency
get_handle
get_third_party_transfer
set_caching
set_ftp_handleattr
set_ftp_update_frequency
set_third_party_transfer
  __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. :-)

Exceptions   
ex
  __init__ 
__init__ ( self,  handle=None )

Construct an instance.

This will activate the globus_replica_management_module, and create the session attr handle..

Arguments

  • handle A SWIG'ized pointer to a globus_replica_management_handleattr.

Raises:

A SessionAttrException is thrown if unable to activate the module, or create the attribute.

Exceptions   
ex
  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.

Exceptions   
ex
  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.

Exceptions   
ex
  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.

Exceptions   
ex
  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.

Exceptions   
ex
  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.

Exceptions   
ex
  set_caching 
set_caching ( self,  caching )

Set the catalog connection caching behavior.

Arguments

  • caching boolean, whether to enable caching.

Raises

A SessionAttrException is thrown if unable to set the caching behavior.

Exceptions   
ex
  set_ftp_handleattr 
set_ftp_handleattr ( self,  ftpAttr )

Set the GridFTP handle attributes.

These attributes are used when initializing the GridFTP handle.

Arguments

  • ftpAttr A HandleAttr instance.

Raises

A SessionAttrException is thrown if unable to set the ftp handleattr.

Exceptions   
ex
  set_ftp_update_frequency 
set_ftp_update_frequency ( self,  frequency )

Set the rollback and restart information update frequency.

Arguments

  • frequency 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 set the update frequency.

Exceptions   
ex
  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

  • third_party_transfer boolean, whether to enable third_party_transfer.

Raises

A SessionAttrException is thrown if unable to set the third_party_transfer behavior.

Exceptions   
ex

Table of Contents

This document was automatically generated on Tue Feb 4 16:47:03 2003 by HappyDoc version 2.1