Data Structures | |
struct | globus_gass_copy_glob_stat_t |
Glob expanded entry information. More... |
Macros | |
#define | GLOBUS_GASS_COPY_MODULE (&globus_i_gass_copy_module) |
Typedefs | |
typedef void(* | globus_gass_copy_performance_cb_t )(void *user_arg, globus_gass_copy_handle_t *handle, globus_off_t total_bytes, float instantaneous_throughput, float avg_throughput) |
typedef void(* | globus_gass_copy_glob_entry_cb_t )(const char *url, const globus_gass_copy_glob_stat_t *info_stat, void *user_arg) |
Enumerations | |
enum | globus_gass_copy_glob_entry_t |
Functions | |
globus_result_t | globus_gass_copy_glob_expand_url (globus_gass_copy_handle_t *handle, const char *url, globus_gass_copy_attr_t *attr, globus_gass_copy_glob_entry_cb_t entry_cb, void *user_arg) |
globus_result_t | globus_gass_copy_mkdir (globus_gass_copy_handle_t *handle, char *url, globus_gass_copy_attr_t *attr) |
Header file for the gass copy library.
#define GLOBUS_GASS_COPY_MODULE (&globus_i_gass_copy_module) |
Module descriptor.
Globus GASS Copy uses standard Globus module activation and deactivation. Before any Globus GASS Copy functions are called, the following function must be called:
This function returns GLOBUS_SUCCESS if Globus GASS Copy was successfully initialized, and you are therefore allowed to subsequently call Globus GASS Copy functions. Otherwise, an error code is returned, and Globus GASS Copy functions should not be subsequently called. This function may be called multiple times.
To deactivate Globus GASS Copy, the following function must be called:
This function should be called once for each time Globus GASS Copy was activated.
typedef void(* globus_gass_copy_performance_cb_t)(void *user_arg, globus_gass_copy_handle_t *handle, globus_off_t total_bytes, float instantaneous_throughput, float avg_throughput) |
Gass copy transfer performance callback.
This callback is registered with 'globus_gass_copy_register_performance_cb' It will be called during a transfer to supply performance information on current transfer. Its frequency will be at most one per second, but it is possible to receive no callbacks. This is possible in very short transfers and in ftp transfers in which the server does not provide performance information.
handle | the gass copy handle this transfer is occurring on |
user_arg | a user pointer registered with 'globus_gass_copy_register_performance_cb' |
total_bytes | the total number of bytes transfer so far |
instantaneous_throughput | instantaneous rate of transfer (since last callback or start) (bytes / sec) |
avg_throughput | the avg thoughput calculated since the start of the transfer (bytes / sec) |
typedef void(* globus_gass_copy_glob_entry_cb_t)(const char *url, const globus_gass_copy_glob_stat_t *info_stat, void *user_arg) |
Gass copy glob entry callback.
This callback is passed as a parameter to globus_gass_copy_glob_expand_url(). It is called once for each entry that the original expands to.
url | The full url to the expanded entry. A directory entry will end in a forward slash '/'. |
stat | A pointer to a globus_gass_copy_glob_stat_t containing information about the entry. |
user_arg | The user_arg passed to globus_gass_copy_glob_expand() |
globbed entry types
globus_result_t globus_gass_copy_glob_expand_url | ( | globus_gass_copy_handle_t * | handle, |
const char * | url, | ||
globus_gass_copy_attr_t * | attr, | ||
globus_gass_copy_glob_entry_cb_t | entry_cb, | ||
void * | user_arg | ||
) |
Expand globbed url.
This function expands wildcards in a globbed url, and calls entry_cb() on each one.
handle | A gass copy handle to use for the operation. |
url | The URL to expand. The URL may be an ftp, gsiftp or file URL. Wildcard characters supported are '?' '*' '[ ]' in the filename portion of the url. |
attr | Gass copy attributes for this operation. |
entry_cb | Function to call with information about each entry |
user_arg | An argument to pass to entry_cb() |
References globus_gass_copy_glob_expand_url(), GLOBUS_GASS_COPY_MODULE, globus_gass_copy_glob_stat_t::mdtm, globus_gass_copy_glob_stat_t::mode, globus_gass_copy_glob_stat_t::size, globus_gass_copy_glob_stat_t::symlink_target, globus_gass_copy_glob_stat_t::type, and globus_gass_copy_glob_stat_t::unique_id.
globus_result_t globus_gass_copy_mkdir | ( | globus_gass_copy_handle_t * | handle, |
char * | url, | ||
globus_gass_copy_attr_t * | attr | ||
) |
Make directory.
This function creates a directory given a ftp or file url.
handle | A gass copy handle to use for the mkdir operation. |
url | The URL for the directory to create. The URL may be an ftp, gsiftp or file URL. |
attr | Gass copy attributes for this operation. |
References globus_gass_copy_get_url_mode(), globus_gass_copy_mkdir(), and GLOBUS_GASS_COPY_MODULE.
about globus |
globus toolkit |
dev.globus
Comments? webmaster@globus.org