#include <XrdOfsChkPnt.hh>
|
int | Failed (const char *opn, int rc, bool *readok) |
|
◆ XrdOfsChkPnt()
XrdOfsChkPnt::XrdOfsChkPnt |
( |
XrdOssDF & |
ossfl, |
|
|
const char * |
lfn, |
|
|
const char * |
ckpfn = 0 |
|
) |
| |
|
inline |
Constructor and destructor.
- Parameters
-
ossfl | - reference to the Oss File Object for the source file. |
lfn | - pointer to the source file path. |
ckpfn | - pointer to optional prexisting checkpoint file. |
◆ ~XrdOfsChkPnt()
virtual XrdOfsChkPnt::~XrdOfsChkPnt |
( |
| ) |
|
|
inlinevirtual |
◆ Create()
int XrdOfsChkPnt::Create |
( |
| ) |
|
|
virtual |
Create a checkpoint.
- Returns
- 0 upon success and -errno upon failure.
Implements XrdOucChkPnt.
◆ Delete()
int XrdOfsChkPnt::Delete |
( |
| ) |
|
|
virtual |
Delete a checkpoint.
- Returns
- 0 upon success and -errno upon failure.
Implements XrdOucChkPnt.
◆ Failed()
int XrdOfsChkPnt::Failed |
( |
const char * |
opn, |
|
|
int |
rc, |
|
|
bool * |
readok |
|
) |
| |
|
private |
◆ Finished()
void XrdOfsChkPnt::Finished |
( |
| ) |
|
|
inlinevirtual |
Indicate that the checkpointing is finished. Any outstanding checkpoint should be delete and the object should delete itself if necessary.
Implements XrdOucChkPnt.
◆ Query()
int XrdOfsChkPnt::Query |
( |
struct iov & |
range | ) |
|
|
virtual |
Query checkpoint limits.
- Parameters
-
range | - reference to where limits are placed. range.length - holds maximum checkpoint length allowed. |
- Returns
- 0 upon success and -errno upon failure.
Implements XrdOucChkPnt.
◆ Restore()
int XrdOfsChkPnt::Restore |
( |
bool * |
readok = 0 | ) |
|
|
virtual |
Restore a checkpoint.
- Parameters
-
readok | - When not nil and an error occurs readok is set true if read access is still allowed; otherwise no access should be allowed. |
- Returns
- 0 upon success and -errno upon failure.
Implements XrdOucChkPnt.
◆ Truncate()
int XrdOfsChkPnt::Truncate |
( |
struct iov *& |
range | ) |
|
|
virtual |
Truncate a file to a specific size.
- Parameters
-
range | - reference to the file truncate size in offset. |
- Returns
- 0 upon success and -errno upon failure.
Implements XrdOucChkPnt.
◆ Write()
int XrdOfsChkPnt::Write |
( |
struct iov *& |
range, |
|
|
int |
rnum |
|
) |
| |
|
virtual |
Write data to a checkpointed file.
- Parameters
-
range | - reference to the file pieces to write. |
rnum | - number of elements in "range". |
- Returns
- 0 upon success and -errno upon failure.
Implements XrdOucChkPnt.
◆ cpFile
◆ cpUsed
◆ fSize
int64_t XrdOfsChkPnt::fSize |
|
private |
◆ lFN
const char* XrdOfsChkPnt::lFN |
|
private |
◆ ossFile
The documentation for this class was generated from the following file: