20 #include <ripple/app/main/NodeStoreScheduler.h>
36 task.performScheduledTask();
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.
Contains information about a fetch operation.
bool addJob(JobType type, std::string const &name, JobHandler &&jobHandler)
Adds a job to the JobQueue.
Derived classes perform scheduled tasks.
NodeStoreScheduler(JobQueue &jobQueue)
Contains information about a batch write operation.
A pool of threads to perform work.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
virtual void performScheduledTask()=0
Performs the task.
std::chrono::milliseconds elapsed
void addLoadEvents(JobType t, int count, std::chrono::milliseconds elapsed)
Add multiple load events.
std::chrono::milliseconds elapsed
const FetchType fetchType