Module gridftpClient :: Class OperationAttr
[hide private]
[frames] | no frames]

Class OperationAttr

source code

object --+
         |
        OperationAttr

A wrapping of the Globus GridFTP API globus_ftp_client_operationattr_t.

Instance Methods [hide private]
instance
__init__(self)
Constructs an instance.
source code
None
__del__(self)
Destroy an instance.
source code
None
set_mode_extended_block(self)
Set the file transfer mode attribute for an ftp client attribute set to EXTENDED BLOCK MODE.
source code
None
set_parallelism(self, parallelism)
Set the parallelism attribute for an ftp client attribute set.
source code
None
set_tcp_buffer(self, tcpbuffer)
Set the TCP buffer attribute for an ftp client attribute set.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Constructs an instance. A wrapped pointer to the Globus C type that is created is stored as the ._attr attribute to the instance.

Returns: instance
an instance of the class
Raises:
Overrides: object.__init__

__del__(self)
(Destructor)

source code 

Destroy an instance. The wrapped pointer to the Globus C type is used by globus_free() to free all the memory associated with the Globus C type.

Returns: None
None
Raises:

set_mode_extended_block(self)

source code 

Set the file transfer mode attribute for an ftp client attribute set to EXTENDED BLOCK MODE.

Extended block mode is a file transfer mode where data can be sent over multiple parallel connections and to multiple data storage nodes to provide a high-performance data transfer. In extended block mode, data may arrive out-of-order. ASCII type files are not supported in extended block mode.

Returns: None
None
Raises:

set_parallelism(self, parallelism)

source code 

Set the parallelism attribute for an ftp client attribute set.

This attribute allows the user to control the level of parallelism to be used on an extended block mode file transfer. Currently, only a "fixed" parallelism level is supported. This is interpreted by the FTP server as the number of parallel data connections to be allowed for each stripe of data.

To set the number of parallel channels to be used for a transfer create an instance of the Parallelism class and set the mode and size and then use that instance as the argument to this method.

Parameters:
  • parallelism (instance of Parallelism) - An instance of the Parallelism class prepared with the correct mode and size to represent the number of parallel channels to use.
Returns: None
None
Raises:

set_tcp_buffer(self, tcpbuffer)

source code 

Set the TCP buffer attribute for an ftp client attribute set.

This attribute allows the user to control the TCP buffer size used for all data channels used in a file transfer.

To set the TCP buffer size for a transfer create an instance of the TCPBuffer class and set the mode and size and then use that instance as the argument to this method.

Parameters:
  • tcpbuffer (instance of TCPBuffer) - An instance of the TcpBuffer class prepared with the correct mode and size to represent the side of the TCP buffer that should be used for the transfer.
Returns: None
None
Raises: