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

A node_store::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 (node_store::Task &task) override
 Schedules a task.
void onFetch (node_store::FetchReport const &report) override
 Reports completion of a fetch Allows the scheduler to monitor the node store's performance.
void onBatchWrite (node_store::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 node_store::Scheduler which uses the JobQueue.

Definition at line 12 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 ( node_store::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::node_store::Scheduler.

Definition at line 15 of file NodeStoreScheduler.cpp.

◆ onFetch()

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

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

Implements xrpl::node_store::Scheduler.

Definition at line 29 of file NodeStoreScheduler.cpp.

◆ onBatchWrite()

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

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

Implements xrpl::node_store::Scheduler.

Definition at line 41 of file NodeStoreScheduler.cpp.

Member Data Documentation

◆ jobQueue_

JobQueue& xrpl::NodeStoreScheduler::jobQueue_
private

Definition at line 25 of file NodeStoreScheduler.h.