xrpld
Loading...
Searching...
No Matches
xrpl::NodeStoreScheduler Class Reference

A NodeStore::Scheduler which uses the JobQueue. More...

#include <NodeStoreScheduler.h>

Inheritance diagram for xrpl::NodeStoreScheduler:
Collaboration diagram for xrpl::NodeStoreScheduler:

Public Member Functions

 NodeStoreScheduler (JobQueue &jobQueue)
void scheduleTask (NodeStore::Task &task) override
 Schedules a task.
void onFetch (NodeStore::FetchReport const &report) override
 Reports completion of a fetch Allows the scheduler to monitor the node store's performance.
void onBatchWrite (NodeStore::BatchWriteReport const &report) override
 Reports the completion of a batch write Allows the scheduler to monitor the node store's performance.

Private Attributes

JobQueuejobQueue_

Detailed Description

A NodeStore::Scheduler which uses the JobQueue.

Definition at line 9 of file NodeStoreScheduler.h.

Constructor & Destructor Documentation

◆ NodeStoreScheduler()

xrpl::NodeStoreScheduler::NodeStoreScheduler ( JobQueue & jobQueue)
explicit

Definition at line 10 of file NodeStoreScheduler.cpp.

Member Function Documentation

◆ scheduleTask()

void xrpl::NodeStoreScheduler::scheduleTask ( NodeStore::Task & task)
overridevirtual

Schedules a task.

Depending on the implementation, the task may be invoked either on the current thread of execution, or an unspecified implementation-defined foreign thread.

Implements xrpl::NodeStore::Scheduler.

Definition at line 15 of file NodeStoreScheduler.cpp.

◆ onFetch()

void xrpl::NodeStoreScheduler::onFetch ( NodeStore::FetchReport const & report)
overridevirtual

Reports completion of a fetch Allows the scheduler to monitor the node store's performance.

Implements xrpl::NodeStore::Scheduler.

Definition at line 29 of file NodeStoreScheduler.cpp.

◆ onBatchWrite()

void xrpl::NodeStoreScheduler::onBatchWrite ( NodeStore::BatchWriteReport const & report)
overridevirtual

Reports the completion of a batch write Allows the scheduler to monitor the node store's performance.

Implements xrpl::NodeStore::Scheduler.

Definition at line 41 of file NodeStoreScheduler.cpp.

Member Data Documentation

◆ jobQueue_

JobQueue& xrpl::NodeStoreScheduler::jobQueue_
private

Definition at line 22 of file NodeStoreScheduler.h.