bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
FileCache::PutItem Class Reference

#include <FileCache.h>

Inheritance diagram for FileCache::PutItem:
Inheritance graph
Collaboration diagram for FileCache::PutItem:
Collaboration graph

Public Member Functions

int get_fd () const
 
bool lock_the_item (int lock_type, const std::string &msg="") const
 
const PutItemoperator= (const PutItem &)=delete
 
 PutItem (const PutItem &)=delete
 
 PutItem (FileCache &fc)
 
void set_fd (int fd)
 

Detailed Description

A PutItem wraps a file descriptor just like an Item, but also ensures that the cache_info file is updated to include the new item's size when the PutIem goes out of scope.

Note
The file referenced by the PutItem can be closed using close(2), but that will not update the cache_info file.

Definition at line 376 of file FileCache.h.

Constructor & Destructor Documentation

◆ PutItem()

FileCache::PutItem::PutItem ( FileCache & fc)
inlineexplicit

Definition at line 381 of file FileCache.h.

◆ ~PutItem()

FileCache::PutItem::~PutItem ( )
inlineoverride

Definition at line 384 of file FileCache.h.

Member Function Documentation

◆ get_fd()

int FileCache::Item::get_fd ( ) const
inlineinherited

Definition at line 342 of file FileCache.h.

◆ lock_the_item()

bool FileCache::Item::lock_the_item ( int lock_type,
const std::string & msg = "" ) const
inlineinherited

Definition at line 349 of file FileCache.h.

◆ set_fd()

void FileCache::Item::set_fd ( int fd)
inlineinherited

Definition at line 345 of file FileCache.h.


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