globus_ftp_client_restart_marker_plugin(3) | Library Functions Manual | globus_ftp_client_restart_marker_plugin(3) |
globus_ftp_client_restart_marker_plugin - Restart Marker Plugin
- Restart Marker Plugin.
#define GLOBUS_FTP_CLIENT_RESTART_MARKER_PLUGIN_MODULE
(&globus_i_ftp_client_restart_marker_plugin_module)
typedef globus_bool_t(*
globus_ftp_client_restart_marker_plugin_begin_cb_t) (void *user_arg,
globus_ftp_client_handle_t *handle, const char *source_url, const
char *dest_url, globus_ftp_client_restart_marker_t
*user_saved_marker)
Transfer begin callback. typedef void(*
globus_ftp_client_restart_marker_plugin_marker_cb_t) (void *user_arg,
globus_ftp_client_handle_t *handle,
globus_ftp_client_restart_marker_t *marker)
typedef void(* globus_ftp_client_restart_marker_plugin_complete_cb_t)
(void *user_arg, globus_ftp_client_handle_t *handle, globus_object_t
*error, const char *error_url)
globus_result_t
globus_ftp_client_restart_marker_plugin_init
(globus_ftp_client_plugin_t *plugin,
globus_ftp_client_restart_marker_plugin_begin_cb_t begin_cb,
globus_ftp_client_restart_marker_plugin_marker_cb_t marker_cb,
globus_ftp_client_restart_marker_plugin_complete_cb_t complete_cb,
void *user_arg)
globus_result_t globus_ftp_client_restart_marker_plugin_destroy
(globus_ftp_client_plugin_t *plugin)
Restart Marker Plugin.
This plugin is intended to allow users to make restart markers persistent. During a transfer, every marker received will result in the user's 'marker' callback being called with the new restart marker that can be stored. If the application were to prematurely terminate (while transferring), the user (after restarting the application) could pass this stored marker back to the plugin via the 'begin' callback to force the transfer to be restarted from the last marked point.
Module descriptor
Transfer begin callback. This callback is called when a get, put, or third party transfer is started.
The intended use for this callback is for the user to use the transfer urls to locate a restart marker in some persistent storage. If one is found, it should be copied into 'user_saved_marker' and the callback should return GLOBUS_TRUE. This will cause the transfer to be restarted using that restart marker. If one is not found, return GLOBUS_FALSE to indicate that the transfer should proceed from the beginning.
In any case, this is also an opportunity for the user to set up any storage in anticipation of restart markers for this transfer.
Parameters
Returns
Transfer complete callback
This callback will be called upon transfer completion (successful or otherwise)
Parameters
Returns
Restart marker received callback
This callback will be called every time a restart marker is available.
To receive restart markers in a 'put' or 'third_party_transfer', the transfer must be in Extended Block mode. 'get' transfers will have their markers generated internally. Markers generated internally will be 'sent' at most, once per second.
The intended use for this callback is to allow the user to store this marker (most likely in place of any previous marker) in a format that the 'begin_cb' can parse and pass back.
Parameters
Returns
Destroy restart marker plugin
Frees up memory associated with plugin
Parameters
Returns
Initialize a restart marker plugin
This function initializes a restart marker plugin. Any params except for the plugin may be GLOBUS_NULL
Parameters
Returns
Generated automatically by Doxygen for globus_ftp_client from the source code.
Version 9.8 | globus_ftp_client |