25 #ifndef __XRD_CL_COPY_PROCESS_HH__
26 #define __XRD_CL_COPY_PROCESS_HH__
57 const URL *destination )
59 (void)jobNum; (void)jobTotal; (void)source; (void)destination;
68 virtual void EndJob( uint16_t jobNum,
71 (void)jobNum; (void)result;
83 uint64_t bytesProcessed,
86 (void)jobNum; (void)bytesProcessed; (void)bytesTotal;
102 struct CopyProcessImpl;
188 std::string keys[] = {
"source",
"target" };
189 size_t size =
sizeof( keys ) /
sizeof( std::string );
190 for(
size_t i = 0; i < size; ++i )
193 properties.
Get( keys[i], url );
195 params[
"xrdcl.intent"] =
"tpc";
Copy the data from one point to another.
virtual ~CopyProcess()
Destructor.
CopyProcess()
Constructor.
XRootDStatus Run(CopyProgressHandler *handler)
Run the copy jobs.
XRootDStatus AddJob(const PropertyList &properties, PropertyList *results)
Interface for copy progress notification.
virtual ~CopyProgressHandler()
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.
virtual void BeginJob(uint16_t jobNum, uint16_t jobTotal, const URL *source, const URL *destination)
virtual void EndJob(uint16_t jobNum, const PropertyList *result)
A key-value pair map storing both keys and values as strings.
void Set(const std::string &name, const Item &value)
bool Get(const std::string &name, Item &item) const
std::map< std::string, std::string > ParamsMap
void SetParams(const std::string ¶ms)
Set params.
std::string GetURL() const
Get the URL.
const ParamsMap & GetParams() const
Get the URL params.