__init__ (
self,
beginCB,
stripeCB,
totalCB,
completeCB,
arg,
)
Initialize an instance of the GridFTP Throughput plugin.
This function will initialize the Throughput plugin-specific instance data
for this plugin, and will make the plugin usable for ftp client handle
attribute and handle creation.
Arguments
beginCB The callback to be called upon the start of the transfer..
stripeCB The callback to be called with every performance callback
that is received by the perf plugin. The first callback for each
stripe_ndx will have an instantaneous_throughput based from the time
the command was sent.
totalCB The callback will be called with every performance callback
that is received by the perf plugin. The first callback for will have
an instantaneous_throughput based from the time the command was sent.
This callback will be called after the per_stripe_cb
completeCB The callback to be called to indicate transfer
completion.
arg An arbitary argument to be passed to all the callbacks.
Raises
A PluginException is thrown if unable to init the plugin.
|