Package pyGlobus :: Module gassTransfer :: Class TransferClient
[show private | hide private]
[frames | no frames]

Class TransferClient

TransferData --+
               |
              TransferClient


Method Summary
  __init__(self)
  __del__(self)
frees the memory associated with the callaback handles
  append(self, attr, url, length)
Return a TransferRequest object is returned
  get(self, attr, url)
Return request is a SWIG'ized pointer to the underlying request handle.
  put(self, attr, url, length)
Return a TransferRequest object is returned
  register_append(self, attr, url, callback, arg, length)
Return a TransferRequest object is returned
  register_get(self, attr, url, callback, arg)
Return request is a SWIG'ized pointer to the underlying request handle.
  register_put(self, attr, url, callback, arg, length)
Return a TransferRequest object is returned
    Inherited from TransferData
  free_callback(self, cbHandle)
Free a callback.
  receive_bytes(self, request, buffer, wait_for_amount, callback, arg)
Return a SWIG'ized pointer to the callback handle is returned.
  send_bytes(self, request, buffer, eof, callback, arg)
After authorizing a request the server calls send bytes which sends the data in the buffer object

Method Details

__del__(self)
(Destructor)

frees the memory associated with the callaback handles
Overrides:
pyGlobus.gassTransfer.TransferData.__del__ (inherited documentation)

append(self, attr, url, length=0)

Parameters:
attr - is a RequestAttr object
url -

is the url that is the file that you want to append to An example of a url could be http://huey.lbl.gov:3730/etc/group

This function is blocking
length - is the length of the file that you wish to append The default 0, will do the put with the length argument GLOBUS_GASS_TRANSFER_LENGTH_UNKNOWN
Returns:
A TransferRequest object is returned
Raises:
TransferException - A TransferException is raised if the register_append can not be made

get(self, attr, url)

Parameters:
attr - is a RequestAttr object
url -

is the url that is the file that you want to get An example of a url could be http://huey.lbl.gov:3730/etc/group

This function is blocking
Returns:
request is a SWIG'ized pointer to the underlying request handle. The request handle is a client side request handle
Raises:
TransferException - A TransferException is raised if the get cannot be made

put(self, attr, url, length=0)

Parameters:
attr - is a RequestAttr object
url - is the url that is the file that you want to put An example of a url could be http://huey.lbl.gov:3730/etc/group
length -

is the length of the file that you wish to put The default 0, will do the put with the length argument GLOBUS_GASS_TRANSFER_LENGTH_UNKNOWN

This function is blocking
Returns:
A TransferRequest object is returned
Raises:
TransferException - A TransferException is raised if the put cannot be made

register_append(self, attr, url, callback, arg, length=0)

Parameters:
attr - is a RequestAttr object
url - is the url that is the file that you want to append to An example of a url could be http://huey.lbl.gov:3730/etc/group
callback - is a function that will be called back after the request to get has been authorized, denied or refered
arg - is a user argument to the callback function
length -

is the length of the file that you wish to append The default 0, will do the put with the length argument GLOBUS_GASS_TRANSFER_LENGTH_UNKNOWN

This function is non-blocking
Returns:
A TransferRequest object is returned
Raises:
TransferException - A TransferException is raised if the register_append cannot be made

register_get(self, attr, url, callback, arg)

Parameters:
attr - is a RequestAttr object
url - is the url that is the file that you want to get An example of a url is http://huey.lbl.gov:3730/etc/group
callback - is a function that will be called back after the request to get has been authorized, denied or refered
arg -

is a user argument to the callback function

This function is non-blocking
Returns:
request is a SWIG'ized pointer to the underlying request handle. The request handle is a client side request handle
Raises:
TransferException - A TransferException is raised if the register_get cannot be made

register_put(self, attr, url, callback, arg, length=0)

Parameters:
attr - is a RequestAttr object
url - is the url that is the file that you want to put An example of a url could be http://huey.lbl.gov:3730/etc/group
callback - is a function that will be called back after the request to get has been authorized, denied or refered
arg -

is a user argument to the callback function

This function is non-blocking
length - is the length of the file that you wish to put The default 0, will do the put with the length argument GLOBUS_GASS_TRANSFER_LENGTH_UNKNOWN
Returns:
A TransferRequest object is returned
Raises:
TransferException - A TransferException is raised if the register_put cannot be made

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