GFAL2  2.9.1
Macros | Functions | Variables
gfal_transfer.h File Reference
#include <transfer/gfal_transfer_types.h>
#include <global/gfal_global.h>
#include <logger/gfal_logger.h>
#include <common/gfal_constants.h>

Functions

gfalt_params_t gfalt_params_handle_new (GError **err)
 
void gfalt_params_handle_delete (gfalt_params_t params, GError **err)
 
gfalt_params_t gfalt_params_handle_copy (gfalt_params_t params, GError **err)
 
gint gfalt_set_timeout (gfalt_params_t, guint64 timeout, GError **err)
 
guint64 gfalt_get_timeout (gfalt_params_t handle, GError **err)
 
gint gfalt_set_nbstreams (gfalt_params_t, guint nbstreams, GError **err)
 
guint gfalt_get_nbstreams (gfalt_params_t params, GError **err)
 
gint gfalt_set_tcp_buffer_size (gfalt_params_t, guint64 tcp_buffer_size, GError **err)
 
guint64 gfalt_get_tcp_buffer_size (gfalt_params_t params, GError **err)
 
gint gfalt_set_local_transfer_perm (gfalt_params_t, gboolean local_transfer_status, GError **err)
 
gboolean gfalt_get_local_transfer_perm (gfalt_params_t, GError **err)
 
gint gfalt_set_src_spacetoken (gfalt_params_t params, const char *srm_spacetoken, GError **err)
 
const gchar * gfalt_get_src_spacetoken (gfalt_params_t params, GError **err)
 
gint gfalt_set_dst_spacetoken (gfalt_params_t params, const char *srm_spacetoken, GError **err)
 
const gchar * gfalt_get_dst_spacetoken (gfalt_params_t params, GError **err)
 
gint gfalt_set_replace_existing_file (gfalt_params_t, gboolean replace, GError **err)
 
gboolean gfalt_get_replace_existing_file (gfalt_params_t, GError **err)
 
gint gfalt_set_strict_copy_mode (gfalt_params_t, gboolean strict_mode, GError **err)
 
gboolean gfalt_get_strict_copy_mode (gfalt_params_t, GError **err)
 
gint gfalt_set_checksum_check (gfalt_params_t, gboolean value, GError **err)
 
gboolean gfalt_get_checksum_check (gfalt_params_t, GError **err)
 
gint gfalt_set_user_defined_checksum (gfalt_params_t param, const gchar *chktype, const gchar *checksum, GError **err)
 
gint gfalt_get_user_defined_checksum (gfalt_params_t params, gchar *chktype_buff, size_t chk_type_len, gchar *checksum_buff, size_t checksum_len, GError **err)
 
gint gfalt_set_create_parent_dir (gfalt_params_t, gboolean value, GError **err)
 
gboolean gfalt_get_create_parent_dir (gfalt_params_t, GError **err)
 
GFAL2_DEPRECATED_NOALT gint gfalt_set_user_data (gfalt_params_t, gpointer user_data, GError **err)
 
GFAL2_DEPRECATED_NOALT gpointer gfalt_get_user_data (gfalt_params_t, GError **err)
 
 GFAL2_DEPRECATED (gfalt_add_monitor_callback) gint gfalt_set_monitor_callback(gfalt_params_t params
 define a callback for monitoring the current transfer The default value is NULL and no monitoring will occur
 
 GFAL2_DEPRECATED (plugin_trigger_monitor) gfalt_monitor_func gfalt_get_monitor_callback(gfalt_params_t params
 get the current monitor callback
 
 GFAL2_DEPRECATED (gfalt_add_event_callback) gint gfalt_set_event_callback(gfalt_params_t params
 Define a callback for event monitoring The default value is NULL and no monitoring will occur.
 
 GFAL2_DEPRECATED (plugin_trigger_event) gfalt_event_func gfalt_get_event_callback(gfalt_params_t params
 Get the current event monitor callback.
 
gint gfalt_add_monitor_callback (gfalt_params_t params, gfalt_monitor_func callback, gpointer udata, GDestroyNotify udata_free, GError **err)
 Add a new callback for monitoring the current transfer Adding the same callback with a different udata will just change the udata and the free method, but the callback will not be called twice. In this case, udata_free will be called with the old data. udata_free can be left to NULL.
 
gint gfalt_remove_monitor_callback (gfalt_params_t params, gfalt_monitor_func callback, GError **err)
 Remove an installed monitor callback It will call the method registered to free the user data.
 
gint gfalt_add_event_callback (gfalt_params_t params, gfalt_event_func callback, gpointer udata, GDestroyNotify udata_free, GError **err)
 Add a new callback for event monitoring Adding the same callback with a different udata will just change the udata, but the callback will not be called twice. In this case, udata_free will be called with the old data. udata_free can be left to NULL.
 
gint gfalt_remove_event_callback (gfalt_params_t params, gfalt_event_func callback, GError **err)
 Remove an installed callback It will call the method registered to free the user data.
 
int gfalt_copy_file (gfal2_context_t context, gfalt_params_t params, const char *src, const char *dst, GError **err)
 copy function start a synchronous copy of the file More...
 
int gfalt_copy_bulk (gfal2_context_t context, gfalt_params_t params, size_t nbfiles, const char *const *srcs, const char *const *dsts, const char *const *checksums, GError **op_error, GError ***file_erros)
 bulk copy operation If not provided by the plugin, it will fallback to a serialized implementation Note that file_erros will point to an array of nbfiles pointers to GError, where each one corresponds to the source and destination pair in the same position op_error will contain an error if something happened before file transfering could be attempted
 
gint gfalt_copy_cancel (gfalt_transfer_status_t, GError **err)
 
gint gfalt_copy_get_status (gfalt_transfer_status_t, GError **err)
 
size_t gfalt_copy_get_average_baudrate (gfalt_transfer_status_t, GError **err)
 
size_t gfalt_copy_get_instant_baudrate (gfalt_transfer_status_t, GError **err)
 
size_t gfalt_copy_get_bytes_transfered (gfalt_transfer_status_t, GError **err)
 
time_t gfalt_copy_get_elapsed_time (gfalt_transfer_status_t, GError **err)
 

Variables

gfalt_monitor_func callback
 
gfalt_monitor_func GError ** err
 

Detailed Description

gfal2 API for file transfers . This API provide :