This will initialize a netlogger wrapped throughput plugin. Note that the nl_url may be NULL. Regardless of what nl_host is set to, if the env variable NL_DEST_ENV is set, logging will always occur to that location.
Parameters:
plugin a plugin to be initialized
nl_url the url to log to (May be NULL) Valid urls are: file://tmp/netlog.log x-netlog://host[:port] x-syslog://localhost prog_name This is used as the prog name in the NetLoggerOpen call
opaque_string this is an opaque string that will be inserted into all logged statements. (may be NULL)
Returns:
•
Error on NULL plugin or failure to init throughput plugin
This will initialize a netlogger wrapped throughput plugin. Instead of passing a NetLogger url as in the plain init func, you can pass in a previously 'Open'ed NLhandle. This handle will not be destroyed by this plugin.
Parameters:
plugin a plugin to be initialized
nl_handle a previously opened NetLogger handle
opaque_string this is an opaque string that will be inserted into all logged statements. (may be NULL)
Returns:
•
Error on NULL plugin or failure to init throughput plugin
You can still get the automatic netlogging of throughput along with receiving the same throughput callbacks that the throughput plugin provides by using this function to set these callbacks. Note that the callbacks are defined the same as in the throughput plugin
Parameters:
plugin begin_cb the callback to be called upon the start of a transfer
per_stripe_cb the callback to be called every time updated throughput info is available for a given stripe
total_cb the callback to be called every time updated throughput info is available for any stripe
complete_cb the callback to be called to indicate transfer completion
user_specific a pointer to some user specific data that will be provided to all callbacks
Returns:
•
Error on NULL or invalid plugin
•
GLOBUS_SUCCESS
See also:
Throughput Performance Plugin
Author
Generated automatically by Doxygen for globus ftp client from the source code.