OdbDesign
OdbDesign ODB++ Parser - C++ library, gRPC/REST server, CLI, tests
 
Loading...
Searching...
No Matches
OdbDesignServer::Services::StreamSpoolCache Class Reference

#include <StreamSpoolCache.h>

Classes

class  Reader
 
class  Writer
 

Public Member Functions

 StreamSpoolCache (std::uint64_t maxTotalBytes=kDefaultMaxTotalBytes)
 
 StreamSpoolCache (const std::filesystem::path &directory, std::uint64_t maxTotalBytes)
 
 ~StreamSpoolCache ()
 
 StreamSpoolCache (const StreamSpoolCache &)=delete
 
StreamSpoolCache & operator= (const StreamSpoolCache &)=delete
 
bool TryOpenReader (const std::string &designName, std::uint64_t generation, Reader &readerOut)
 
bool BeginWrite (const std::string &designName, std::uint64_t generation, Writer &writerOut)
 
void Drop (const std::string &designName)
 
void DropStaleEntry (const std::string &designName, const std::filesystem::path &expectedPath)
 
std::uint64_t WarmOpens () const
 
std::uint64_t TotalSpoolBytes () const
 
std::size_t EntryCount () const
 

Static Public Attributes

static constexpr std::uint64_t kDefaultMaxTotalBytes = 4ull * 1024ull * 1024ull * 1024ull
 

Detailed Description

Definition at line 41 of file StreamSpoolCache.h.

Constructor & Destructor Documentation

◆ StreamSpoolCache() [1/3]

OdbDesignServer::Services::StreamSpoolCache::StreamSpoolCache ( std::uint64_t  maxTotalBytes = kDefaultMaxTotalBytes)
explicit

Definition at line 291 of file StreamSpoolCache.cpp.

◆ StreamSpoolCache() [2/3]

OdbDesignServer::Services::StreamSpoolCache::StreamSpoolCache ( const std::filesystem::path &  directory,
std::uint64_t  maxTotalBytes 
)

Definition at line 321 of file StreamSpoolCache.cpp.

◆ ~StreamSpoolCache()

OdbDesignServer::Services::StreamSpoolCache::~StreamSpoolCache ( )

Definition at line 326 of file StreamSpoolCache.cpp.

◆ StreamSpoolCache() [3/3]

OdbDesignServer::Services::StreamSpoolCache::StreamSpoolCache ( const StreamSpoolCache &  )
delete

Member Function Documentation

◆ BeginWrite()

bool OdbDesignServer::Services::StreamSpoolCache::BeginWrite ( const std::string &  designName,
std::uint64_t  generation,
Writer &  writerOut 
)

Definition at line 444 of file StreamSpoolCache.cpp.

◆ Drop()

void OdbDesignServer::Services::StreamSpoolCache::Drop ( const std::string &  designName)

Definition at line 530 of file StreamSpoolCache.cpp.

◆ DropStaleEntry()

void OdbDesignServer::Services::StreamSpoolCache::DropStaleEntry ( const std::string &  designName,
const std::filesystem::path &  expectedPath 
)

Definition at line 544 of file StreamSpoolCache.cpp.

Here is the caller graph for this function:

◆ EntryCount()

std::size_t OdbDesignServer::Services::StreamSpoolCache::EntryCount ( ) const

Definition at line 599 of file StreamSpoolCache.cpp.

◆ operator=()

StreamSpoolCache & OdbDesignServer::Services::StreamSpoolCache::operator= ( const StreamSpoolCache &  )
delete

◆ TotalSpoolBytes()

std::uint64_t OdbDesignServer::Services::StreamSpoolCache::TotalSpoolBytes ( ) const

Definition at line 593 of file StreamSpoolCache.cpp.

◆ TryOpenReader()

bool OdbDesignServer::Services::StreamSpoolCache::TryOpenReader ( const std::string &  designName,
std::uint64_t  generation,
Reader &  readerOut 
)

Definition at line 382 of file StreamSpoolCache.cpp.

Here is the call graph for this function:

◆ WarmOpens()

std::uint64_t OdbDesignServer::Services::StreamSpoolCache::WarmOpens ( ) const

Definition at line 587 of file StreamSpoolCache.cpp.

Member Data Documentation

◆ kDefaultMaxTotalBytes

constexpr std::uint64_t OdbDesignServer::Services::StreamSpoolCache::kDefaultMaxTotalBytes = 4ull * 1024ull * 1024ull * 1024ull
staticconstexpr

Definition at line 45 of file StreamSpoolCache.h.


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