xrootd
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
XrdOfsChkPnt Class Reference

#include <XrdOfsChkPnt.hh>

Inheritance diagram for XrdOfsChkPnt:
Inheritance graph
[legend]
Collaboration diagram for XrdOfsChkPnt:
Collaboration graph
[legend]

Public Member Functions

int Create ()
 
int Delete ()
 
void Finished ()
 
int Query (struct iov &range)
 
int Restore (bool *readok=0)
 
int Truncate (struct iov *&range)
 
int Write (struct iov *&range, int rnum)
 
 XrdOfsChkPnt (XrdOssDF &ossfl, const char *lfn, const char *ckpfn=0)
 
virtual ~XrdOfsChkPnt ()
 
- Public Member Functions inherited from XrdOucChkPnt
 XrdOucChkPnt ()
 Constructor and destructor.
 
virtual ~XrdOucChkPnt ()
 

Private Member Functions

int Failed (const char *opn, int rc, bool *readok)
 

Private Attributes

const char * lFN
 
XrdOfsCPFile cpFile
 
XrdOssDFossFile
 
int64_t fSize
 
int cpUsed
 

Constructor & Destructor Documentation

◆ 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

Member Function Documentation

◆ 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.

Member Data Documentation

◆ cpFile

XrdOfsCPFile XrdOfsChkPnt::cpFile
private

◆ cpUsed

int XrdOfsChkPnt::cpUsed
private

◆ fSize

int64_t XrdOfsChkPnt::fSize
private

◆ lFN

const char* XrdOfsChkPnt::lFN
private

◆ ossFile

XrdOssDF& XrdOfsChkPnt::ossFile
private

The documentation for this class was generated from the following file: