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.
Definition XrdClCopyProcess.hh:108
CopyProcess()
Constructor.
XRootDStatus Run(CopyProgressHandler *handler)
Run the copy jobs.
static void MarkTPC(PropertyList &properties)
Mark the URLs in the property list as ment for TPC.
Definition XrdClCopyProcess.hh:186
virtual ~CopyProcess()
Destructor.
CopyProcessImpl * pImpl
Pointer to implementation.
Definition XrdClCopyProcess.hh:204
XRootDStatus AddJob(const PropertyList &properties, PropertyList *results)
Interface for copy progress notification.
Definition XrdClCopyProcess.hh:42
virtual ~CopyProgressHandler()
Definition XrdClCopyProcess.hh:44
virtual void JobProgress(uint16_t jobNum, uint64_t bytesProcessed, uint64_t bytesTotal)
Definition XrdClCopyProcess.hh:82
virtual bool ShouldCancel(uint16_t jobNum)
Determine whether the job should be canceled.
Definition XrdClCopyProcess.hh:92
virtual void BeginJob(uint16_t jobNum, uint16_t jobTotal, const URL *source, const URL *destination)
Definition XrdClCopyProcess.hh:54
virtual void EndJob(uint16_t jobNum, const PropertyList *result)
Definition XrdClCopyProcess.hh:68
A key-value pair map storing both keys and values as strings.
Definition XrdClPropertyList.hh:41
void Set(const std::string &name, const Item &value)
Definition XrdClPropertyList.hh:52
bool Get(const std::string &name, Item &item) const
Definition XrdClPropertyList.hh:65
URL representation.
Definition XrdClURL.hh:31
std::map< std::string, std::string > ParamsMap
Definition XrdClURL.hh:33
void SetParams(const std::string ¶ms)
Set params.
std::string GetURL() const
Get the URL.
Definition XrdClURL.hh:86
const ParamsMap & GetParams() const
Get the URL params.
Definition XrdClURL.hh:239
Request status.
Definition XrdClXRootDResponses.hh:219
Definition XrdClAction.hh:34