20 #ifndef RIPPLE_NODESTORE_DETERMINISTICSHARD_H_INCLUDED
21 #define RIPPLE_NODESTORE_DETERMINISTICSHARD_H_INCLUDED
23 #include <ripple/nodestore/DatabaseShard.h>
24 #include <ripple/nodestore/DummyScheduler.h>
25 #include <nudb/nudb.hpp>
81 close(
bool cancel =
false);
Simple NodeStore Scheduler that just peforms the tasks synchronously.
DeterministicShard(DeterministicShard const &)=delete
void flush()
Flush all objects from memory pool to shard.
std::shared_ptr< Backend > backend_
std::uint64_t digest(int n) const
const boost::filesystem::path tempdir_
void store(nodeptr nobj)
Store the object into memory pool.
void close(bool cancel=false)
Finalizes and closes the shard.
uint160 hash(const uint256 &lastHash) const
std::unique_ptr< nudb::context > ctx_
bool init()
Initializes the deterministic shard.
const std::uint32_t index_
DeterministicShard class.
DeterministicShard & operator=(DeterministicShard const &)=delete
const boost::filesystem::path finaldir_
DummyScheduler scheduler_
A collection of historical shards.
A generic endpoint for log messages.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
DatabaseShard const & db_
std::set< nodeptr, std::function< bool(nodeptr, nodeptr)> > nodeset_
std::shared_ptr< NodeObject > nodeptr