xrootd
Loading...
Searching...
No Matches
Public Member Functions | List of all members
XrdCl::CopyProgressHandler Class Reference

Interface for copy progress notification. More...

#include <XrdClCopyProcess.hh>

Public Member Functions

virtual ~CopyProgressHandler ()
 
virtual void BeginJob (uint16_t jobNum, uint16_t jobTotal, const URL *source, const URL *destination)
 
virtual void EndJob (uint16_t jobNum, const PropertyList *result)
 
virtual void JobProgress (uint16_t jobNum, uint64_t bytesProcessed, uint64_t bytesTotal)
 
virtual bool ShouldCancel (uint16_t jobNum)
 Determine whether the job should be canceled.
 

Detailed Description

Interface for copy progress notification.

Constructor & Destructor Documentation

◆ ~CopyProgressHandler()

virtual XrdCl::CopyProgressHandler::~CopyProgressHandler ( )
inlinevirtual

Member Function Documentation

◆ BeginJob()

virtual void XrdCl::CopyProgressHandler::BeginJob ( uint16_t  jobNum,
uint16_t  jobTotal,
const URL source,
const URL destination 
)
inlinevirtual

Notify when a new job is about to start

Parameters
jobNumthe job number of the copy job concerned
jobTotaltotal number of jobs being processed
sourcethe source url of the current job
destinationthe destination url of the current job

◆ EndJob()

virtual void XrdCl::CopyProgressHandler::EndJob ( uint16_t  jobNum,
const PropertyList result 
)
inlinevirtual

Notify when the previous job has finished

Parameters
jobNumjob number
resultresult of the job

◆ JobProgress()

virtual void XrdCl::CopyProgressHandler::JobProgress ( uint16_t  jobNum,
uint64_t  bytesProcessed,
uint64_t  bytesTotal 
)
inlinevirtual

Notify about the progress of the current job

Parameters
jobNumjob number
bytesProcessedbytes processed by the current job
bytesTotaltotal number of bytes to be processed by the current job

◆ ShouldCancel()

virtual bool XrdCl::CopyProgressHandler::ShouldCancel ( uint16_t  jobNum)
inlinevirtual

Determine whether the job should be canceled.


The documentation for this class was generated from the following file: