rippled
Public Member Functions | Private Attributes | List of all members
ripple::NodeStoreScheduler Class Reference

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

Inheritance diagram for ripple::NodeStoreScheduler:
Inheritance graph
[legend]
Collaboration diagram for ripple::NodeStoreScheduler:
Collaboration graph
[legend]

Public Member Functions

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

Private Attributes

JobQueuejobQueue_
 

Detailed Description

A NodeStore::Scheduler which uses the JobQueue.

Definition at line 30 of file NodeStoreScheduler.h.

Constructor & Destructor Documentation

◆ NodeStoreScheduler()

ripple::NodeStoreScheduler::NodeStoreScheduler ( JobQueue jobQueue)
explicit

Definition at line 25 of file NodeStoreScheduler.cpp.

Member Function Documentation

◆ scheduleTask()

void ripple::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 ripple::NodeStore::Scheduler.

Definition at line 30 of file NodeStoreScheduler.cpp.

◆ onFetch()

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

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

Implements ripple::NodeStore::Scheduler.

Definition at line 46 of file NodeStoreScheduler.cpp.

◆ onBatchWrite()

void ripple::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 ripple::NodeStore::Scheduler.

Definition at line 59 of file NodeStoreScheduler.cpp.

Member Data Documentation

◆ jobQueue_

JobQueue& ripple::NodeStoreScheduler::jobQueue_
private

Definition at line 43 of file NodeStoreScheduler.h.