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> 
   62         boost::filesystem::path 
const& dir,
 
   89     [[nodiscard]] boost::filesystem::path 
const&
 
  121     boost::filesystem::path 
const dir_;
 
  144         boost::filesystem::path 
const& shardDir,
 
  166     boost::filesystem::path 
const& shardDir,
 
  
Simple NodeStore Scheduler that just peforms the tasks synchronously.
 
DeterministicShard(DeterministicShard const &)=delete
 
constexpr static std::uint64_t deterministicType
 
bool init(Serializer const &finalKey)
Initializes the deterministic shard.
 
std::shared_ptr< Backend > backend_
 
bool store(std::shared_ptr< NodeObject > const &nodeObject)
Store a node object in memory.
 
std::shared_ptr< DeterministicShard > make_DeterministicShard(Application &app, boost::filesystem::path const &shardDir, std::uint32_t shardIndex, Serializer const &finalKey, beast::Journal j)
Creates shared pointer to deterministic shard and initializes it.
 
friend std::shared_ptr< DeterministicShard > make_DeterministicShard(Application &app, boost::filesystem::path const &shardDir, std::uint32_t shardIndex, Serializer const &finalKey, beast::Journal j)
Creates shared pointer to deterministic shard and initializes it.
 
std::unique_ptr< nudb::context > ctx_
 
const std::uint32_t index_
 
DeterministicShard class.
 
DeterministicShard & operator=(DeterministicShard const &)=delete
 
DummyScheduler scheduler_
 
std::uint32_t curMemObjs_
 
constexpr static std::uint32_t maxMemObjsDefault
 
A generic endpoint for log messages.
 
constexpr static std::uint32_t maxMemObjsTest
 
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
 
const boost::filesystem::path dir_
 
void close()
Finalizes and closes the shard.
 
const std::uint32_t maxMemObjs_
 
boost::filesystem::path const  & getDir() const