![]() |
XRootD
|
#include <XrdSfsGPFile.hh>
Public Types | |
enum | GPFState { gpfPend = 0 , gpfXfr , gpfCSV } |
Public Member Functions | |
XrdSfsGPFile (const char *tid="") | |
Constructor and Destructor. | |
virtual | ~XrdSfsGPFile () |
virtual void | Finished (int rc, const char *emsg=0)=0 |
virtual void | Status (GPFState state, uint32_t cpct, uint64_t bytes)=0 |
Public Attributes | ||
union { | ||
uint32_t | gpfID | |
Can be used by the implementation. | ||
XrdSfsGPInfo * | gpfInfo | |
Can be used by the implementation. | ||
}; | ||
const char * | csType | |
Checksum type. | ||
const char * | csVal | |
Checksum value as a hex string. | ||
const char * | dst | |
get: local path, put: full URL | ||
const char * | lclCGI | |
The CGI, if any, for the local path. | ||
uint16_t | opts | |
Options as defined below. | ||
uint8_t | pingsec | |
Seconds between calls to Update() (0 -> no calls) | ||
uint16_t | rsvd1 | |
uint8_t | rsvd2 | |
void * | rsvd3 | |
Reserved field. | ||
uint8_t | sources | |
Number of parallel sources (0 -> default) | ||
const char * | src | |
get: full URL, put: local path | ||
uint8_t | streams | |
Number of parallel streams (0 -> default) | ||
const char * | tident | |
Trace identifier. | ||
Static Public Attributes | |
static const uint16_t | delegate = 0x0008 |
Use delegation. | |
static const uint16_t | keepErr = 0x0004 |
Keep file after request failure. | |
static const uint16_t | mkPath = 0x0002 |
Create destination path. | |
static const uint16_t | replace = 0x0001 |
Replace existing file. | |
static const uint16_t | useTLS = 0x0080 |
Use TLS for the data path. | |
static const uint16_t | verCKS = 0x0040 |
Verify checksum after transfer. | |
Definition at line 36 of file XrdSfsGPFile.hh.
Provide request status. Only recursive locks should be held, if any.
state | - One of the enums listed indicating the request state. |
cpct | - Percentage (0 to 100) of completion. |
bytes | - Number of bytes processed in the indicated state. |
Enumerator | |
---|---|
gpfPend | Request is pending. |
gpfXfr | Request is transfering data. |
gpfCSV | Request is doing checksum validation. |
Definition at line 91 of file XrdSfsGPFile.hh.
|
inline |
Constructor and Destructor.
Definition at line 102 of file XrdSfsGPFile.hh.
References csType, csVal, dst, lclCGI, opts, pingsec, rsvd1, rsvd2, rsvd3, sources, src, streams, and tident.
|
inlinevirtual |
Definition at line 107 of file XrdSfsGPFile.hh.
|
pure virtual |
Indicate the request has finished.
rc | - the final return code. A value of zero indicates success. A non-zero value should be the errno value corresponding to the reason for the failure. |
emsg | - An optional message further explaining the reason for the failure (highly recommended). |
No value is returned but this object is deleted and no references to the object should exist after return is made.
References emsg().
|
pure virtual |
union { ... } XrdSfsGPFile |
const char* XrdSfsGPFile::csType |
const char* XrdSfsGPFile::csVal |
Checksum value as a hex string.
Definition at line 63 of file XrdSfsGPFile.hh.
Referenced by XrdSfsGPFile().
|
static |
Use delegation.
Definition at line 41 of file XrdSfsGPFile.hh.
const char* XrdSfsGPFile::dst |
get: local path, put: full URL
Definition at line 60 of file XrdSfsGPFile.hh.
Referenced by XrdSfsGPFile().
|
static |
Keep file after request failure.
Definition at line 42 of file XrdSfsGPFile.hh.
const char* XrdSfsGPFile::lclCGI |
The CGI, if any, for the local path.
Definition at line 61 of file XrdSfsGPFile.hh.
Referenced by XrdSfsGPFile().
|
static |
Create destination path.
Definition at line 43 of file XrdSfsGPFile.hh.
uint16_t XrdSfsGPFile::opts |
Options as defined below.
Definition at line 40 of file XrdSfsGPFile.hh.
Referenced by XrdSfsGPFile().
uint8_t XrdSfsGPFile::pingsec |
Seconds between calls to Update() (0 -> no calls)
Definition at line 49 of file XrdSfsGPFile.hh.
Referenced by XrdSfsGPFile().
|
static |
Replace existing file.
Definition at line 44 of file XrdSfsGPFile.hh.
uint16_t XrdSfsGPFile::rsvd1 |
Definition at line 48 of file XrdSfsGPFile.hh.
Referenced by XrdSfsGPFile().
uint8_t XrdSfsGPFile::rsvd2 |
Definition at line 52 of file XrdSfsGPFile.hh.
Referenced by XrdSfsGPFile().
void* XrdSfsGPFile::rsvd3 |
uint8_t XrdSfsGPFile::sources |
Number of parallel sources (0 -> default)
Definition at line 50 of file XrdSfsGPFile.hh.
Referenced by XrdSfsGPFile().
const char* XrdSfsGPFile::src |
get: full URL, put: local path
Definition at line 59 of file XrdSfsGPFile.hh.
Referenced by XrdSfsGPFile().
uint8_t XrdSfsGPFile::streams |
Number of parallel streams (0 -> default)
Definition at line 51 of file XrdSfsGPFile.hh.
Referenced by XrdSfsGPFile().
const char* XrdSfsGPFile::tident |
|
static |
Use TLS for the data path.
Definition at line 45 of file XrdSfsGPFile.hh.
|
static |
Verify checksum after transfer.
Definition at line 46 of file XrdSfsGPFile.hh.