globus_result_tglobus_ftp_client_restart_plugin_destroy(globus_ftp_client_plugin_t*plugin)
Destroy an instance of the GridFTP restart plugin
This function will free all restart plugin-specific instance data from this plugin, and will make the
plugin unusable for further ftp handle creation.
Existing FTP client handles and handle attributes will not be affected by destroying a plugin associated
with them, as a local copy of the plugin is made upon handle initialization.
Parametersplugin A pointer to a GridFTP restart plugin, previously initialized by calling
globus_ftp_client_restart_plugin_init()Returns
This function returns an error if
• plugin is null
• plugin is not a restart plugin
Seealsoglobus_ftp_client_restart_plugin_init(), globus_ftp_client_handleattr_add_plugin(),
globus_ftp_client_handleattr_remove_plugin(), globus_ftp_client_handle_init()globus_result_tglobus_ftp_client_restart_plugin_init(globus_ftp_client_plugin_t*plugin,intmax_retries,globus_reltime_t*interval,globus_abstime_t*deadline)
Initialize an instance of the GridFTP restart plugin
This function will initialize the plugin-specific instance data for this plugin, and will make the plugin
usable for ftp client handle attribute and handle creation.
Parametersplugin A pointer to an uninitialized plugin. The plugin will be configured as a restart plugin.
max_retries The maximum number of times to retry the operation before giving up on the transfer. If
this value is less than or equal to 0, then the restart plugin will keep trying to restart the
operation until it completes or the deadline is reached with an unsuccessful operation.
interval The interval to wait after a failures before retrying the transfer. If the interval is 0
seconds or GLOBUS_NULL, then an exponential backoff will be used.
deadline An absolute timeout. If the deadline is GLOBUS_NULL then the retry will never timeout.
Returns
This function returns an error if
• plugin is null
Seealsoglobus_ftp_client_restart_plugin_destroy(), globus_ftp_client_handleattr_add_plugin(),
globus_ftp_client_handleattr_remove_plugin(), globus_ftp_client_handle_init()