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