|
xrootd
|
#include <XrdXrootdGPFile.hh>
Public Types | |
| enum | Status { isPending = 0, isCopying = 1, isProving = 2 } |
Public Member Functions | |
| bool | Completed (const char *eMsg=0, int eNum=0) |
| enum XrdXrootdGPFileInfo::Status | Update (uint64_t xfrsz, Status stat) |
| XrdXrootdGPFileInfo (XrdXrootdGPFAgent &gpf) | |
| ~XrdXrootdGPFileInfo () | |
Public Attributes | |
| const char * | cksType |
| Checksum type or nil if none wanted. More... | |
| const char * | cksValue |
| Checksum value or nil if none wanted. More... | |
| const char * | src |
| Source specification (path or URL) More... | |
| const char * | srcCgi |
| Source cgi or nil if none. More... | |
| const char * | dst |
| Destination specification (path or URL) More... | |
| uint16_t | pingsec |
| Seconds between ping call to Update() More... | |
| uint16_t | streams |
| Number of parallel streams (0 -> default) More... | |
Private Attributes | |
| XrdXrootdGPFAgent & | gpfAgent |
The XrdXrootdGFileInfo class contains the get/putFile() parameters and contains callback methods that indicate when the operation completes as well as for progress status updates.
Supply status information to the client. This is normally done every Info::pingsec seconds.
| xfrsz | - The number of bytes transmitted. |
| stat | - One of Status indicating execution stage. |
| Enumerator | |
|---|---|
| isPending | Copy operation is pending. |
| isCopying | Copy operation in progress. |
| isProving | Copy operation verifiying checksum. |
|
inline |
|
inline |
| bool XrdXrootdGPFileInfo::Completed | ( | const char * | eMsg = 0, |
| int | eNum = 0 |
||
| ) |
Indicate that an accepted get/putFile requtest has completed. This must be called at completion afterwhich this object must be deleted.
| eMsg | - A text string describing the problem if in error. If no error was encounteredm a nil pointer should be passed. |
| eNum | - The errno value corresponding to the error type. A value zero indicates that the copy successfully completed. |
| enum XrdXrootdGPFileInfo::Status XrdXrootdGPFileInfo::Update | ( | uint64_t | xfrsz, |
| Status | stat | ||
| ) |
| const char* XrdXrootdGPFileInfo::cksType |
Checksum type or nil if none wanted.
| const char* XrdXrootdGPFileInfo::cksValue |
Checksum value or nil if none wanted.
| const char* XrdXrootdGPFileInfo::dst |
Destination specification (path or URL)
|
private |
| uint16_t XrdXrootdGPFileInfo::pingsec |
Seconds between ping call to Update()
| const char* XrdXrootdGPFileInfo::src |
Source specification (path or URL)
| const char * XrdXrootdGPFileInfo::srcCgi |
Source cgi or nil if none.
Destination cgi or nil if none.
| uint16_t XrdXrootdGPFileInfo::streams |
Number of parallel streams (0 -> default)