CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cvmfs::TransactionSink Class Reference

#include <fetch.h>

Inheritance diagram for cvmfs::TransactionSink:
Collaboration diagram for cvmfs::TransactionSink:

Public Member Functions

 TransactionSink (CacheManager *cache_mgr, void *open_txn)
 
virtual ~TransactionSink ()
 
virtual int64_t Write (const void *buf, uint64_t sz)
 
virtual int Reset ()
 
- Public Member Functions inherited from cvmfs::Sink
virtual ~Sink ()
 

Private Attributes

CacheManagercache_mgr_
 
void * open_txn_
 

Detailed Description

TransacionSink uses an open transaction in a cache manager as a sink. It allows the download manager to write data without knowing about the cache manager.

Definition at line 33 of file fetch.h.

Constructor & Destructor Documentation

cvmfs::TransactionSink::TransactionSink ( CacheManager cache_mgr,
void *  open_txn 
)
inline

Definition at line 35 of file fetch.h.

virtual cvmfs::TransactionSink::~TransactionSink ( )
inlinevirtual

Definition at line 39 of file fetch.h.

Member Function Documentation

virtual int cvmfs::TransactionSink::Reset ( )
inlinevirtual

Truncate all written data and start over at position zero.

Implements cvmfs::Sink.

Definition at line 43 of file fetch.h.

Here is the call graph for this function:

virtual int64_t cvmfs::TransactionSink::Write ( const void *  buf,
uint64_t  sz 
)
inlinevirtual

Appends data to the sink, returns the number of bytes written or -errno.

Implements cvmfs::Sink.

Definition at line 40 of file fetch.h.

Here is the call graph for this function:

Member Data Documentation

CacheManager* cvmfs::TransactionSink::cache_mgr_
private

Definition at line 48 of file fetch.h.

Referenced by Reset(), and Write().

void* cvmfs::TransactionSink::open_txn_
private

Definition at line 49 of file fetch.h.

Referenced by Reset(), and Write().


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