![]() |
XRootD
|
#include <XrdClXCpSrc.hh>
Public Member Functions | |
XCpSrc (uint32_t chunkSize, uint8_t parallel, int64_t fileSize, XCpCtx *ctx) | |
void | Delete () |
bool | HasData () |
bool | IsRunning () |
XCpSrc * | Self () |
void | Start () |
void | Stop () |
uint64_t | TransferRate () |
Static Public Member Functions | |
static void | DeleteChunk (PageInfo *&chunk) |
Friends | |
class | ChunkHandler |
Definition at line 37 of file XrdClXCpSrc.hh.
XrdCl::XCpSrc::XCpSrc | ( | uint32_t | chunkSize, |
uint8_t | parallel, | ||
int64_t | fileSize, | ||
XCpCtx * | ctx | ||
) |
Constructor.
chunkSize | : default chunk size |
parallel | : number of parallel chunks |
fileSize | : file size if available (e.g. in metalink file), should be set to -1 if not available, in this case a stat will be performed during initialization |
ctx | : Extreme Copy context |
Definition at line 110 of file XrdClXCpSrc.cc.
|
inline |
Deletes the instance if the reference counter reached 0.
Definition at line 71 of file XrdClXCpSrc.hh.
References XrdSysMutexHelper::UnLock().
Referenced by XrdCl::ChunkHandler::~ChunkHandler().
|
inlinestatic |
Delete ChunkInfo object, and set the pointer to null.
chunk | : the chunk to be deleted |
Definition at line 126 of file XrdClXCpSrc.hh.
References XrdCl::PageInfo::GetBuffer().
|
inline |
Definition at line 106 of file XrdClXCpSrc.hh.
Referenced by XrdCl::XCpCtx::WeakestLink().
|
inline |
Definition at line 97 of file XrdClXCpSrc.hh.
|
inline |
void XrdCl::XCpSrc::Start | ( | ) |
Creates new thread with XCpSrc::Run as the start routine.
Definition at line 123 of file XrdClXCpSrc.cc.
References XrdCl::XCpCtx::Delete(), and XrdCl::XCpCtx::RemoveSrc().
Referenced by XrdCl::XCpCtx::Initialize().
|
inline |
uint64_t XrdCl::XCpSrc::TransferRate | ( | ) |
Get the transfer rate for current source
Definition at line 584 of file XrdClXCpSrc.cc.
Referenced by XrdCl::XCpCtx::WeakestLink().
|
friend |
Definition at line 39 of file XrdClXCpSrc.hh.