#include "storage.hpp"


Public Member Functions | |
| virtual std::shared_ptr< WsvQuery > | getWsvQuery () const =0 |
| virtual std::shared_ptr< BlockQuery > | getBlockQuery () const =0 |
| virtual bool | insertBlock (std::shared_ptr< const shared_model::interface::Block > block)=0 |
| virtual expected::Result< std::unique_ptr< CommandExecutor >, std::string > | createCommandExecutor ()=0 |
| virtual expected::Result< void, std::string > | insertPeer (const shared_model::interface::Peer &peer)=0 |
| virtual std::unique_ptr< MutableStorage > | createMutableStorage (std::shared_ptr< CommandExecutor > command_executor, BlockStorageFactory &storage_factory)=0 |
| virtual rxcpp::observable< std::shared_ptr< const shared_model::interface::Block > > | on_commit ()=0 |
| virtual void | resetPeers ()=0 |
| virtual expected::Result< void, std::string > | dropBlockStorage ()=0 |
| virtual boost::optional< std::shared_ptr< const iroha::LedgerState > > | getLedgerState () const =0 |
| virtual void | freeConnections ()=0 |
| virtual | ~Storage ()=default |
Public Member Functions inherited from iroha::ametsuchi::TemporaryFactory | |
| virtual std::unique_ptr< TemporaryWsv > | createTemporaryWsv (std::shared_ptr< CommandExecutor > command_executor)=0 |
| virtual void | prepareBlock (std::unique_ptr< TemporaryWsv > wsv)=0 |
| virtual | ~TemporaryFactory ()=default |
Public Member Functions inherited from iroha::ametsuchi::MutableFactory | |
| virtual std::unique_ptr< MutableStorage > | createMutableStorage (std::shared_ptr< CommandExecutor > command_executor)=0 |
| virtual CommitResult | commit (std::unique_ptr< MutableStorage > mutableStorage)=0 |
| virtual bool | preparedCommitEnabled () const =0 |
| Check if prepared commits are enabled. More... | |
| virtual CommitResult | commitPrepared (std::shared_ptr< const shared_model::interface::Block > block)=0 |
| virtual | ~MutableFactory ()=default |
Public Member Functions inherited from iroha::ametsuchi::PeerQueryFactory | |
| virtual boost::optional< std::shared_ptr< PeerQuery > > | createPeerQuery () const =0 |
| virtual | ~PeerQueryFactory ()=default |
Public Member Functions inherited from iroha::ametsuchi::BlockQueryFactory | |
| virtual boost::optional< std::shared_ptr< BlockQuery > > | createBlockQuery () const =0 |
| virtual | ~BlockQueryFactory ()=default |
Public Member Functions inherited from iroha::ametsuchi::QueryExecutorFactory | |
| virtual iroha::expected::Result< std::unique_ptr< QueryExecutor >, std::string > | createQueryExecutor (std::shared_ptr< PendingTransactionStorage > pending_txs_storage, std::shared_ptr< shared_model::interface::QueryResponseFactory > response_factory) const =0 |
| virtual | ~QueryExecutorFactory ()=default |
Public Member Functions inherited from iroha::ametsuchi::SettingQueryFactory | |
| virtual boost::optional< std::unique_ptr< SettingQuery > > | createSettingQuery () const =0 |
| virtual | ~SettingQueryFactory ()=default |
Storage interface, which allows queries on current committed state, and creation of state which can be mutated with blocks and transactions
|
virtualdefault |
|
pure virtual |
Create new command executor that holds a database session within.
Implemented in iroha::ametsuchi::StorageImpl.

|
pure virtual |
Creates a mutable storage from the current state
Implemented in iroha::ametsuchi::StorageImpl.

|
pure virtual |
Remove all blocks from block storage.
Implemented in iroha::ametsuchi::StorageImpl.
|
pure virtual |
Implemented in iroha::ametsuchi::StorageImpl.
|
pure virtual |
|
pure virtual |
|
pure virtual |
Implemented in iroha::ametsuchi::StorageImpl.
|
pure virtual |
Raw insertion of blocks without validation
| block | - block for insertion |
Implemented in iroha::ametsuchi::StorageImpl.
|
pure virtual |
Insert a peer into WSV
| peer | - peer to insert |
Implemented in iroha::ametsuchi::StorageImpl.
|
pure virtual |
method called when block is written to the storage
Implemented in iroha::ametsuchi::StorageImpl.
|
pure virtual |
Removes all peers from WSV
Implemented in iroha::ametsuchi::StorageImpl.