7. XRootD.client.utils
: Utility classes¶
-
class
XRootD.client.utils.
AsyncResponseHandler
[source]¶ Utility class to handle asynchronous method calls.
-
class
XRootD.client.utils.
CopyProgressHandler
[source]¶ Utility class to handle progress updates from copy jobs
Note
This class does nothing by itself. You have to subclass it and do something useful with the progress updates yourself.
-
begin
(jobId, total, source, target)[source]¶ Notify when a new job is about to start
Parameters: - jobId (integer) – the job number of the copy job concerned
- total (integer) – total number of jobs being processed
- source (
XRootD.client.URL
object) – the source url of the current job - target (
XRootD.client.URL
object) – the destination url of the current job
-
end
(jobId, results)[source]¶ Notify when the previous job has finished
Parameters: - jobId (integer) – the job number of the copy job concerned
- status (
XRootD.client.responses.XRootDStatus
object) – status of the job
-