roo_monitoring
API Documentation for roo_monitoring
Loading...
Searching...
No Matches
roo_monitoring::CachedLogDir Class Reference

In-memory cache of log directory entries. More...

#include <log.h>

Public Member Functions

 CachedLogDir (roo_io::Filesystem &fs, const char *log_dir)
 Creates a cache for a specific filesystem and log directory.
 
void insert (int64_t entry)
 Inserts an entry into the cache.
 
void erase (int64_t entry)
 Removes an entry from the cache.
 
std::vector< int64_t > list ()
 Returns the cached entries sorted by timestamp.
 

Detailed Description

In-memory cache of log directory entries.

Definition at line 35 of file log.h.

Constructor & Destructor Documentation

◆ CachedLogDir()

roo_monitoring::CachedLogDir::CachedLogDir ( roo_io::Filesystem &  fs,
const char *  log_dir 
)
inline

Creates a cache for a specific filesystem and log directory.

Definition at line 38 of file log.h.

Member Function Documentation

◆ erase()

void roo_monitoring::CachedLogDir::erase ( int64_t  entry)
inline

Removes an entry from the cache.

Definition at line 48 of file log.h.

Referenced by roo_monitoring::LogReader::deleteRange().

◆ insert()

void roo_monitoring::CachedLogDir::insert ( int64_t  entry)
inline

Inserts an entry into the cache.

Definition at line 42 of file log.h.

Referenced by roo_monitoring::LogWriter::open().

◆ list()

std::vector< int64_t > roo_monitoring::CachedLogDir::list ( )

Returns the cached entries sorted by timestamp.

Definition at line 100 of file log.cpp.


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