20 #include <ripple/app/main/NodeStoreScheduler.h>
void stopped()
Called by derived classes to indicate that the stoppable has stopped.
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.
NodeStoreScheduler(Stoppable &parent)
Contains information about a fetch operation.
bool addJob(JobType type, std::string const &name, JobHandler &&jobHandler)
Adds a job to the JobQueue.
void doTask(NodeStore::Task &task)
void onStop() override
Override called when the stop notification is issued.
Provides an interface for starting and stopping.
Derived classes perform scheduled tasks.
bool areChildrenStopped() const
Returns true if all children have stopped.
Contains information about a batch write operation.
A pool of threads to perform work.
void setJobQueue(JobQueue &jobQueue)
void onChildrenStopped() override
Override called when all children have stopped.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
virtual void performScheduledTask()=0
Performs the task.
std::atomic< int > m_taskCount
std::chrono::milliseconds elapsed
void addLoadEvents(JobType t, int count, std::chrono::milliseconds elapsed)
Add multiple load events.
std::chrono::milliseconds elapsed
bool isStopping() const
Returns true if the stoppable should stop.