Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
etlng::impl::TaskManagerProvider Class Reference

Implementation of the TaskManagerProvider interface. More...

#include <TaskManagerProvider.hpp>

Inheritance diagram for etlng::impl::TaskManagerProvider:
Collaboration diagram for etlng::impl::TaskManagerProvider:

Public Member Functions

 TaskManagerProvider (std::reference_wrapper< etl::NetworkValidatedLedgersInterface > ledgers, std::shared_ptr< ExtractorInterface > extractor, std::shared_ptr< LoaderInterface > loader)
 Constructor.
 
std::unique_ptr< TaskManagerInterfacemake (util::async::AnyExecutionContext ctx, std::reference_wrapper< MonitorInterface > monitor, uint32_t startSeq, std::optional< uint32_t > finishSeq) override
 Make a task manager.
 
- Public Member Functions inherited from etlng::TaskManagerProviderInterface

Detailed Description

Implementation of the TaskManagerProvider interface.

Constructor & Destructor Documentation

◆ TaskManagerProvider()

etlng::impl::TaskManagerProvider::TaskManagerProvider ( std::reference_wrapper< etl::NetworkValidatedLedgersInterface > ledgers,
std::shared_ptr< ExtractorInterface > extractor,
std::shared_ptr< LoaderInterface > loader )
inline

Constructor.

Parameters
ledgersReference to ledgers
extractorThe extractor
loaderThe loader

Member Function Documentation

◆ make()

std::unique_ptr< TaskManagerInterface > etlng::impl::TaskManagerProvider::make ( util::async::AnyExecutionContext ctx,
std::reference_wrapper< MonitorInterface > monitor,
uint32_t startSeq,
std::optional< uint32_t > finishSeq )
inlineoverridevirtual

Make a task manager.

Parameters
ctxThe async context to associate the task manager instance with
monitorThe monitor to notify when ledger is loaded
startSeqThe sequence to start at
finishSeqThe sequence to stop at if specified
Returns
A unique pointer to a TaskManager implementation

Implements etlng::TaskManagerProviderInterface.


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