Package pyGlobus :: Module gassCopy :: Class Attr
[show private | hide private]
[frames | no frames]

Class Attr


A class to wrap the gass copy attr functions.

It provides get and set methods for all of the various attributes.
Method Summary
  __init__(self, handle)
Constructs an instance.
  __del__(self)
Destroy an instance.
  get_handle(self)
Return the underlying gass copy attr handle.
  set_ftp(self, ftpAttr)
Sets the ftp specific attributes.
  set_gass_transfer(self, transferReqAttr)
Sets the http/https specific attributes.
  set_io(self, ioAttr)
Sets the file specific attributes.

Method Details

__init__(self, handle=None)
(Constructor)

Constructs an instance.

Activates the gass copy module, and then creates the underlying gass copy attr handle.
Parameters:
handle - An optional argument that if present will be used as the gass copy attr handle. The class then owns the handle, and will delete it at destruction.
Raises:
AttrException - A AttrException is thrown if unable to initialize the module or create the handle.

__del__(self)
(Destructor)

Destroy an instance.

It destroys the handle, and then deactivates the module.
Raises:
AttrException - A AttrException is thrown if unable to deactivate the module.

get_handle(self)

Return the underlying gass copy attr handle.
Returns:
A string containing the pointer.

Warning: This handle is only valid as long as this object exists. When

set_ftp(self, ftpAttr)

Sets the ftp specific attributes.
Parameters:
ftpAttr - A FtpClientOperationAttr object with the proper attributes set.
Raises:
AttrException - A AttrException is thrown if unable to set the ftp attr.

set_gass_transfer(self, transferReqAttr)

Sets the http/https specific attributes.
Parameters:
transferReqAttr - A TransferReqAttr object with the proper attributes set.
Raises:
AttrException - A AttrException is thrown if unable to set the gass transfer attr.

set_io(self, ioAttr)

Sets the file specific attributes.

Sets the attributes for a file transfer.
Parameters:
ioAttr - A FileIOAttr with the proper attributes set.
Raises:
AttrException - A AttrException is thrown if unable to set the io attr.

Generated by Epydoc 2.1 on Tue Apr 4 14:32:52 2006 http://epydoc.sf.net