hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::torii::QueryProcessorImpl Class Reference

#include "query_processor_impl.hpp"

Inheritance diagram for iroha::torii::QueryProcessorImpl:
Inheritance graph
Collaboration diagram for iroha::torii::QueryProcessorImpl:
Collaboration graph

Public Member Functions

 QueryProcessorImpl (std::shared_ptr< ametsuchi::Storage > storage, std::shared_ptr< ametsuchi::QueryExecutorFactory > qry_exec, std::shared_ptr< iroha::PendingTransactionStorage > pending_transactions, std::shared_ptr< shared_model::interface::QueryResponseFactory > response_factory, logger::Logger log=logger::log("QueryProcessorImpl"))
 
std::unique_ptr< shared_model::interface::QueryResponsequeryHandle (const shared_model::interface::Query &qry) override
 
rxcpp::observable< std::shared_ptr< shared_model::interface::BlockQueryResponse > > blocksQueryHandle (const shared_model::interface::BlocksQuery &qry) override
 
- Public Member Functions inherited from iroha::torii::QueryProcessor
virtual ~QueryProcessor ()
 

Detailed Description

QueryProcessorImpl provides implementation of QueryProcessor

Constructor & Destructor Documentation

iroha::torii::QueryProcessorImpl::QueryProcessorImpl ( std::shared_ptr< ametsuchi::Storage storage,
std::shared_ptr< ametsuchi::QueryExecutorFactory qry_exec,
std::shared_ptr< iroha::PendingTransactionStorage pending_transactions,
std::shared_ptr< shared_model::interface::QueryResponseFactory response_factory,
logger::Logger  log = logger::log("QueryProcessorImpl") 
)

Here is the call graph for this function:

Member Function Documentation

rxcpp::observable< std::shared_ptr< shared_model::interface::BlockQueryResponse > > iroha::torii::QueryProcessorImpl::blocksQueryHandle ( const shared_model::interface::BlocksQuery qry)
overridevirtual

Register client blocks query

Parameters
query- client intent
Returns
observable with block query responses

Implements iroha::torii::QueryProcessor.

std::unique_ptr< shared_model::interface::QueryResponse > iroha::torii::QueryProcessorImpl::queryHandle ( const shared_model::interface::Query qry)
overridevirtual

Perform client query

Parameters
qry- client intent
Returns
resulted response

Implements iroha::torii::QueryProcessor.


The documentation for this class was generated from the following files: