lintel 0.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lintel::NoopHistoryService Class Reference

#include <NoopHistoryService.h>

Inheritance diagram for lintel::NoopHistoryService:
lintel::IHistoryService

Public Member Functions

 NoopHistoryService (std::shared_ptr< ProcessName > processName)
 
void historizeOf (std::vector< HistoryEntry >) override
 
const std::string & getProcessName () const override
 
std::vector< HistoryEntry > allOf () const override
 
std::vector< HistoryEntry > allOf (const std::string &) const override
 
std::vector< HistoryEntry > allOf (const std::string &, const std::string &) const override
 
std::vector< HistoryEntry > allOfProcess (const std::string &) const override
 
std::vector< HistoryEntry > allOfService (const std::string &) const override
 
- Public Member Functions inherited from lintel::IHistoryService
virtual ~IHistoryService ()=default
 

Detailed Description

History service implementation that does nothing.

Used in processes that are not the configured owner of the history service, so that the IHistoryService is always resolvable while the real HistoryService is only ever created in the owner process.

Constructor & Destructor Documentation

◆ NoopHistoryService()

lintel::NoopHistoryService::NoopHistoryService ( std::shared_ptr< ProcessName >  processName)
inlineexplicit

Construct a NoopHistoryService.

Parameters
processNamethe process name of the running process

Member Function Documentation

◆ allOf() [1/3]

std::vector< HistoryEntry > lintel::NoopHistoryService::allOf ( ) const
inlineoverridevirtual
Returns
all history entries

Implements lintel::IHistoryService.

◆ allOf() [2/3]

std::vector< HistoryEntry > lintel::NoopHistoryService::allOf ( const std::string &  label) const
inlineoverridevirtual
Parameters
labelfilter by label
Returns
matching entries

Implements lintel::IHistoryService.

◆ allOf() [3/3]

std::vector< HistoryEntry > lintel::NoopHistoryService::allOf ( const std::string &  processName,
const std::string &  serviceName 
) const
inlineoverridevirtual
Parameters
processNamefilter by process name
serviceNamefilter by service name
Returns
matching entries

Implements lintel::IHistoryService.

◆ allOfProcess()

std::vector< HistoryEntry > lintel::NoopHistoryService::allOfProcess ( const std::string &  processName) const
inlineoverridevirtual
Parameters
processNamefilter by process name
Returns
matching entries

Implements lintel::IHistoryService.

◆ allOfService()

std::vector< HistoryEntry > lintel::NoopHistoryService::allOfService ( const std::string &  serviceName) const
inlineoverridevirtual
Parameters
serviceNamefilter by service name
Returns
matching entries

Implements lintel::IHistoryService.

◆ getProcessName()

const std::string & lintel::NoopHistoryService::getProcessName ( ) const
inlineoverridevirtual
Returns
the process name of the owning process

Implements lintel::IHistoryService.

◆ historizeOf()

void lintel::NoopHistoryService::historizeOf ( std::vector< HistoryEntry >  entries)
inlineoverridevirtual

Record history entries (may be queued for batch insert).

Parameters
entriesentries to record

Implements lintel::IHistoryService.


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